Zaloguj | Zarejestruj | FAQ

Paragraph placement

+ Odpowiedz

Posty: 2 Strona 1 z 1

Paragraph placement

przez GronlundNewcomb » Pt sty 13, 2012 1:44 am

I am making a basic website. I understand how to center, left, right or justify a paragraph. But how can I place a paragraph into a particular area on one half of the page? Right now the paragraph spans from full left to right. How can I make it start from midpage and end a bit short of the right side of the screen? Thanks for any help.
Avatar użytkownika


  • Posty: 8
  • Dołączył(a): Cz sty 12, 2012 6:50 pm

Re: Paragraph placement

przez atik » Pt sty 13, 2012 2:45 pm

For placing anything any where in a line you can use margin left or write. At first you need to take a div which will be the parent of the paragraph and then you can give margin to the paragraph to place it anywhere. Another way is that, you can take a span in the paragraph and give it necessery margin to put it any where like the following code.
Kod: Zaznacz cały
<p><span>I want to go anywhere in the line.</span><p>

Then in your css, just style like this,
Kod: Zaznacz cały
p span{
margin-left: 35px;
Avatar użytkownika


  • Posty: 471
  • Dołączył(a): Pn paź 17, 2011 4:55 pm

+ Odpowiedz

Strona 1 z 1