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 4 of 4

Thread: CSS Clearer

  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry CSS Clearer

    Hi guys,

    i really nead your professional HELP here !! All the browsers show it perfectly ... just the ..ing IE gives me a transparent line before .left_side_down.

    I would really apreciate your help. Thanks

    Here is my css code:


    .left_side {
    float:left;
    margin:0;
    width:307px;
    }
    .right_side {
    width:463px;
    height:303px;
    margin-left:307px;
    background-image:url(../images/rightside_img.jpg);
    }
    div.clearer {
    clear:both;
    line-height:0;
    }


    .left_side_down {
    padding:0;
    margin:0;
    float:left;
    width::249px;

    }

    .right_side_down {
    padding:0;
    margin:0;
    margin-left:249px;
    }








    and here is my HTML code





    <div class="left_side">
    </div>


    <div class="right_side">

    </div>

    <div class="clearer"></div>




    <div class="left_side_down">
    </div>


    <div class="right_side_down">
    </div>

    <div class="clearer"></div>

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,798
    Thanks
    8
    Thanked 131 Times in 129 Posts
    didnt test the code out but

    Code:
    .left_side_down {
    padding:0;
    margin:0;
    float:left;
    width::249px;
    
    }
    the extra : you have is probally an issue
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    wrote that by mistake ... byt that doesnt affect the code ..

  • #4
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey guys, i've found the solution that worked for me .. the problem was in IE 7.

    So i wrote this in CSS

    *:first-child+html .left_side_down {
    margin-top:-3px; /* #%@#%(! IE 7 */
    }


    Hope this helps anyone that has a problem like mine.


  •  

    Posting Permissions

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