Help - Search - Member List - Calendar
Full Version: Question about css
WorkTheWeb Forums > Webmaster Resources > Webmaster - General Help
Support our Sponsors!
paul
Hi,
How would I addd the pseudo class Hover to the following css snippet;

a.linkone {
background-image: url(web-content/images/images/menuup-1_01.gif);
}

The link is being used in a unordered type list which is defined by the
following:

ul#mainnav {
list-style:none;
margin: 0;
padding: 0;
background-color: #39A3FF;

}
ul#mainnav li a:link, ul#mainnav li a:visited {
text-decoration: none;
display: block;
width: 100%;
color: #005299;
width: 88%;
padding: 6px 6%;
font: bold 10pt/1.5 arial,sans-serif;

}
ul#mainnav li {
border-top: 1px solid #a5b5c6;
}
ul#mainnav li a:hover {
background-color: #BFE1FF;
color: #7B7CFF;

}

And the code for the list is;

<ul id="mainnav">
<li ><a href="(EmptyReference!)" class="linkone">link one</a></li>
<li><a href="(EmptyReference!)" class="linktwo">link two</a></li>
<li><a href="(EmptyReference!)" class="linkthree">link three</a></li>
<li><a href="(EmptyReference!)" class="linkfour">link four</a></li>
<li><a href="(EmptyReference!)" class="linkfive">link five</a></li>
<li><a href="(EmptyReference!)" class="linksix">link six</a></li>
<li><a href="(EmptyReference!)" class="linkseven">link seven</a></li>
</ul>

I dont want to use the same image on each link, thats why I have defined
seven different classes for the <a href> tag .linkone to .linkseven

Hope you can help, and I hope I'm posting in the right place, if not
sorry!

TIA

Paul


--
I am using the free version of SPAMfighter for private users.
It has removed 3286 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

paul
sorry for the double posting OE had a fit

Paul
"paul" <[Email Removed]> wrote in message
news:da0edp$mjq$[Email Removed]...
QUOTE
Hi,
How would I addd the pseudo class Hover to the following css snippet;

a.linkone {
background-image: url(web-content/images/images/menuup-1_01.gif);
}

The link is being used in a unordered type list which is defined by the
following:

ul#mainnav {
list-style:none;
margin: 0;
padding: 0;
background-color: #39A3FF;

}
ul#mainnav li a:link, ul#mainnav li a:visited {
text-decoration: none;
display: block;
width: 100%;
color: #005299;
width: 88%;
padding: 6px 6%;
font: bold 10pt/1.5 arial,sans-serif;

}
ul#mainnav li {
border-top: 1px solid #a5b5c6;
}
ul#mainnav li a:hover {
background-color: #BFE1FF;
color: #7B7CFF;

}

And the code for the list is;

<ul id="mainnav"
<li ><a href="(EmptyReference!)" class="linkone">link one</a></li
<li><a href="(EmptyReference!)" class="linktwo">link two</a></li
<li><a href="(EmptyReference!)" class="linkthree">link three</a></li
<li><a href="(EmptyReference!)" class="linkfour">link four</a></li
<li><a href="(EmptyReference!)" class="linkfive">link five</a></li
<li><a href="(EmptyReference!)" class="linksix">link six</a></li
<li><a href="(EmptyReference!)" class="linkseven">link seven</a></li
</ul

I dont want to use the same image on each link, thats why I have defined
seven different classes for the <a href> tag .linkone to .linkseven

Hope you can help, and I hope I'm posting in the right place, if not
sorry!

TIA

Paul


--
I am using the free version of SPAMfighter for private users.
It has removed 3286 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!






--
I am using the free version of SPAMfighter for private users.
It has removed 3287 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

Charles Sweeney
paul wrote

QUOTE
--
I am using the free version of SPAMfighter for private users.
It has removed 3287 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

Not addressed to you Paul.

Fucking great isn't it? The bottom line, including the exclemation
mark, would make any spammer proud.

This bit is addressed to you Paul.

Please tell SPAMfighter that I don't like seeing their free ads all over
usenet. And it's poor messengers like you who are doing their dirty
spamming work for them.

--
Charles Sweeney
http://CharlesSweeney.com

Paul Watt
On 30 Jun 2005 12:31:27 GMT, Charles Sweeney <[Email Removed]>
wrote:

QUOTE
paul wrote

--
I am using the free version of SPAMfighter for private users.
It has removed 3287 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

Not addressed to you Paul.

Fucking great isn't it?  The bottom line, including the exclemation
mark, would make any spammer proud.

This bit is addressed to you Paul.

Please tell SPAMfighter that I don't like seeing their free ads all over
usenet.  And it's poor messengers like you who are doing their dirty
spamming work for them.

Charles,

Just to let you know, i've ditched OE as my newsreader and am now
using free agent...no SPAMfighter messages any more!

Paul

Stacey
"Paul Watt" <[Email Removed]> wrote in message
news:[Email Removed]...
QUOTE
On 30 Jun 2005 12:31:27 GMT, Charles Sweeney <[Email Removed]
wrote:

paul wrote

--
I am using the free version of SPAMfighter for private users.
It has removed 3287 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

Not addressed to you Paul.

Fucking great isn't it?  The bottom line, including the exclemation
mark, would make any spammer proud.

This bit is addressed to you Paul.

Please tell SPAMfighter that I don't like seeing their free ads all over
usenet.  And it's poor messengers like you who are doing their dirty
spamming work for them.

Charles,

Just to let you know, i've ditched OE as my newsreader and am now
using free agent...no SPAMfighter messages any more!


I use OE and I don't have a sig with messages for SPAMfighter!

Charles Sweeney
Paul Watt wrote

QUOTE
On 30 Jun 2005 12:31:27 GMT, Charles Sweeney <[Email Removed]
wrote:

paul wrote

--
I am using the free version of SPAMfighter for private users.
It has removed 3287 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

Not addressed to you Paul.

Fucking great isn't it?  The bottom line, including the exclemation
mark, would make any spammer proud.

This bit is addressed to you Paul.

Please tell SPAMfighter that I don't like seeing their free ads all
over
usenet.  And it's poor messengers like you who are doing their dirty
spamming work for them.

Charles,

Just to let you know, i've ditched OE as my newsreader and am now
using free agent...no SPAMfighter messages any more!

Yiipppeeee!!

I used to use OE. I now use Xnews. I would highly recommend it.

--
Charles Sweeney
http://CharlesSweeney.com

Charles Sweeney
Stacey wrote

QUOTE
"Paul Watt" <[Email Removed]> wrote in message
news:[Email Removed]...
On 30 Jun 2005 12:31:27 GMT, Charles Sweeney <[Email Removed]
wrote:

paul wrote

--
I am using the free version of SPAMfighter for private users.
It has removed 3287 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

Not addressed to you Paul.

Fucking great isn't it?  The bottom line, including the exclemation
mark, would make any spammer proud.

This bit is addressed to you Paul.

Please tell SPAMfighter that I don't like seeing their free ads all
over
usenet.  And it's poor messengers like you who are doing their dirty
spamming work for them.

Charles,

Just to let you know, i've ditched OE as my newsreader and am now
using free agent...no SPAMfighter messages any more!


I use OE and I don't have a sig with messages for SPAMfighter!

Woops. My response to Paul doesn't quite make sense now. I mis-read
it.

--
Charles Sweeney
http://CharlesSweeney.com

Stacey
"Charles Sweeney" <[Email Removed]> wrote in message
news:[email protected]...
QUOTE
Stacey wrote

"Paul Watt" <[Email Removed]> wrote in message
news:[Email Removed]...
On 30 Jun 2005 12:31:27 GMT, Charles Sweeney <[Email Removed]
wrote:

paul wrote

--
I am using the free version of SPAMfighter for private users.
It has removed 3287 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!

Not addressed to you Paul.

Fucking great isn't it?  The bottom line, including the exclemation
mark, would make any spammer proud.

This bit is addressed to you Paul.

Please tell SPAMfighter that I don't like seeing their free ads all
over
usenet.  And it's poor messengers like you who are doing their dirty
spamming work for them.

Charles,

Just to let you know, i've ditched OE as my newsreader and am now
using free agent...no SPAMfighter messages any more!


I use OE and I don't have a sig with messages for SPAMfighter!

Woops.  My response to Paul doesn't quite make sense now.  I mis-read
it.

LOL! That is OK.

Stacey


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.