|
DSGN53871
WEB DESIGN 1
Cascading Stylesheets When creating a stylesheet, xHTML elements are build using the selected tag i.e. td, p, b, etc. You can create custom classes, which can be used within tags. Class names are preceded by a period (.) An ID can be created, which acts as a stylesheet within a stylesheet. The ID attribute is used for a uniquely defined style within a stylesheet. An ID name is preceded by a hash mark (#) #title {property 1: value 1; property 2: value 2} Class and ID work the same way, but it is a means of differentiating similar uses.
<style>
td, b {font-family: sansserif; font-size: 13px; color: black;}
.s {font-size: 11px;}
.ss {font-size: 9px;}
.h {font-size: 16px; color: white}
.r {font-size: 11px; color: cc0000}
#title {{font-size: 21px;}
</style>
<< Back Interactive Multimedia ~ School of Applied Engineering and Computing Sciences ~ Sheridan |