[UPHPU] overriding H1 bottom padding

District Webmaster webmaster at alpine.k12.ut.us
Tue May 4 11:59:43 MDT 2004


I actually just tried that same type of thing, and my debug class wasn't
applied at all, which leads me to think I may have a cacheing issue.
Still working off of that theory . . .

Dave

>>> Jacob Fugal <jacob at fugal.net> 05/04/04 12:05 PM >>>
District Webmaster wrote:

> I swear I've done this before, but for the life of me I cannot do it
> again . . .
> 
> I seem to recall that you can use CSS to override the padding or
margin
> of a h1/2/3/4/5/6 tag so that, for example, you don't have a huge
space
> between the h* element and it's following div or paragraph. I know I
> could do this with a custom div, but at this point it is a matter of
> principal . . . I've tried applying padding and margin styles, to no
> avail.

My first recommendation would be the padding and margins on the h* tag, 
like the others who have responded. You give the impression you've tried

that though, so my other suggestion is that maybe it's a margin/padding 
on the element right after the h* that's making the space? A trick I've 
found useful in diagnosing these types of problems is to add a class 
'debug' to my CSS file that sets the border nice and loud, then add that

class to the elements I want to check on and see where their border 
actually falls.

Any space between borders of elements is due to the margin on one or 
both, and space between the content and border of an element is due to 
padding.

Jacob





More information about the UPHPU mailing list