| View previous topic :: View next topic |
| Author |
Message |
Ikopar
Joined: 26 May 2006 Posts: 168
|
| What's the tag to indent only the first line of a paragraph |
| |
|
|
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
Text-indent
It's a property, not a tag |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
No i only want the first line of the paragraph indented
All i see is regular text indent property
Like normally you tab a paragraph
In word |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
P { text-indent: 5em; }
That would indent the first line |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
Is that css?
How do i put that in my code? |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| Add it to your stylesheet |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| I don't see p as a css property |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
P is the html element
In this case, the CSS selector says "apply this property to all p elements" |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
Well that doesn't look like html to me
I thoguht it would be inside a tag
Like <p text-indext=4em>
Or soemthing |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| Ikopar as a rule of thumb, no style belongs in your html |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|