Help with html and css |
Help with html and css |
d9esco |
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; } |
Darin McGrew |
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.
|
pandy |
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.
|
Lo-Fi Version | Time is now: 24th April 2024 - 11:39 AM |