MyBB Community Forums

Full Version: Image on Banner? :S
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys, might sound a stupid question:

I've put an image on my banner using position absolute like so:

<a href="http://habbo.com" title="Habbo Fansite" target="_blank"><img src="images/Habbo Fansite-WebsiteBadge.gif" style="position: absolute; top:50px; left:760px;"></a>

It shows fine on mine, but it's in a different position on different size screens.

Please help! Thanks guys Smile

~ David
The positioning of absolute with a left of 760px means you are telling the image it should always be 760px away from the left edge of the screen. This is the reason it is in a different place.
How could I resolve this?

Thanks Smile

~ David
You could try using percentages instead or positioning the banner with floats and margins instead of with an absolute
I would use percentages to keep it the same distance from everything, it depends how the rest of the theme is coded to keep it lined up with everything.
Thanks guys, does that appear ok for all you guys? Smile

http://habfab.com

Thanks Smile

~ David