Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-06-2007, 08:05 AM   PM User | #1
chbrandt
New Coder

 
Join Date: Jul 2006
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
chbrandt is an unknown quantity at this point
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
chbrandt is offline   Reply With Quote
Old 02-06-2007, 03:06 PM   PM User | #2
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
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
ronaldb66 is offline   Reply With Quote
Old 02-06-2007, 03:38 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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.
__________________
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

Last edited by Excavator; 02-06-2007 at 03:40 PM..
Excavator is offline   Reply With Quote
Old 02-06-2007, 04:59 PM   PM User | #4
chbrandt
New Coder

 
Join Date: Jul 2006
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
chbrandt is an unknown quantity at this point
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
chbrandt is offline   Reply With Quote
Old 02-06-2007, 05:15 PM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
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!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 02-06-2007, 05:22 PM   PM User | #6
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:48 PM.


Advertisement
Log in to turn off these ads.