Log in

View Full Version : Having trouble with width on my website



georgen1
04-12-2011, 11:51 PM
Hello all

I'm making a website and I am new to CSS. The problem im having is that i can seem to make the panel that my image is placed in, to wrap round the image properly. My website is www.georgedraws.it (http://www.georgedraws.it) and you can see the problem there. It seems to fit perfectly at the top and bottom, but not the sides. Its width that i can't get my head round to fix. Basically, i want the tightness at the top and bottom of the image to be at the side too. I intend on having all my images in a container like this so im hoping the container is going to resize to fit the different image resolutions.

So if anyone could give me a heads up of what the problem is, that would be great. Any help would be greatly appreciated!

Thanks
George

jscheuer1
04-13-2011, 07:10 AM
#imagepanel {
margin: 10px auto 0 auto;
padding: 10px;
width: 700px;
background-color: #fff;
border: thick solid #000;
border-radius: 5px;
-moz-border-radius: 5px;
}

georgen1
04-13-2011, 12:27 PM
It works perfectly, thanks a lot!

George