Welcome! Log In Create A New Profile

Advanced

CSS : Attribute selector

Posted by Joanna 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
CSS : Attribute selector
August 21, 2007 03:00PM
Am i being dof!?

I am working through CSS Lesson 2 and trying to apply the attribute selectors to the illuminati pages as specified in activity 2.5... it doesn't want to work sad smiley As far as I can see my code is right ... see bold section at bottom of css code...
<!--
h1, h2 {color : teal;
background-color : #99CCB3;
letter-spacing : 5px;
text-transform : capitalize;
font-size: 1.4em;
font-variant: small-caps;}
h1 {font-weight: 900;}
h2 {font-weight: 400;}
address {color : #FFF;
background-color : #699;
text-align : center;
word-spacing : 5px;
font-weight: 600;
font-style: normal;}
p {color : navy;
background-color : transparent;
text-align : justify;
text-indent : 15px;
line-height : 1.4;}
td {line-height :1.5;}
a {color : #006;
letter-spacing : 2px;
text-transform : lowercase;
text-decoration : none;}
body{font-family: Arial, Helvitica, san-serif;
font-size: .9em;}
div table {background-color : #99CCB3;}
p a {letter-spacing : normal;}
table[align] {font-family : Georgia, serif;}
td[height="25"] {background-color : #EEE;}
-->

but it wont pick up the style... if I don't use the attributes in the square brackets, but find another way to specify the spot I want the style used on, it works fine...

What am I doing wrong .... PLEASE HELP ME... eye popping smiley
TvD
Re: CSS : Attribute selector
August 22, 2007 07:54AM
ok I will look at it over the weekend but maybe try to cheat (i.e first check if their solution html works and if it does then compare what is different between yours and theirs) by doing what I suggested at the end of this thread:
http://osprey.unisa.ac.za/phorum/read.php?193,49729
TvD
Re: CSS : Attribute selector
August 22, 2007 08:28AM
ok I have just checked the solution file in here:
C:\CSS\The Cascade\solution files\Illuminati\info.html
and
C:\CSS\The Cascade\solution files\Illuminati\styles.css
this has:

table[align] { font-family: georgia, serif; }

td[height="25"] { background-color: #eee; }

which works in firefox but not in ie7 - so it seems as if internet explorer does not follow the css standards.
Re: CSS : Attribute selector
August 23, 2007 12:25PM
Thanks...thumbs up
Sorry, only registered users may post in this forum.

Click here to login