Changes

Jump to navigation Jump to search
basic format
Line 1: Line 1:  
'''Cascading Style Sheets''' ('''CSS''') are used with [[HTML]] to give a web page designers centralized control over the appearance of each page.  
 
'''Cascading Style Sheets''' ('''CSS''') are used with [[HTML]] to give a web page designers centralized control over the appearance of each page.  
−
 
+
==Format==
−
==Example==
+
All definitions in CSS are written as <tt>selector { property: value; }</tt>. For example, in order to change the background to red, and the text color to maroon, you would type, <tt>body {background:red; color:maroon}</tt>. Body is the selector - meaning you want to edit a characteristic of the body in html, background and color are the properties - background refers to the background color and color refers to the text color, and then red and maroon are the given values for those properties.
−
 
  −
To change the size of all text in an HTML document to 18 points:
  −
 
  −
<nowiki><head></nowiki>
  −
:<nowiki><style type="text/css"></nowiki>
  −
 
  −
::body { font-size: 18pt; }
  −
 
  −
:<nowiki></style></nowiki>
  −
<nowiki></head></nowiki>
  −
 
  −
 
  −
 
  −
 
      
[[category:internet]]
 
[[category:internet]]
SkipCaptcha, nsSupply_SidersR, nsSupply_Siders_
8,436

edits

Navigation menu