Changes

Jump to: navigation, search

Understanding Cascading Style Sheets (CSS)

331 bytes removed, 17:40, 17 May 2007
no edit summary
Now the tag that has the matching id will inherit the style for that id.
 
<h1 id="mainHeading">This is the main heading</h1>
</pre>
 
having defined the ''id'' we can now create a CSS rule specifically for this element ''id'' by prefixing the id with a ''#'' character:
 
<pre>
#mainHeading {color: blue; font-style: normal}
</pre>
 
Now any tag that has the matching id will inherit the style for that id.

Navigation menu