www.webdeveloper.com
Results 1 to 2 of 2

Thread: blocks not being tall enough...

  1. #1
    Join Date
    Nov 2002
    Posts
    411

    blocks not being tall enough...

    I'm using this simple CSS:
    Code:
    .story{
    
    	border-bottom: 2px dotted #1958b7;
    }
    
    .story img{
    	float: left;
    	clear: none;
    	border: 1px solid #2586d7;
    	margin-right: 1em;
    }
    to do news stories on my site. The problem is that if the text of the story is shorter than the height of the image, the bottom of the border goes through the picture. I tried including "height: 0px", which does the trick in IE, but in NN it actually makes the height 0, which makes it all go off.

    I've tried height: auto too, but no joy. Any ideas?
    Last edited by jpmoriarty; 09-16-2004 at 06:04 PM.

  2. #2
    Join Date
    Aug 2003
    Location
    In my house
    Posts
    4,004
    You may find this article enlightening.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles