Forum Moderators: not2easy

Message Too Old, No Replies

H1, ( Tab )

         

Sothpaw

4:16 pm on Jun 25, 2007 (gmt 0)

10+ Year Member



in my Heading i do not want the text all the way over to the left (but i do want it left justified.
i would like it to have a fixed number of spaces shifted from the left. pixels would work too... but i can't find any code that tells it to shift as part of the H1 class.
any ideas.
is there a listing somewhere of every single last line of code available...?

Milamber

4:19 pm on Jun 25, 2007 (gmt 0)

10+ Year Member



H1 {
padding-left: <insert#ofpixels>px;
}

Sothpaw

4:27 pm on Jun 25, 2007 (gmt 0)

10+ Year Member



thanks a mil

coyoteRick

12:03 am on Jun 26, 2007 (gmt 0)

10+ Year Member



Sometimes adding left and right padding to an element that has a fixed width causes some errors. This also happens the other way around with fixed height and padding to the top and bottom. I've found this usually always occurs in IE 6 and below if I'm not conservative with my padding.

Instead of resorting to padding, which would definitely work but could potentially cause problems, try using the following:

text-indent: (your preferred unit of measurement);

Cheers!

[edited by: coyoteRick at 12:04 am (utc) on June 26, 2007]