cant figure out what happened here

Discussion in 'CSS' started by t2000q, Feb 23, 2007.

  1. #1
    I am pretty new to CSS and have tried to use it as much as I can with a new site that I am working on. The results were looking pretty good last night and I thought I was almost done with the template. But somewhere I did something wrong and now the collumns dont align probally. Actually it looks right in Firefox but wrong in IE.

    If somebody had a minute could they take a peak at it and see if they can see any problems that I may not be noticing. I basically want the right hand side back from the bottom to the right like it should be and how it is in FireFox.

    http://www.canadiangis.com/beta/index.php

    http://www.canadiangis.com/beta/cangis_style.css



    thanks
    :cool:
     
    t2000q, Feb 23, 2007 IP
    Clive likes this.
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    CSS layout. Always trouble free :rolleyes:
    #right {width: 175px;
    	float: left;
    	padding: 5px 0 5px 0;
    	background: #F5F5F5;
    	height: 760px;
    }
    Code (markup):
    Try changing the column width to a lower value -> width: 175px;
    I see no reason why it would be wider in IE than Firefox, so I guess the main column is pushing it out of it's designed position.
     
    Clive, Feb 23, 2007 IP
  3. t2000q

    t2000q Prominent Member

    Messages:
    4,636
    Likes Received:
    192
    Best Answers:
    0
    Trophy Points:
    300
    Digital Goods:
    1
    #3
    okay, I will give that a try tonite when I get home, I tried an online validator and got no errors, and was rather confused on what had happened since it did work originally.

    thanks
    :)
     
    t2000q, Feb 23, 2007 IP
  4. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #4
    Sure, it may validate well but you also need to allow enough space for each column to fit in their place, otherwise you'll get the layout messy, even if the validator say's it's fine. It will only check for poor coding errors...
     
    Clive, Feb 23, 2007 IP
    t2000q likes this.
  5. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #5
    like mentioned above there are problems in the width of the conainers.There is an error of 8px
    To solve the problem
    Increase
    the width of "conatiner1" by 8px or more.
    #container1 {width:830px;
    	border-style: double;
    	margin-left: auto;
    	margin-right: auto;
    background:#fff;
    }
    Code (markup):
    OR Decrease the width of "content" by 8px
    #content {width: 470px;
    	float: left;
    	padding: 5px 0 5px 0;
    	background: #F5F5F5;
    	height: 760px;
    }
    Code (markup):
     
    nwk, Feb 24, 2007 IP
    t2000q likes this.