Menu
I have a problem with this as I want to use a mouseover on the div, but I would like the div to be a rectangle. However, as soon as I change background from white to transparent the div seems to change shape (I assume it maps to the objects in it), but this screws up my mouseover. Is there anyway to have it transparent but still rectangular???
IxxI
> [/SIZE]
it gives precendence to the layer with the text [/QUOTE]to the layer UNDER the layer that is on top?
<html>
<head><title>CSS transparency test</title></head>
<body>
<div style="
text-align: center;
display: block;
width: 300;
height: 300;
position: absolute;
top: 0px;
left: 0px;
z-index: 20;
background: lightblue;
border: 3px solid black;"
onMouseOver="this.innerHTML = 'Hidden text!';this.style.background = 'transparent';"
onMouseOut="this.innerHTML = '';this.style.background = 'lightblue';"
></div>
</body>
</html>
[i]Originally posted by cmelnick [/i]
[B]width: 300;
height: 300;[/B][/QUOTE]
[i]Originally posted by khaki [/i][/quote]
The file mainmenu.js is not included in your zip file. [/QUOTE]yeah... actually it is Niket (look again?)
<i>
</i><div class="SubMenu">
<div class="MenuItem">
<img src="halifax.gif" width=150 height=30>
<img src="transparent1px.gif" width=30 height=30>
</div>
<div class="MenuItem">
<img src="newyork.gif" width=150 height=30>
<img src="transparent1px.gif" width=30 height=30>
</div>
<div class="MenuItem">
<img src="france.gif" width=150 height=30>
<img src="uparrow.gif" width=30 height=30 onClick="function to scroll up">
</div>
</div>
[i]Originally posted by AdamGundry [/i]
[B]khaki, that is CSS in the div's[URL=http://www.w3.org/TR/html401/present/styles.html#adef-style]style[/URL] attribute, known as an inline style. It is legal but less often used because it negates the advantage of using external stylesheets. The mouseover attributes are not part of the CSS.
BTW, shouldn't width and height have units (px) specified?
Adam [/B][/QUOTE]
[CODE]
display:block;
width:100%;
[/CODE]
0.1.9 — BETA 5.7