AK Productions Studios  
Home Forum Downloads Submit
Tutorials
Welcome Guest!
CSS is useful for a whole range of things which we'll be covering only a few in this tutorial.
Author: Cana-Balistic
Difficulty: 2/10
 
A Beginners Guide to CSS
   

1. Make a new text file named "main.css" (make sure you can see file types).

2. Insert the following code between the <head> tags of your html code:



Note: if your going to be using more then one CSS file on your site it is wise to put them into a sub directory.

3. Open 'main.css' in notepad and input the following piece of code:



What does this do?

Body denotes the body tag
Color: is the text color
Margin: is the page margin top & left
Background: is the background color (images are also acceptable)
BGProperites: set of properties for a background image (fixed simply means the image will stay static and will not move when you scroll down the page which can be useful for iFrames!

4. Input this code for link values:



Pretty much self explanatory.

5. The following is for id tags ie, <font id="header" color="#ffffff">



The above CSS code is for font embedding which will be covered in another tutorial but you may also set font size's and a few other things (color must be set in the font tag itself)

Comment
Tell A Friend
 
       
       
Home | Tutorials | Forum | Submit | Articles | Downloads | Affiliates | Topsites | Contact | Site Map
Copyright © 2004 - 2006 AK Productions Studios. All Rights Reserved. hit tracker