Indenting an entire paragraph (css)

]|[ Mar']['in ]|[

Supreme [H]ardness
Joined
Sep 20, 2002
Messages
4,663
Well basically I want to indent the entire paragraph.

I've messed around a little with
padding: 0 0 0 25px;
margin-left:25px;
text-indent:25px;

What do I need to do/add to these so that every line of the paragraph is indented?

Or is this just not doable? :(
 
Dunno, man, this worked for me... are you sure the tag is applied to the whole paragraph, or do you have some conflicting tag or something?

Code:
<html>
<head>
<style>
.text1 {
     margin-left: 10ex;
}
</style>
</head>

<body>
<p>Not indented: this paragraph is not indented, yo</p>

<p class='text1'>Indented: "Maybe I'm too smart to sleep. Yes, that's it, Stimpy asleep, and he's an idiot.  Yes... Look at him.".</p>
</body>
</html>
 
Take out the indent field and just use the margin. Unless you want a hanging indent then do -25px for the indent.
 
It's because I was trying to do it with font <font class="damnit"> etc.

haha stupid me. Thanks for the help.
 
Whatsisname said:
Take out the indent field and just use the margin. Unless you want a hanging indent then do -25px for the indent.

I wasn't using all of them at once :) Just 3 things I had messed around with. The problem turned out just being that I was trying to use the class with <font> instead of <p>

or something.
 
Back
Top