Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
css1 [2009-09-03 10:11]
Joakim Forsgren
css1 [2009-09-03 10:11]
Joakim Forsgren
Line 2: Line 2:
 När en webläsare läser in en CSS så kommer den att formatera dokumentet efter CSS:n. När en webläsare läser in en CSS så kommer den att formatera dokumentet efter CSS:n.
  
-Det finns tre sätt att lägga in CSS\\+Det finns tre sätt att lägga in en CSS\\
 Extern - External Style Sheet\\ Extern - External Style Sheet\\
 Intern - Internal Style Sheet\\ Intern - Internal Style Sheet\\
Line 85: Line 85:
 font-size:20pt  font-size:20pt 
  
-The color is inherited from the external style sheet and the text-alignment and the font-size is replaced by the internal style sheet.+The color is inherited from the external style sheet and the text-alignment and the font-size is replaced by  
 +the internal style sheet.
  
  
Line 97: Line 98:
   - Inline style (inside an HTML element)    - Inline style (inside an HTML element) 
 So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style defined inside the <head> tag, or in an external style sheet, or in a browser (a default value). So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style defined inside the <head> tag, or in an external style sheet, or in a browser (a default value).
- 
-