Forum Moderators: not2easy

Message Too Old, No Replies

<h1> and css

ways of ridding of padding

         

kumarsena

8:53 am on Sep 26, 2004 (gmt 0)

10+ Year Member



just wondering if there are any ways of taking away the padding that is built in to the <h1> tags. trying to keep my code clean but if i cant remove the padding a little then the design looks a bit empty. just too much space..

thanks for any input

Robin_reala

9:21 am on Sep 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



h1{
padding: 0px;
margin: 0px;
}

kumarsena

10:28 am on Sep 26, 2004 (gmt 0)

10+ Year Member



hey

thanks

didnt know it was that simple...

cheers again..
kumar

kumarsena

10:44 am on Sep 26, 2004 (gmt 0)

10+ Year Member



i tried ur suggestion but it dint work

Larryhat

10:58 am on Sep 26, 2004 (gmt 0)

10+ Year Member



hello:

I have the same problem, but I'm in straight HTML, no CSS etc. Is there some way to do the same thing (0 px) within the HTML <h1> #*$!x </h1> statement itself?

Krapulator

11:41 am on Sep 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use inline css:

<h1 style="padding:0;margin:0;">Heading</h1>

Larryhat

11:50 am on Sep 26, 2004 (gmt 0)

10+ Year Member



Thanks Krapulator!

That works perfectly. Nice clean and simple for once. -Larry

kumarsena

6:03 pm on Sep 26, 2004 (gmt 0)

10+ Year Member



my question is: if inline styling of <h1> works, then why not external styling?

does anyone have an explanation?

kumarsena

6:07 pm on Sep 26, 2004 (gmt 0)

10+ Year Member



ok guys,

im sorry, it was all my fault (although im not sure what i did wrong....)

i tried again and it DOES work...

my mistake...
once again thanks..

kumar