Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Firefox layout problems

  1. #1
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Firefox layout problems

    hi,

    I wonder if anyone can help with my layout problems in Firefox, i have tried to have vertically alignment on the whole page, its looks ok in IE but not FF.

    Im fairly new to CSS so if anyone can spot what i have done wrong that would be great

    link to layout here

    thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Other than the header border-bottom not showing up in FF, I see no real difference between the two browsers. That can be fixed by using a height of 20px for that class under FF:

    Code:
    .header{
     position:absolute; 
     top: 0px;
     left: 0px;
     height:20px!important;
     height:22px; 
      background-color:#F5F5F5; 
     width:900px;
    border-left: 1px solid #0082c6;
    border-top: 1px solid #0082c6;
    border-right: 1px solid #0082c6;
    border-bottom: 1px solid #0082c6;
      background-repeat:repeat-x;
    	background-position: left bottom;
    	background-image:url(images/top.jpg); 
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok thanks

    I also see a problem in firefox with the right hand border seems to be 1 pixel out of line with the header.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Ah, so. I missed that one, it can be remedied in a similar fashion:

    Code:
    .maincol{background-color: #FFFFFF;  
    left:550px;
    top:22px;
     float: right; 
     display:inline; 
     position:absolute; 
     width:351px!important; 
     width:350px;
     height:441px;
     border-right: 1px solid #0082c6;
     background-repeat: no-repeat;
    	background-position: right center;
    	background-image:url(images/right_side.jpg); 
     }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Dec 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So if I am understanding you right

    Code:
     width:351px!important;
    the !important is only done by Firefox? Or only done by IE?

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Every CSS-capable browser recognizes !important except IE, as far as I know.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey
    Every CSS-capable browser recognizes !important except IE, as far as I know.
    Technically yes, with a twist. If there is no other value given later for that property, IE will follow the value given, even if it has !important appended to it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Ah. So it is recognized, but totally ignored.
    My apologies.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    So [!important] is recognized, but totally ignored.
    In that instance, yes. It's not totally ignored, though.

    Mike

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Oh? How does it modify the behaviour of IE, then?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •