Forum Moderators: not2easy
Experimenting with a transitional version of my website going from nested tables to CSS.
1. Working on a Menu box which is now completely CSS
2. Boxed links with the box's background colour changing on hover.
3. It's supposed to change colour if you mouseover anywhere on the box (i.e. doesn't have to be on the word).
4. Works fine in NN7, Opera 7.
5. Works fine in IE6... once. Suppose I want two boxes, one under the other, I cut and paste the code and the box shows up just fine, EXCEPT that it ONLY lights up when I hover over the WORDS.
6. What is the deal? Same EXACT code, cut and pasted... all the div tags are accounted for, nothing missing, but it acts different. SAME page, SAME browser, TWO different renderings.
it's making me mental.
P.S. It's really tight in both NN7 and Opera7
<!--START LEFT COLUMN-->
<div id="leftstuff">
<!--START BOX 1 -->
<div class="boxmain">
<div id="boxtitle"> <!--Box title has a different bg-->
Categories
</div>
<div id="boxcontent">
<div id="boxlinks">
<a href="http://www.example.com">One</a>
<a href="http://www.example.com">Two</a>
<a href="http://www.example.com">Three</a>
<p></p><--don't worry I'll get rid of this
</div>
</div>
</div>
<!-- END BOX 1 -->
<!-- START BOX 2 (Exactly the same divs) -->
<div class="boxmain">
<div id="boxtitle"> <!--Box title has a different bg-->
Categories
</div>
<div id="boxcontent">
<div id="boxlinks">
<a href="http://www.example.com">One</a>
<a href="http://www.example.com">Two</a>
<a href="http://www.example.com">Three</a>
<p></p><--don't worry I'll get rid of this
</div>
</div>
</div>
<!-- END BOX 2 -->
</div>
<!-- END LEFT COLUMN -->
The hovering is happening in div#boxlinks, so I guess the parent element would be div#boxcontent... In which case, there is no width defined. The width is defined in div#leftstuff and in div#boxmain.
Again, the wierd thing is that the hovering works in Box 1 but not in Box 2 *shrug*
any help is greatly appreciated, I'm trying my best to convert :)
Only problem I had was with Firebird and NN7. Mozilla seems to do funny things with width:100% and padding combined. Say I have padding: 1px, they seem to add the 1px on top of the 100%.
So if the parent element is 150px wide, the child seems to effectively span 151px (or is it 152px.. both sides?).
Anyway, I think that's what was happening, it was overshooting the parent box in those two browsers. I had to get rid of the padding and center the text.
Doesn't look that bad I guess, can't have everything. Alls I know is that it works in all the major browsers...
Now to get the 3 column liquid layout to work in IE... (M.S. again? You betcha.)
shasan.