...

View Full Version : Line spacing between tags



Vytfla
07-31-2012, 08:38 PM
What's the best way to line space between different tags? (ie. an h1 and h2)? I know line-height works with the same tags, but I'm trying to find a way to do it without doing a negative top margin.

For an idea I'm trying to emulate the two lines from this webpage (http://www.pixelbot.ro/) that say "Making sites / so you don't have to". Granted, it's an image, but looking for the CSS way.

tracknut
07-31-2012, 08:51 PM
Just set the top and bottom margins and padding on the h1 and h2 objects so that they're the distance apart that you want.

Dave

Vytfla
07-31-2012, 09:23 PM
Just set the top and bottom margins and padding on the h1 and h2 objects so that they're the distance apart that you want.

Dave

Thanks, I guess that's an easy solution.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum