Newbie said:
As Craig Reville-Hall would say "That was an absolute disaaaaaaster
daaaarling!"
Below is my original link which works as I want it to with all the
drop down menus. Problem is the page breaks up when the window is
downsized and also it is not centered.
How does it *break*? The menu items wrap, and that is actually a
good thing! All you need is a very little more CSS to separate
the wrapped links vertically, I addressed this in my last post,
with a little margin.
Underneath it is a link to the
page with your suggested changes in which the drop down menus no
longer work, the text is all a different size and the homepage menu is
no longer part of the menubar. What on earth have I done wrong?
I think a couple of things. You have:
<ul class="sddm" style="padding-top: 0.5em;" #=""
onmouseover="mopen('m1')" onmouseout="mclosetime()">Homepage
<div st
??
the major problem, to be brief, being that a UL must have as
first child, a LI, can't be a DIV. Check your changes again.
The good news is that at least it doesnt break when the window is
downsized AND it is more central. However, I cannot see how that would
work under different screen resolutions.
Yes, I agree that 55em for width will make it too rigid, but I
have posted a variation for you since, using percentages for this
very reason.
In addition I cannot see why
you removed the width:60px from the #sddm li a style as I want a fixed
width for each menu.
The reason it is a bad idea is that if your visitor uses a bigger
text size than you are expecting, the text might not fit into a
fixed px box. If you must dictate the size, pick the longest list
item text, and set the width by its standard in ems. A bad idea
though because it is a waste of space for shorter items, better
to let the list items grow or shrink according to the content.
Floats are shrink-to-fit, shame to not use the magic of this.