Is there a way through CSS to indent a line when the line wraps it ??
i’m not sure i understand the second part of your question (“when the line wraps it”). do you mean only to indent if it’s longer than a single line ?
in any case, the indenting as such can be achieved with this http://www.w3.org/TR/REC-CSS1#text-indent
Sorry if I was little vague.
I want and indent when the line is too long for the div.
asdghasghsfghdxfhjdfhj
sfgjsdfhjdghjdcgjk
sfjdgshjdghkdgjkfhjkfhkl
sdfghsfgjsfhjdghj
How about setting margin-left to a positive value, and text-indent to a negative value?
<style type="text/css">
p {
margin-left: 30px;
text-indent: -10px;
}
</style>
This will make your first line start further to the left than each subsequent line.
When I first read your reply Garcia, I wasn’t sure what you meant, and now I have seen it in action, it makes perfect sense, and gives a perfect result, thank you very much.
Heh, sorry about the choppy explanation, but I’m glad you got the layout you wanted!