Jump to content

Archived

This topic is now archived and is closed to further replies.

Leonardo da Vinci

How to add CSSs for all tags?

Recommended Posts

Leonardo da Vinci

Hey Guys,

 

I wonder how to add CSSs for all tags?

I tried to add some CSS but this CSS applied on the first tag only.

 

The second question is : how to apply ( a:hover ) for tags only ?

 

Please my you help me with this :)

 

Thanks

.tag-link-7 { 
    background-color: #f9d236;
    border-bottom: 1px solid #dcb107;
    border-radius: 3px;
    color: #473a02;
    font-size: 1em;
    line-height: 1em;
    padding: 8px;
    white-space: nowrap;
}

.bl {  a:hover {
    background-color: #dcb107;
    border-bottom: 1px solid #927504;
    color: black;} }

Share this post


Link to post
Share on other sites
Danny

Hi,

 

If you want to target all tags and by tags I assume you're referring to the tags widget. You will want to use the tags class, as far as I can tell from your CSS, that class is only related to the first tag.

 

If you want to apply a hover, the code above isn't valid CSS, you will want to use something like this:

 

.bla:hover {
    background-color: #dcb107;
    border-bottom: 1px solid #927504;
    color: black;
}
 
See W3Schools for more information - http://www.w3schools.com/CSSref/sel_hover.asp

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×