effpeetee
05-19-2007, 10:39 AM
Should this code which is now on the HTML page, really be there or on the communal style sheet?
I find one of the more difficult decisions, is where to put these instructions.
effpeetee
<style type="text/css">
p#pc {margin-top:20px;margin-left:15px;}
</style>
_Aerospace_Eng_
05-19-2007, 10:51 AM
Use an external stylesheet for all of your styles unless you plan on overriding some styles on certain pages.
effpeetee
05-19-2007, 11:00 AM
Use an external stylesheet for all of your styles unless you plan on overriding some styles on certain pages.
Thank you, I have taken your advice and have done so.
Which brings me to an associated question:-
Is there a protocol as to how order the various instructions on the style sheet.
effpeetee
_Aerospace_Eng_
05-19-2007, 11:05 AM
No not really unless you have something like
#greet {
color:red;
}
p {
color:blue;
}
#greet {
color:green;
}
The last #greet will override the first one.
effpeetee
05-19-2007, 12:06 PM
Thank you and noted.
effpeetee
www.exitfegs.co.uk