Results 1 to 3 of 3

Thread: Having trouble with width on my website

  1. #1
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Having trouble with width on my website

    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 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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    #imagepanel {
    	margin: 10px auto 0 auto;
    	padding: 10px;
    	width: 700px;
    	background-color: #fff;
    	border: thick solid #000;
    	border-radius: 5px;
    	-moz-border-radius: 5px;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It works perfectly, thanks a lot!

    George

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •