minitutorials main logo the place to learn online

Sponsor This Site!
Sponsorship Details - miniTutorials is taking enquiries into various Sponsorship opportunities. Available NOW! Read More on our Sponsorship page.
Discussion Forums
visit the mini tutorial forums
For expert help and advice on any of our Tutorials or anything else .... visit the forums and ask away!!

Last Five Posts :-

Click on a Topic Title
Google Ads

Cascading Style Sheets

Part Two - Putting it back together again.

Creating the .CSS file.

In this example you can create the 'yourownstyle.css' using NotePad or whatever your favourite text editor is. There are dedicated CSS style programs out there, TopStyle Pro is the one I am using at the moment but there are others. Get the basics right, then look out for these programs, mine came free on a PC Mag cover disk.

Copy and paste this code into a blank document and save as 'yourownstyle.css'

body{ font-family: Georgia, Times New Roman, Times, serif; font-size: medium; text-align:left; text-decoration:none; color: cc33cc; font-style: italic; background-color: ffffcc; } h1{ font-family:verdana, arial, helvetica, sans-serif; font-size: large; font-weight: bold; font-style: normal; background-color:transparent; color: ff0000; text-align:center; } h2{ font-family: verdana, arial, helvetica, sans-serif; background-color:transparent; font-style: normal; font-size: small; color:#333333; } h3{ font-family: Times New Roman, Times, serif; font-size: medium; font-style: italic; text-align: left; background-color:transparent; color:#333366; } h4{ font-family: verdana, arial, helvetica, sans-serif; font-weight: bold; font-style:normal; background-color:transparent; color: 0000ff; }

Where you save it is not important, as long as the pages requiring the CSS style link to it correctly, my styles are saved in a folder called 'styles' which is located at the sites root.
Once saved, close the newly created CSS file and re-open the file you saved earlier 'step2.html'. If you remember this is the bare-bones page with all the tags stripped of their attributes.

left arrow depicting to go backBack to CSS Part One Page Three | Forward to CSS Part Two Page Two right arrow depicting to go forward


About Us | Site Map | Privacy Policy | Accessibility |Contact Us | ©2003 - 2007 miniTutorials.com