The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help with html and css
d9esco
post Nov 29 2015, 06:36 PM
Post #1





Group: Members
Posts: 1
Joined: 29-November 15
Member No.: 23,776



I have a div classed as <div class="tree"> and I have an anchor within that div classed as <a href="" class="branch">

My code looks like this

.tree li a {
background-color: lightgreen;
}
.tree li a .genus {
border-color: purple;
}

Ive also tried

.tree li a {
background-color: lightgreen;
}
.genus {
border-color: purple;
}


Neither work, only the first .tree li a worked, how do I get the .genus class to change?


I tried this code but it dosnt work

.tree li a {
background-color: lightgreen;

}

.tree li a.genus {
background-color: lightgreen;

}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Nov 29 2015, 08:05 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Where is class="genus" used? I don't see it in the example you posted.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 30 2015, 12:00 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



We need the HTML also. Maybe the rest of the CSS too. Link to a sample page if you can, otherwise post it here.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 11:39 AM