Search Engine Optimization > Web Development > Best way for a bit of spacing
Best way for a bit of spacing
Posted by Phil Da Lick! on November 12th, 2004

Hi,

Got a panel on my site with an image at the very top. What's the best way to
put some space above it that doesn't grow or shrink when you change the font
size on the browser?

Cheers


Posted by Matt Bradley on November 12th, 2004

Phil Da Lick! wrote:
Add the following style attribute to the image:

style="margin-top: [n]px;"

... or alternatively (belt and braces):

style="margin: [n]px 0px 0px 0px;"

The CSS mrgion property above sets TOP, RIGHT, BOTTOM, LEFT in that
order (Going clockwise around the image).



--
Matt Bradley
"Myths which are believed in tend to become true"
-George Orwell

Funbolt.com - Entertainment portal, wallpapers, sexy celebs