SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Border not going completely around div?

    I have a div that has a 1 px border around it that displays fine in IE6. When viewing it in Mozilla the border only goes across the top and left of the div...and even then it doesnt go right to the edges. The bottom and right edge are missing completely.

    Code:
    Here is the css:
    .box220x110 {
    	height: 105px;
    	width: 210px;
    	background-color: #FFFFFF;
    	padding: 0px;
    	margin: 4px;
    	border: 1px solid #000533;
    }
    
    and here is the html:
    <div class="box220x110"><img src="images/album.jpg"></div>
    The image is 220x110 px in size.

    I'm hoping this problem sounds familiar to someone and they can help me correct it...I assume it will only be something simple.

    Brad

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind. I just realised my image is 220x110 and my div is only 210x105.
    Ninkumpoop.

    Sorry.

    Brad


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
  •