![]() |
Need help with HTML code
I'm trying to get the masthead image of our myspace page centered up and the code I've got doesn't take different monitor sizes and resolution into proportional considerations.
for example, here's the masthead code I'm using. Code:
.masthead {width: 1166px; height: 167px;www.myspace.com/chromeheartband now, that big chromeheart logo is perfectly centered on my 22" widescreen but not on a regular view ratio monitor or at a different resolution. Is there coding that I can use to keep it centered up with equal padding on each side regardless of monitor resoulution or size/shape? If so, what do I need to change? thanks! |
Re: Need help with HTML code
I've done it with JavaScript before... I'll see if I can find the code for that.
Edit: see if this helps: http://particletree.com/features/dyn...ndent-layouts/ |
Re: Need help with HTML code
try this maybe?
Code:
.masthead {Code:
<div class="masthead" align="center"><img src="http://img.photobucket.com/albums/v212/fastredponycar/ChromeHeartBigLogo.png" /></div>Edit: Works fine... Keeps it centered everytime... http://ngzroot.ath.cx:9999/masthead.html |
Re: Need help with HTML code
If you get rid of the div have this:
.masthead { display: block; margin-left: auto; margin-right: auto; } <img class="masthead" src="http://img.photobucket.com/albums/v212/fastredponycar/ChromeHeartBigLogo.png"> |
| All times are GMT -5. The time now is 05:39 PM. |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2013, nV News.