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 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts

    problem clearing floats..

    I am having a slight problem clearing my floats and making the text on my website appear correctly in both Mozilla and Internet Explorer.

    http://www.audiadesign.com/site.htm

    I used the following code to attempt to clear floats and fix the problem:

    .clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    }

    .clearfix {display: inline-block;}

    /* Hides from IE-mac \*/
    * html .clearfix {height: 1%;}
    .clearfix {display: block;}
    /* End hide from IE-mac */

    I then added class="clearfix" to my container that is floating as you can see, and the problems are still happening. Any ideas? Thanks

    Chris

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem, clearing?

    What seems to be the problem? I only have IE6.0 available and didn't see any glaring errors.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello chbrandt,
    I didn't look at it in IE6 but it does need a little work to look right in IE7 and FF.
    -In each of your #who, #design and #quote divs you have an extra divs with no id that you are not styling. Get rid of the extra divs.
    -In your footer, your misusing a ul.
    -Style switcher not working.

    Check the validator to fix the rest of the problems.

    [edit] actually, it looks right in IE7 right now.
    Last edited by Excavator; 02-06-2007 at 03:40 PM.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New Coder
    Join Date
    Jul 2006
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts
    ok...the ul is one of the problems I was overlooking...thanks

    I originally made it look right in Firefox but then it didnt look right in IE so I changed it to look right in IE just messing around and I can't figure out how to make it look right in both. I think there is something wrong with the floats clearing but that doesn't seem to be something I know how to fix. I'll get rid of the div's and see if that will fix it and if not I'll post again. Thanks

    Chris

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Well fix your coding errors first.
    See them here.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    After you fix your errors, if you're still having trouble clearing floats (I don't think that's the problem in this case) there is a much easier way. Look at this page.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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