[SOLVED] Clear:both does not works in IE6

This is a discussion on "[SOLVED] Clear:both does not works in IE6" within the Web Page Design section. This forum, and the thread "[SOLVED] Clear:both does not works in IE6 are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 27th, 2007, 13:28
New Member
Join Date: Dec 2007
Location: France
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow [SOLVED] Clear:both does not works in IE6

Hello,

I spent nights to do this...

I am creating a main menu, using CSS... there is two lines of links.
To make sure the second line is really going to the second line, I use
Clear:both as a separator.
It looks good on Firefox, but it looks like IE6 ignores it.

Any help would be VERY welcome !

I have "streamlined" the problem part and attached for those who may take a look. It is a small html and a CSS file.

Thanks

Attila
Attached Files
File Type: html Menu-Show.html (3.6 KB, 8 views)
File Type: css sti_proto.css (15.5 KB, 5 views)

Last edited by attila001122; Dec 27th, 2007 at 13:30.

  #2 (permalink)  
Old Dec 27th, 2007, 14:04
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

After the first line of navigation and before the second line add this html:
Code: Select all
<div class="clear"></div>
CSS for that would be
Code: Select all
.clear {
    height:1px;
    margin:0 0 -1px 0;
    clear:both;
    overflow:hidden;
}
That should allow you to be sure they are on two separate lines.
  #3 (permalink)  
Old Dec 27th, 2007, 19:08
New Member
Join Date: Dec 2007
Location: France
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Re: Clear:both does not works in IE6

Hello Lchad,

Thanks for the quick reply !

Yes, your code did made the second line start in the second line.

But...
Just somewhere under the last word of the first line, so some of the links unfortunatley getting to the third line....

Maybe I do something really silly, but whatever I try I have problem to got the links right in the second line with IE 6...

In case you did not given up on me I upload the files.

Thanks

Attila
Attached Files
File Type: css sti_proto.css (16.0 KB, 3 views)
File Type: html Menu-Show.html (3.6 KB, 2 views)
  #4 (permalink)  
Old Dec 27th, 2007, 20:48
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

What links are supposed to be on the first line and what links are on line 2?
  #5 (permalink)  
Old Dec 27th, 2007, 21:43
New Member
Join Date: Dec 2007
Location: France
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

Hello,

" What links are supposed to be on the first line and what links are on line 2?"

This is an attempt to do a face lift to a website to promote scientific publications...

I prefer to have the menu on the top and not on the side.
So I need at least two lines for the menu. I guess later even more.

If you like to see, you can see the prototype on:
http://www.surgicaltechnology.com/On...oto2-index.htm

I also would like to use the project to understand more about CSS instead of redesign the site more simply or use ready made modules, because I know - I discovered - that there are many potholes if one wants to make his:her site look similar on most browsers...
  #6 (permalink)  
Old Dec 27th, 2007, 23:18
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

Sorry, you have lost me. Did you fix it?
  #7 (permalink)  
Old Dec 27th, 2007, 23:46
New Member
Join Date: Dec 2007
Location: France
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

No...
...not yet.

I am sorry.
English is not my first language. And I was not exactly clear either.

The code you give me, gets me to the next line but not to the beginning of the line, rather towards to the end of it... so some links goes to the third line.

The link I have sent is just the site to see the "whole picture" in case you want to understand what is this needs to be.

I have just uploaded the "three line" result : (please see with IE6)
http://www.surgicaltechnology.com/Online/Menu-Show.html
and I have attached before the CSS file, to show how it looks now.


Thanks again for your efforts

Attila

ps: There is 01:45 (morning) in Europe here and I getting sleepy... I may not be able to read your reply before tomorrow.
  #8 (permalink)  
Old Dec 28th, 2007, 13:27
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

I've played with the code a bit but it's difficult to fix the problem because many of your items are graphics in a library. In IE6, it's obvious that the Home button (or clearning div) is getting hung up on the "contact us" button or the separator between the "register" and "contact us".

I would check the heights of all your graphics in the library. Making sure none of them exceed the 26 px height since that is the height of your separator.

Once you are able to move the "Home" and "instructions for authors" button to the left, the rest of the buttons will move to the second line.

Also check this code and see if you need the part in red.
Code: Select all
<div class="separator">
    <!-- sep -->
  </div>
   <div class="clear"></div>
I ran your code through the validator and it doesn't like that part. See validation results here.

Crossing my fingers for your!

Last edited by Lchad; Dec 28th, 2007 at 15:33.
  #9 (permalink)  
Old Dec 28th, 2007, 14:59
New Member
Join Date: Dec 2007
Location: France
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

Hello Lchad !

Thanks for the time you spend on this.

You can not imagine how helpful you are.

Besides the site will work (eventually, I hope) you point to the weakest parts, and that helps me to learn CSS from my mistakes (the best way, apart of other peoples mistakes).

So I going to check and fix the validation errors and the graphics...
As soon I have any results I come back!

Thanks again !

Attila
  #10 (permalink)  
Old Dec 30th, 2007, 13:06
New Member
Join Date: Dec 2007
Location: France
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

YES !

Ok, now it works !

Thanks for your advise.
It took some time, but I have learned a lot.
The problem was the little separator bars between the links.
Firefox was not so sensitve to their size as IE6...
The twist was on the thing that the navigation menu had a single line on the top row, and a double line on the bottom.

I guess without your hep I probably would have to make some ugly hacks, what I was used to, while working on Frontpage.

Exactly for that I am trying to learn CSS, to minimise the hacks.

Special thanks for the validating link !

Again, thanks, and have a very Happy New Year !

Attila
  #11 (permalink)  
Old Dec 30th, 2007, 14:43
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Clear:both does not works in IE6

Excellent job attilla!

That's the way to tackle how to learn css. One problem at a time.
I'm going to mark this thread solved!
Closed Thread

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PHP-MySQL sitw not woking on webhost, but works on XAMPP RohanShenoy PHP Forum 2 Jan 21st, 2008 19:05
[SOLVED] blur to clear image flying3gg Flash & Multimedia Forum 4 Oct 18th, 2007 01:51
all clear ltd littlebilly Free Web Site Critique 9 Aug 7th, 2007 21:50
Just wanted to clear this up Accurax Webforumz Cafe 7 Dec 7th, 2006 20:46
<hr /> and clear:left Krakatoa Web Page Design 5 Dec 22nd, 2005 11:34


All times are GMT. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43