Hi everyone, how do i put same space at the beginnning of a line, i don't want a new line (so i cann't use br and p tags), i just want the sentence to be a lite be inside) thanks
I believe you're looking for the element, non-breaking space This is the equivalent of one spacebar press, and you can stack them - browsers will recognize multiple instances.
You could use the text-indent property. p { text-indent: 1em; } Code (markup): This will cause the first line of the p element to be indented by the specified amount. I'm not in favor of the non-breaking space for this use, as it mixes presentation with structure and violates the DRY principle. If you decide on a different indention, you must edit every file that has it. With css, you change it once. cheers, gary
Ah, that's the property! I originally tried the following: p:first-line { padding-left:1em } But browsers didn't much care for that method Thanks for that Gary.