December 22, 200718 yr Alright, Does anyone know why the following stylesheet isnt working propely? The <p> tags work fine as the CSS changes the text font but when I try and position the layer with class and id header it doesn't move. Tried changing the background colour as well which didnt work. Thanks.
December 22, 200718 yr addd a . before header and background so it would be .header {position:absolute; top:40px; width:980px; height:90px; background-color:#AEB5A8;} p {font-family:"Times New Roman", Times, serif; } .background {background-color:#7F8779} much like when you need a # for an id you need a . to say it is a class
December 22, 200718 yr Author addd a . before header and backgroundso it would be .header {position:absolute; top:40px; width:980px; height:90px; background-color:#AEB5A8;} p {font-family:"Times New Roman", Times, serif; } .background {background-color:#7F8779} much like when you need a # for an id you need a . to say it is a class Ah right, working now. Cheers.
December 29, 200718 yr On a related note, here's a good article which i found on css best-practices. Thought that everybody should follow it.
Create an account or sign in to comment