html - how to tag multiple elements? -


here's somethign i'm trying do.

i have site "a" tags have blue link style. have header link in want remove default blue link , make orange color. here's how looks right now:

<h1 class="site-name">        <a href="/" title="home" class="active">mysite.com</a> </h1> 

so want write css make "mysite.com" have orange color , not have default blue link familar with. don't want change "a" style because don't want every single link have this, one.

i managed style part of way there doing,

h1.site-name {         font-size:36px;          text-decoration:none;          color:#ff5312;      } 

however, see in css updated using firebug, didn't change link color. tried

h1.site-name.a 

but didn't work. have reach "a" tag here, tag make way want?

thanks insights.

replace h1.site-name.a

h1.site-name 

you dont need put . here.because not class tag.

 h1.site-name a{              font-size:36px;      text-decoration:none;      color:red;  } 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -