You are here: CSS - A color within H2 « HTML « IT news, forums, messages
CSS - A color within H2

Posted by Simon Harris on 04/07/07 08:10

Hi All,

I have my A tags (links) set to green when they are on the body or table
cells. This works Ok.

I have a background color of orange on my H2 tags, I want to use black for A
tags in this case.

I have tried the following, which doesnt work (Links remain green).

h2 a {
color: #000000;
}

Any idea where I have gone wrong? Have copied my entire CSS for reference,
below.

Many Thanks,

Simon.

PS: Could not find a CSS specific group - Hope this is not OT!

body {
background-color : #FFFFCC;
font: 8pt/10pt verdana;
margin: 0px;
text-align:center;
}

a {
font: 8pt/10pt verdana;
color : #009900;
}

a:hover {
font: 8pt/10pt verdana;
color : 000000;
}

a:visited {
font: 8pt/10pt verdana;
color : #005100;
}

h1 {
font: 18pt/20pt impact;
font-weight: bold;
color: #FF9900;
}

h2 {
font: 8pt/10pt verdana;
font-weight:bold;
background-color: #FF9900;
margin:0px 0px 0px 5px;
width:70%;
padding: 2px 10px 2px 6px;
}

h2 a {
color : #000000;
}

h3 {
font: 8pt/10pt verdana;
font-weight:bold;
padding: 0px 0px 0px 0px;
margin:0px 0px 0px 0px;
}

td {
font: 8pt/10pt verdana;
color :#000000;
}

..navdv {
width: 100%;
}

..tableinner {
background-color : #FFFFEA;
padding: 5px;
border: 1px solid #9A9A9A;
width: 730px;
margin:0px;
align:center;
}

..tableouter {
background-color : #FFFFFF;
border-right: 1px solid #000000;
border-left: 1px solid #000000;
width: 750px;
height: 100%;
margin:0px;
margin-left:auto;
margin-right:auto;
}

..tableinner td a {
font: 8pt/10pt verdana;
font-weight: bold;
color : #009900;
}

..tableinner td a:visited {
font: 8pt/10pt verdana;
font-weight: bold;
color : #005100;
}

..tableinner a:hover {
font: 8pt/10pt verdana;
font-weight: bold;
color :#000000;
}

..countynav {
font-weight : bold;
}

..navtable {
width: 750px;
border-right: 1px solid #000000;
border-left: 1px solid #000000;
}

..header {
background-color:#66FF66;
background-image:url('/assets/images/header_bg.gif');
}

..GreenBorderDiv {
display:block;
float:right;
border: 1px solid #00DD00;
padding: 5px;
}

..faded {
colour: #666666;
font-size: 8.5px;
}

..attPhoto {
border: 1px solid #000000;
}

..navButCell {
background: url('/assets/images/nav/nav_bg.gif');
}

..attDiv {
border:1px solid #FF9933;
padding: 5px 5px 20px 5px;
}

..section {
padding: 5px 5px 20px 5px;
border: 1px solid #FF9900;
margin-bottom: 15px;
margin-right: 5px;
margin-left: 5px;
}

..sectionNoBorder {
padding: 5px 5px 20px 5px;
margin-bottom: 15px;
margin-right: 5px;
margin-left: 5px;
}

..breadcrumbtrail {
font: 8pt/10pt verdana;
text-align:left;
font-weight: bold;
margin-left: 10px;
padding: 0px 0px 5px 0px;
}



--
--
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация