Hello all,
Just a technical question mostly to satify my curiosity. I've read repeatedly that the menu does not like to be in a <div> and should be used in a table for relative positioning.
Why? What is it about a <div> that the menu doesn't like? In my (admittedly limited) experiments, there seems to be no adverse affect to the menu being in a div. But again, my experiments were limited and not taking in to account the many different applications its used for.
Just curious. One can never learn enough :>)
Viken K.
Why not put the menu is a DIV?
Hi Viken,
How's it going?
Here's my not very technical explanation since I don't have the indepth knowledge of divs and all the browsers and how each 'treats' them nor the technical terms.
Think about divs and using divs for your layout, if you check around you'll see that you have all these kind of 'hacks' for div layouts, IE HACK, Mozilla Fix [interesting it's a hack for IE and a Fix for Mozilla ] That's to make the div function the same in different browsers, as far as I can understand it's because different browsers do different things with regard things like postion:absolute [relative, static, fixed or whatever it might be]
The menu itself contains divs, spans, tables, and I don't know what all else. So, what happens in some browsers, or perhaps do to something that the person coded with regard to their div, the menu can have a problem, usually it's a problem related to where the submenus end up being positioned.
Hope that helps, though I do admit, I'm not real technical on my explanation.
Ruth
How's it going?
Here's my not very technical explanation since I don't have the indepth knowledge of divs and all the browsers and how each 'treats' them nor the technical terms.
Think about divs and using divs for your layout, if you check around you'll see that you have all these kind of 'hacks' for div layouts, IE HACK, Mozilla Fix [interesting it's a hack for IE and a Fix for Mozilla ] That's to make the div function the same in different browsers, as far as I can understand it's because different browsers do different things with regard things like postion:absolute [relative, static, fixed or whatever it might be]
The menu itself contains divs, spans, tables, and I don't know what all else. So, what happens in some browsers, or perhaps do to something that the person coded with regard to their div, the menu can have a problem, usually it's a problem related to where the submenus end up being positioned.
Hope that helps, though I do admit, I'm not real technical on my explanation.
Ruth
It's going well. I can't complain. Even if I did complain, it would fall on deaf ears! LOL :>)Ruth wrote:Hi Viken,
How's it going?
That makes sense. I suppose that browser support for tables is much more stable than for div's, since there's no interpretation of how a table should be rendered. So putting the menu in a table would mean more stability. I think most of the <div> instability comes because IE doesn't display the "Box Model" to html/css specs. However, IE 6 will display a proper box model if a full DOCTYPE is used.Think about divs and using divs for your layout, if you check around you'll see that you have all these kind of 'hacks' for div layouts, IE HACK, Mozilla Fix [interesting it's a hack for IE and a Fix for Mozilla ] That's to make the div function the same in different browsers, as far as I can understand it's because different browsers do different things with regard things like postion:absolute [relative, static, fixed or whatever it might be
I know. The anti-IE sentiment is sometimes amazing. I like IE, personally, but I am disppointed that IE does not fully support CSS2, since there so many cool CSS2 commands that can be used, many of which don't work in IE. Maybe IE-7 (or whatever the next version will be) will address that.[interesting it's a hack for IE and a Fix for Mozilla ]
That's good enough for me :>) Although, if anyone else wants to chime in (ahem....Andy) with a somewhat technical explanation, I'll be willing to listen, even though I may not understand it all :>)Hope that helps, though I do admit, I'm not real technical on my explanation.
Viken K.
Hiya,
I also like IE. As to the CSS 2, given CSS3 is on the way, maybe their just moving in that direction, or not There's so much else, like the filters, transitions and so on, maybe that just kind of gets lost in the development fixes?
Andy actually did explain it to me once. I can't find the info, and have OAS with CRS complication [Old-age Syndrome and Can't Remember S... ah stuff]
Ain't that the truth!vikenk wrote:It's going well. I can't complain. Even if I did complain, it would fall on deaf ears! LOL :>)
I also like IE. As to the CSS 2, given CSS3 is on the way, maybe their just moving in that direction, or not There's so much else, like the filters, transitions and so on, maybe that just kind of gets lost in the development fixes?
Andy actually did explain it to me once. I can't find the info, and have OAS with CRS complication [Old-age Syndrome and Can't Remember S... ah stuff]