Choose fontsize:
Welcome, Guest. Please login or register.
Did you miss your activation email?

 

Pages: [1]   Go Down
  Print  
Author Topic: CSS - Sheet Insertion  (Read 4890 times)
0 Members and 1 Guest are viewing this topic.
Mongolian
Guest
« on: July 09, 2005, 07:30:33 PM »
[h1]CSS Sheet Insertion[/h1]
This tutorial is for CSS or Cascading Style Sheets.  Cascading style sheets can make things a lot easier and take a lot less time if you know what you're doing.  In each of these tutorials,1-2 topics will be discussed.

Let's get started.

1.   Inserting CSS into your HTML document

If you want to be lazy and make your CSS viewable to all, you can just put the CSS on the html page you're writing.

Here's how you do it:

First, in between the <head></head> tags, type the following in(or just copy and paste). 

Code:
<style type="text/css">

Then after you're done typing in your CSS, end with this tag:

Code:
</style>

Or if you want to save time from typing the same code in on each page, you can just make a whole seperate style sheet.

To create your own style sheet, just open up notepad, type it up, and save it as whatever you want it to be named.  Preferrably something short.  Just remember that the extensions needs to be ".css"  For example:  "site.css".

This is how you insert it in your HTML page:

In between the <head></head> tags, put the following:

Code:
<link rel="stylesheet" type="text/css" href="sheetname.css" />

If you put it into a folder other than your root folder (where your index page is located), then you do the following:

Code:
<link rel="stylesheet" type="text/css" href="foldername/sheetname.css" />

That's about all you need to know for sheet insertion.

Coming soon:  CSS Tutorial 2 -  Font Customization and Text Decoration
« Last Edit: February 10, 2006, 07:29:39 PM by SKETCHi » Logged
Tutorial Writer
*

Karma: 9
Gender: Male
Posts: 1,254


I'm mighty tighty whitey and I'm smugglin' plums.


View Profile WWW
« Reply #1 on: October 15, 2005, 05:11:48 PM »
interesting, LOL.
Logged
Newbie
*

Karma: 0
Posts: 26

Graphic Addicts Member


View Profile
« Reply #2 on: November 15, 2005, 04:16:00 PM »
Simple but well done. Maybe show how to make sheets too so it's more in that tutorial.
Logged
Administrator
*

Karma: 50
Gender: Male
Posts: 2,639



View Profile WWW
« Reply #3 on: November 15, 2005, 04:22:10 PM »
HIs other tutorials cover creating the style sheets.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:      

MickM [ In: 2454 // Out: 2365 ] Pixel-Designz [ In: 1274 // Out: 3206 ] BioRUST [ In: 3225 // Out: 2704 ] SMF Topsites [ In: 0 // Out: 2239 ] Graphic Addicts Topsites [ In: 2624 // Out: 3729 ] SaberFusion [ In: 567 // Out: 1856 ] Cosmo Designs [ In: 1163 // Out: 1847 ] Dr. Photoshop [ In: 1392 // Out: 1862 ]
Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Phobos design by Bloc | XHTML | CSS


Google visited last this page November 20, 2008, 12:15:11 PM