Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: div problem

  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    107
    Thanks
    1
    Thanked 0 Times in 0 Posts

    div problem

    This works fine with IE but in FF it creates problem.

    I want "wrapper" to show border of one pix against whole content but it doesn't show, it works in IE.

    thanks in advance.

    Here is code:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1"><title>
    	Safer Dorset - Content Sharing Facility
    </title>
    
    <style type="text/css">
    
    
    
    .wrapper {
        margin:0 auto;
        width:970;
    	border: 1px solid #000000;
    }
    
    
    .content {width:100%;}
    .content .library {float:left;width:270px;}
    .content .right {float:left;width:259px;}
    .content .mid {float:left;width:438px;}
    
    </style>
    	
    	
    </head>
    <body>
    
      
            
    
            <div class="wrapper">
    		
    		
    		<div class="content">
                    
    
                    <div class="library">
    					<div class="lib_box">
    					0
    					</div>                    
                    </div>
                    
                    <div class="mid">
                        <div class="mid_box">0
                            
                            
                        </div>
                    </div>
    
    
                    <div class="right">
                        <div class="d_box">0
    
                            
                        </div>
    
                        
                    </div>
                </div>
            </div>     
            
    
    </body>
    </html>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    You need to clear your floats, see http://www.codingforums.com/showthre...640#post617640
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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