Forums

This topic is locked

CSS trouble !

Posted 25 Jul 2002 19:28:05
1
has voted
25 Jul 2002 19:28:05 Federico Delgado posted:
Somebody knows as to create the effect of submenus of windows in CSS?

Change the background and foreground color when the mouse is over the link ...

Thanx !!

Replies

Replied 29 Jul 2002 14:38:22
29 Jul 2002 14:38:22 Julio Taylor replied:
You'll be better off using JS for that. There's an extension called W3Color Changer availble from macromedia.com exchange.

It's scheeeeet

------------------------
Poolio

MSN:

www.eliziumdesign.com
Replied 30 Jul 2002 10:33:16
30 Jul 2002 10:33:16 Alexandro Colorado replied:
ummm no poolio he wont be better with JS. JS is evil and you wont get a chance to get a good result on multiple broswers. The answer is CSS since it will make your pages much faster.

What you were asking was for links and the code is simple...

on a CSS file just type this.

a:hover{
color: red;
}

try to do the same with a:link a:active and a:link.

Since I know you are working with <font color=green>dreamweaver</font id=green>, if you are in <font color=red><b>MX</b></font id=red> then just go to CODE and then add (the pencil with the +)and go to selectors.

Be sure to choose whenever the code is embeded on the html or just save as an external CSS file.


Kahlil Johnson
Replied 30 Jul 2002 10:40:32
30 Jul 2002 10:40:32 Julio Taylor replied:
Jza,

You'll find that the requirement here is te emulate the effect of the windows submenus. This involves not only chanmging the colour of the text but also the background of the cell in which the text is contained.

Now- i'm probably wrong, but i think the easiest way of changing the colour of a background is:

<pre id=code><font face=courier size=2 id=code>&lt;td width="120" height="10" onMouseOver="pviiW3Cbg(this, '#CCCCCC')" onMouseOut="pviiW3Cbg(this, 'eeeeee')"&gt;
</font id=code></pre id=code>

If there is a way to change the background colour of a cell using href link classes please post it here for the benefit of everyone else. Also, how do you make a cell itself contain an href tag without using js?

Cheers


------------------------
Poolio

MSN:

www.eliziumdesign.com
Replied 31 Jul 2002 00:36:10
31 Jul 2002 00:36:10 Dave Thomas replied:
I agree with Poolio, JScript or some DHTML is the way to go.

How you can think JS is evil when it breathed so much needed life into a static internet is beyond me.

"Get the kettle on, time for a brew"

Reply to this topic