HighDots Forums  

Re: Validated page falls apart in IE8

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Validated page falls apart in IE8 in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 05-23-2009 , 04:52 PM






Ed Jay wrote:
Quote:
http://www.edbjay.com/brth_usermenu.html

This page renders fine in Opera and FF, but collapses in IE8. The page
validates to 4.01 strict, and the CSS validates. Why?
Probably because validation is not sufficient.

It's a little broken in IE6, looks as you wanted in IE7.

Why don't you remove your wildcard margin/padding and see what happens.

The mix of styles is too much trouble for me to sort through, and I
don't have IE8 on the computer.

You are missing background images also (in IE6 too), which I find
curious.

Jeff
Quote:

Reply With Quote
  #2  
Old   
Jeff
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 05-24-2009 , 12:56 AM






Ed Jay wrote:
Quote:
Jeff wrote:

Ed Jay wrote:
http://www.edbjay.com/brth_usermenu.html

This page renders fine in Opera and FF, but collapses in IE8. The page
validates to 4.01 strict, and the CSS validates. Why?
Probably because validation is not sufficient.

It's a little broken in IE6, looks as you wanted in IE7.

Why don't you remove your wildcard margin/padding and see what happens.

Did, and nada.
What I see in IE8 is collapsed top and bottom margins. Since everything
is block level, I can't imagine why they are missing. I wonder if it is
an issue with the floats, if so, overflow: hidden might fix it.

Quote:
The mix of styles is too much trouble for me to sort through, and I
don't have IE8 on the computer.

You are missing background images also (in IE6 too), which I find
curious.

I don't know what you're trying to tell me.
You have background images that aren't showing up in IE6. I don't
remember if I saw them in IE7 and IE8. I've got access to 3 windows
boxes with a different IE version on each... a pain...

Jeff


Quote:

Reply With Quote
  #3  
Old   
Jeff
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 05-26-2009 , 08:22 AM



Ed Jay wrote:
Quote:
Jukka K. Korpela wrote:

Jeff wrote:

What I see in IE8 is collapsed top and bottom margins. Since
everything is block level, I can't imagine why they are missing. I
wonder if it is an issue with the floats, if so, overflow: hidden might
fix it.
It could be an issue with floats. I've seen page layout break badly on IE 8,
apparently due to floats, presumably because IE 8 tries so hard to be
"standard" that it's over-standard.

Jeff, Jukka, thanks. It was an issue with floats, and it was my own error.

If you're interested, I had:
div><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div
div class=clearfloats></div
I've been getting away from the float clearing div and doing this
(Doraymes suggestion):

<div style="overflow: hidden"><ul>
<li style='float:left;'>yada</li><li style='float:right;'>yada2</li>
</ul></div>

See if that also fixes this. I don't have IE8 on hand at the moment.

Not that I know why that works, or for that matter why a clearing div
works. But both do prop up the box. I personally prefer the one without
extraneous markup.

Jeff

Quote:

Reply With Quote
  #4  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 05-26-2009 , 10:59 AM



Jeff wrote:

Quote:
I've been getting away from the float clearing div and doing this
(Doraymes suggestion):

div style="overflow: hidden"><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div
Works in IE8, does not in IE6

Quote:
See if that also fixes this. I don't have IE8 on hand at the moment.

Not that I know why that works, or for that matter why a clearing div
works. But both do prop up the box. I personally prefer the one without
extraneous markup.
Because by default floats are *not* contained by their parent blocks in
normal flow. What does that mean? Well if you have 2 paragraph blocks
and within the 1st you have an image that you float. If the image is
taller than the parent paragraph is *should* "break out" of the bottom
of its parent and displace the contents of the 2nd.

+-----------------+
Quote:
paragraph 1 |
|
|
+--------+ |
float |--------+
image |--------+
+--------+ |
|
paragraph 2 |
+-----------------+

Just as you see in print like magazines.

Now if you add a clearing element after the image it changes the flow so
that paragraph 1 expands to fully contain the image. This works with IE6

+-----------------+
Quote:
paragraph 1 |
|
|
+--------+ |
float | |
image | |
+--------+ |
+-----------------+
+-----------------+
Quote:
paragraph 2 |
|
+-----------------+

Now there is an obscure feature that if you change the block formating
context of the container that you can get it to "expand" contain the
float. Setting its overflow property to something other than the default
"visible"

http://www.w3.org/TR/CSS21/visuren.html#block-formatting

So setting paragraph 1 'overflow: hidden' should make it expand to
encompass the float. It does, but not in IE6.



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #5  
Old   
Jeff
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 05-26-2009 , 03:24 PM



BootNic wrote:
Quote:
On Tue, 26 May 2009 10:59:57 -0400
"Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote in:
gvh056$s1e$1 (AT) news (DOT) eternal-september.org

Jeff wrote:

I've been getting away from the float clearing div and doing this
(Doraymes suggestion):

div style="overflow: hidden"><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div

No need for the containing div. Style could be applied directly to the
ul element.

Works in IE8, does not in IE6

[snip]

Now if you add a clearing element after the image it changes
the flow so that paragraph 1 expands to fully contain the image.
This works with IE6

No need to add clearing elements.

[snip]

Now there is an obscure feature that if you change the block
formating context of the container that you can get it to
"expand" contain the float. Setting its overflow property to
something other than the default "visible"

http://www.w3.org/TR/CSS21/visuren.html#block-formatting

So setting paragraph 1 'overflow: hidden' should make it expand
to encompass the float. It does, but not in IE6.

Adding zoom:1; will allow IE 6 to clear the float.
That's very interesting and comes as a surprise to me. Apparently it
triggers "has layout", whatever that is. I'll add it to my toolkit as it
does no harm.

Oh, thanks Jonathan for the detailed explanation. I'm going to read
through it again.

Jeff
Quote:
IE 6/7 will be more then happy to clear the floats with just
zoom:1;.

One could just add zoom:1; and validate as CSS3 or use
conditional comments to add zoom:1; for IE 6.


Reply With Quote
  #6  
Old   
Jeff
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 05-26-2009 , 09:52 PM



dorayme wrote:
Quote:
In article <gvh056$s1e$1 (AT) news (DOT) eternal-september.org>,
"Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote:

Jeff wrote:

I've been getting away from the float clearing div and doing this
(doraymes suggestion):

div style="overflow: hidden"><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div
Works in IE8, does not in IE6

You will find that quite often IE6 does not give this problem because
somewhere along the line the browser has been tripped (against
standards) into giving height to the parent by the presence of an
explicit width or height.
I was wondering about that because I didn't remember seeing this
problem in IE6. Turns out that I normally set a width. Indeed, setting
widths is common.

But I suspect we all have our own uses for floats. I'm enjoying the
inline-block option for product and image thumbs, I like not having to
set heights to keep rows from starting at the least tall block. That has
always annoyed me.
Quote:
In the above example, it is true that IE6 is not affected by any
overflow rule. But one fix is simply to give an explicit width (100%
say) or a nominal height (say 1px) and hide this from other browsers via
a conditional. This latter is enough to make an IE6 container gain
enough height to cover all its floated children.

http://netweaver.com.au/floatHouse/page9.php


ul class="coversItsFloats"
li style='float:left;'>yada</li
li style='float:right;'>yada2</li
/ul

with, in the HEAD:

!--[if IE 6]
.coversItsFloats {background: #fcc; height: 1px;}
![endif]--

should do it.
Options options!

Jeff
Quote:

Reply With Quote
  #7  
Old   
Helpful person
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 06-05-2009 , 10:50 AM



On May 26, 11:13*am, Ed Jay <ed... (AT) aes-intl (DOT) com> wrote:
Quote:
Jeff wrote:
Ed Jay wrote:
Jukka K. Korpela wrote:

Jeff wrote:

What I see in IE8 is collapsed top and bottom margins. Since
everything is block level, I can't imagine why they are missing. I
wonder if it is an issue with the floats, if so, overflow: hidden might
fix it.
It could be an issue with floats. I've seen page layout break badly on IE 8,
apparently due to floats, presumably because IE 8 tries so hard to be
"standard" that it's over-standard.

Jeff, Jukka, thanks. It was an issue with floats, and it was my own error.

If you're interested, I had:
div><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div
div class=clearfloats></div

I've been *getting away from the float clearing div and doing this
(Doraymes suggestion):

div style="overflow: hidden"><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div

* See if that also fixes this. I don't have IE8 on hand at the moment..

* Not that I know why that works, or for that matter why a clearing div
works. But both do prop up the box. I personally prefer the one without
extraneous markup.

It didn't work for me.

--
Ed Jay (remove 'M' to reply by email)

Win the War Against Breast Cancer.
Knowing the facts could save your life.http://www.breastthermography.info- Hide quoted text -

- Show quoted text -
As a beginner I have a simple question (the question is simple) about
floats. It seems to me that it is very difficult to get them to work
as expected. Is their logic left over from old specifications or is
there really a good method to what seems like madness?

www.richardfisher.com

Reply With Quote
  #8  
Old   
Jeff
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 06-05-2009 , 03:39 PM



Helpful person wrote:
Quote:
On May 26, 11:13 am, Ed Jay <ed... (AT) aes-intl (DOT) com> wrote:
Jeff wrote:
Ed Jay wrote:
Jukka K. Korpela wrote:
Jeff wrote:
What I see in IE8 is collapsed top and bottom margins. Since
everything is block level, I can't imagine why they are missing. I
wonder if it is an issue with the floats, if so, overflow: hidden might
fix it.
It could be an issue with floats. I've seen page layout break badly on IE 8,
apparently due to floats, presumably because IE 8 tries so hard to be
"standard" that it's over-standard.
Jeff, Jukka, thanks. It was an issue with floats, and it was my own error.
If you're interested, I had:
div><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div
div class=clearfloats></div
I've been getting away from the float clearing div and doing this
(Doraymes suggestion):
div style="overflow: hidden"><ul
li style='float:left;'>yada</li><li style='float:right;'>yada2</li
/ul></div
See if that also fixes this. I don't have IE8 on hand at the moment.
Not that I know why that works, or for that matter why a clearing div
works. But both do prop up the box. I personally prefer the one without
extraneous markup.
It didn't work for me.

--
Ed Jay (remove 'M' to reply by email)

Win the War Against Breast Cancer.
Knowing the facts could save your life.http://www.breastthermography.info- Hide quoted text -

- Show quoted text -

As a beginner I have a simple question (the question is simple) about
floats. It seems to me that it is very difficult to get them to work
as expected. Is their logic left over from old specifications or is
there really a good method to what seems like madness?
I think floats were thought of with images in mind, see Jonathans take
on that. We tend to use them for block level items like columns, and
invariably those block level items are inside other containers that we
don't want collapsed. That's where the tricks come in to give that
container some height.

I think it's that floats can do a lot of things you can't do well
otherwise, so they get used for things that probably weren't conceived
of. I'm using inline blocks for many things I used to use floats for,
just to take a load off of the poor overused float.

By the time CSS5 is widely implemented, we all should either be very
happy, or dead.

Jeff

Quote:
www.richardfisher.com

Reply With Quote
  #9  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 06-06-2009 , 06:42 AM



On 5 June, 15:50, Helpful person <rrl... (AT) yahoo (DOT) com> wrote:

Quote:
As a beginner I have a simple question (the question is simple) about
floats. *It seems to me that it is very difficult to get them to work
as expected. *
Read a _good_ tutorial
http://brainjar.com/css/positioning/

Reply With Quote
  #10  
Old   
Sherm Pendley
 
Posts: n/a

Default Re: Validated page falls apart in IE8 - 06-06-2009 , 08:29 AM



Helpful person <rrllff (AT) yahoo (DOT) com> writes:

Quote:
As a beginner I have a simple question (the question is simple) about
floats. It seems to me that it is very difficult to get them to work
as expected.
It's very easy to get them to work as they're supposed to. Perhaps the
problem is your expectations?

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net

Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.