Content overflows the sidebar

Discussion in 'CSS' started by webblab, Feb 26, 2008.

  1. #1
    I've a css related problem in my opinion. Content just comes out from the sidebar in Firefox but perfect in Internet Explorer. See attached images.

    I suppose, may be there is a problem with css styles.

    div#container {
    	width:950px;
    	text-align:left;
    	font-size:1.2em;
    	min-height: 100%;
    	height: auto !important;
    	height: 100%;
    	margin: 0 auto 0em;
    	background-color: white;
    	background-image: url(../img/container_background.gif);
    	background-repeat: repeat-y;
    	background-position:center;
    	padding-bottom:0px;
    Code (markup):
    or
    #sidebar {
    	float: right;
    	width: 175px;
    	padding: 0px 0 0 0px;
    Code (markup):
    or
    div#banner {
    	width:155px;
    	height:auto;
    	margin-right:10px;
    	margin-top:25px;
    	background:none;
    	text-decoration: none;
    Code (markup):
    [​IMG]
    [​IMG]

    Thanks in advance
     
    webblab, Feb 26, 2008 IP
  2. jumpenjuhosaphat

    jumpenjuhosaphat Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you show us the mark up? It looks like you need to clear your floats.
     
    jumpenjuhosaphat, Feb 26, 2008 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi webblab,

    If your #container DIV is holding everything inside it (which does appear to contain floats), then add overflow: hidden; to that style rule (#container { } ) so that the container DIV can contain the floats.

    If that doesn't do it, then I'll need to see your complete HTML and CSS for the page as jumpenjuhosaphat suggested.
     
    Dan Schulz, Feb 26, 2008 IP
  4. webblab

    webblab Guest

    Messages:
    394
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank You very much!!! :) It works!! The problem solved!!
     
    webblab, Feb 27, 2008 IP