Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Hover question.

Thread Tools

Re: Hover question.

Posts: n/a
In article <(E-Mail Removed)> ,
DLU <(E-Mail Removed)> wrote:

> I have one CSS for hover.
> .link A:hover {
> font-size: 100%;
> color: blue;
> background-color: white;
> width: 100%;
> display: block;
> }
> How would I add a second hover that does a different task, and how do
> I tell that section to use the different hover?

You can have a different hover style in addition by use of class or id
or indeed other ways. You need to be able to identify the bits in the
html that you need a different hover from the one above. Several ways to

The one above targets links in elements of class="link". So you could
have an element on the page or on a different page that was of
class="linksToInventions" and links inside elements of that class could
be made to hover differently by

..linksToInventions a:hover {...}

There are no simple rules how you target things, everything depends on
your site. For example if the site is just one big page and somewhere
you have links to various inventions (like the one that Ben C reckons
wards off teenagers*) then you might do what I suggest above by classing
a ul or a container div for the ul depending.

But if it is links on particular pages you want to hover differently,
then you can target the pages by classing a main wrapper for those pages.

The only rules of how to do all this stuff best is to be found in design
space. Design space is all the logically possible ways to markup and css
a website (how the thing looks is assumed to be a fixed given in this
idea). But outlining the criteria for which set of docs would trump
others would require probably a research project to even sound sensible.
But this will not stop usenet subscribers from venturing opinions.

I am so glad I find no need to be so opinionated... Lucky genes, I

* btw, I don't they work - devices to emit sounds at frequencies under
the ken of adults - because teenagers are stone deaf through exposure to
crazily loud music and simply a well honed ability *not* to listen

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change cell color when hover VB Programmer ASP .Net 3 06-11-2004 10:09 PM
Everytime I hover cursro over a posting, it crosses out with red mark on it.. on every posting alanb ASP .Net 2 04-23-2004 02:23 PM
Hover button Brad ASP .Net 6 01-25-2004 08:29 PM
Toolbar appears on image hover Paul ASP .Net 2 07-16-2003 04:34 PM
hover help / Tool Tip help in ASP.NET data gris control column ASP .Net 0 06-26-2003 07:20 AM