Need Major CSS Help: Different on Every Browser

Discussion in 'HTML & Website Design' started by webdevguy, Apr 7, 2011.

  1. #1
    webdevguy, Apr 7, 2011 IP
  2. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The #follow is floated and needs to be cleared inside of the widget-container.

    what if you would put a clearing div right under the <div id="follow">Blah blah</div> but still inside the widget-container ,like:
    <div id="follow">Blah blah</div>
    <div class="clear"></div>

    Below is a good class for a clearing div
    .clear {
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
    }

    Bet it'll work :)
     
    style0, Apr 7, 2011 IP
  3. webdevguy

    webdevguy Guest

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks bro!
     
    webdevguy, Apr 7, 2011 IP
  4. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ya, just saw that both containers within the #follow div is also floated, so one of the <div class="clear"></div>

    inside that container - under the floated elements - would also be necessary.
    An uncleared float is kinda invisible to browsers, the DOM cannot figure out what the elements rendered height should be, so things tend to f**k up when you don't clear things properly
     
    style0, Apr 7, 2011 IP
  5. webdevguy

    webdevguy Guest

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    webdevguy, Apr 7, 2011 IP
  6. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Nah. Look at your html paste:

    on line 41 - right AFTER the </ul> - insert - <div class="clear"></div>

    the result on line 41 should be:
    </ul><div class="clear"></div>


    Then on line 42 - right AFTER the </div> - insert - <div class="clear"></div>


    The rsult on line 42 should be:
    </div><div class="clear"></div>

    In your css file, below all other code, insert the following css code:

    .clear {
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
    }

    Now that shouldn't be so difficult?
     
    style0, Apr 7, 2011 IP
  7. webdevguy

    webdevguy Guest

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    done and done. thanks again bro. really appreciate it. gonna do an all browser test now
     
    webdevguy, Apr 7, 2011 IP
  8. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    from now on, do yourself a favour and test your coding in internet explorer. It will save you a lot of headache since anything that looks good in explorer will look good in the other browsers too :)
    Develop in FF and test in IE
     
    style0, Apr 7, 2011 IP
  9. webdevguy

    webdevguy Guest

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    webdevguy, Apr 7, 2011 IP
  10. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    its because of the buysellads, try to put this in your html head:

    <!--[if IE 7]>
    <style type="text/css">
    div.bsap {height:0px!important;}
    </style>
    <![endif]-->
     
    style0, Apr 7, 2011 IP
  11. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    No, on second thought, the ID for the buysellads are always the same for that placement right?

    Use it instead:
    <!--[if IE 7]>
    <style type="text/css">
    div#bsap_1259184 {height:0px!important;}
    </style>
    <![endif]-->
     
    style0, Apr 7, 2011 IP
  12. webdevguy

    webdevguy Guest

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    thanks bro!
     
    webdevguy, Apr 7, 2011 IP
  13. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    no problem.
     
    style0, Apr 7, 2011 IP
  14. webdevguy

    webdevguy Guest

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    hmmm, didnt work
     
    webdevguy, Apr 7, 2011 IP