View Full Version : Displaying Images on Page with CSS

Apr 15, 2011, 01:42 PM

I've been learning HTML & CSS on and off for a few weeks. I'm having trouble getting some images/buttons to display on my site:


It's the 'monsters' at the bottom, you'll see what I'm talking about. The images don't adjust when the browser window is re-sized and they appear differently on different resolutions.

I'm currently using this code in the CSS:

#twitter-logo {
position: relative;
top: 426px;
left: 710px;

And this in HTML:

<a href="http://twitter.com/jakestubbz" title="Twitter" id="twitter-logo" />

I'd appreciate any advise anyone can give!


Hermes Monster
Apr 15, 2011, 02:12 PM
The best advice I can give is to install firebug on FF or Chrome, and edit the styles directly in the browser until you figure out what's wrong - it's a great way to learn

Apr 15, 2011, 04:42 PM
Thanks, for the quick reply. If I do that though - on say my 13" MBP and get it so it appears correctly and then load the page on a screen with a different resolution they'll be in the wrong place and vice versa...

Hope that makes sense.

Apr 15, 2011, 08:48 PM
I think that a main issue is that you're just letting the images float in the <body> tag. Try enclosing them in a <div> tag with a width of 100%.