CSS MADE EASY Web Design for Beginners

ComboInk Free Shipping for Order over $50

Introduction To CSS
Lesson 1

CSS intro
You're about to get a crash course in CSS by learning how to do a mouseover like this:

move mouse pointer over link

Cool don't you think? That's a mouseover, but you already know that, and now you're going to know how to make one, so hang on to your hat because here we go.

Making A CSS File
First thing on the agenda is to make a CSS file, oh relax it's going to be easy. Open up Notepad (Simple Text for Macs) and save the blank file by choosing Save As, give your file a name, any name you like, for example mypage and add the .css extension to it like so:

mypage.css

You've just made what's called an "external style sheet", aka CSS file. Save the file in the same folder you keep your webpages. Now open up a web page and put the following code between the opening and closing head tags:

<link rel="stylesheet" href="mypage.css" type="text/css">

That bit of code is telling the browser to display things on the web page according to what's in the css file. Every web page that has this code will be affected by the CSS. Replace "mypage.css" with the name of the CSS file you made.

You're all set to write your first piece of CSS code. Let's get started


© 2011 CSS Made Easy