Warning: session_start() [function.session-start]: open(/var/lib/php5/sess_911bd1d35531274e13cbea93709eae7b, O_RDWR) failed: Permission denied (13) in /home/andrew/public_html/webspot.co.uk/includes/header.inc.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/andrew/public_html/webspot.co.uk/includes/header.inc.php:2) in /home/andrew/public_html/webspot.co.uk/includes/header.inc.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/andrew/public_html/webspot.co.uk/includes/header.inc.php:2) in /home/andrew/public_html/webspot.co.uk/includes/header.inc.php on line 3
Webspot.co.uk --
 
 
 
 
Warning: This site is now very very old! Please remember this when looking at everything on the site! I stopped working on this site long ago! I've decided to leave everything up just in case someone out there finds the content interesting.
 
 

Beginners CSS

Page 1: Introduction

Send to Friend
Written By: Andrew
CSS... The language of web page styling. Want a webpage to look a particular way? Well, CSS can do pretty much anything. Borders. Backgrounds. Hover Buttons. You name it and CSS can do it (most of the time!). CSS stands for Cascading Style Sheets and can be used in any HTML page you want. The advantages of CSS coding are:

* Easier to change a site style - This is because when you want to change a part of a website you only need to change it in the style file
* Smaller files - The client can load your website quicker because there is less code needed to write
* Good Control - You are able to control the style of your webpages easier as the code is simpler to understand

Prerequisites


Before starting learning CSS you should be fairly confident with HTML. You can learn learn CSS as a beginner, but this particular tutorial is written for people that are already used to HTML quite well. If you don't know if you are experienced enough to follow this tutorial, then you might as well follow along and see how you go.

What's all this about cascading then?


If you import one style that tells the web browser that the h1 tag is going to have a red background, the h1 tags will have a red background. But then, after you say that h1 is going to have a red background, you say that h1 is going to have a blue background. This will cause the h1 tags to have a blue background. This is because the last style element cascaded into the old one and the web browser now listens to the blue one.
Got it? Good.

 

Warning: Unknown: open(/var/lib/php5/sess_911bd1d35531274e13cbea93709eae7b, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (0;0022;/var/lib/php5) in Unknown on line 0