Web Design Stuff
HTML Tutorials    CSS Tutorials    Web Hosting   Resources
Create a Web Page 101
Making Web Pages Intro What is a Web Page? Why Make a Web Page? The History of HTML Learn HTML or XHTML?
Basic HTML
Basic HTML Tutorials Basic HTML Necessities How to Make a Web Page How to Edit a Web Page The Basics of HTML Tags Basic HTML Page Structure HTML Attributes
HTML Font Codes
HTML Font Codes Intro HTML Font Color Codes HTML Font Size Codes HTML Font Style Codes HTML Bold/Italic Codes Combining Font Codes
Formatting Text
Formatting Text Intro Making Paragraphs Miscellaneous Formatting Headings & Subheadings Creating Hyperlinks
Using Graphics
Using Graphics on the Web Add Graphics to Your Pages Graphics and Accessibility How to Align Graphics Page Color & Background Graphics as Hyperlinks Horizontal Rules
Creating Tables
HTML Tables Tutorials HTML Table Fundamentals Background & Border Color Table Frames & Rules Table Width and Alignment Cells 1 -Space & Alignment Cells 2 -Row Column Span Cells 3 -Width & Height
Making Lists
HTML Lists Tutorials Bulleted Lists Numbered Lists Definition Lists
HTML Frames
HTML Frames Tutorials Using Frames for Layout Advanced Frame Layouts Putting Hyperlinks in Frames Frame Border Width Color, Margin and Control Problems with Frames SmartFrames: A Solution SSI: An Alternative to Frames
Web Page Forms
Making Feedback Forms A Simple Feedback Form Installing NMS FormMail Debugging Your Setup My Web Host is Out to Lunch User Input Components Text Fields Checkboxes & Radio Buttons Dropdown Menus Push Buttons Layout and Presentation
Basic CSS
Basic CSS Tutorials What is CSS? Why You Should Use CSS How to Use CSS Inline Styles Embedded Style Sheets External Style Sheets Class Selectors ID Selectors Combining Selectors
CSS Properties
CSS Properties Intro Font Styles Width, Height & Spacing Borders Backgrounds Position Float & Alignment Hyperlinks
All About Web Hosting
Hosting Your Own Website What is a Web Host? Your Website's Home Page Building a Website Offline About Free Web Hosting Best Free Web Hosting Commercial Web Hosting How to Get a Domain Name Ecommerce Web Hosting Web Hosting Terminology
Free Web Design Tools
Best Free Website Tools Best Free Text Editors Best Free Graphics Editors Free Website Analysis Tools
Setting Up HTML Kit
HTML Kit Introduction How to install HTML Kit Screenshot Breakdown Basic Configuration Overall Appearance Shortcuts and Startup Editing Window Customizing Toolbars Using the Favorites Tab Making a New Actions Bar Odds and Ends
Free Templates
Free Website Templates Two Column Fixed Width Three Column Liquid Layout Miscellaneous Templates Dynamic Menu Effects Two Column Experimental Terms of Use About These Templates
Website Templates Help
Getting Started Template Zip File Download How to Edit Your Template What to Edit in the HTML How to Add Your Logo Making a Website
Web Design Tips
Web Design Basics Tables vs. Tableless Using Tables for Layout Example Table Layouts World's Crappiest Web Page
Twitter Backgrounds
Twitter Backgrounds Intro Cool Twitter Backgrounds Cool Twitter Backgrounds 2 Plain Twitter Backgrounds Dark Twitter Backgrounds Best Twitter Backgrounds Cute Twitter Backgrounds Music Twitter Backgrounds Music Twitter Backgrounds 2 Twitter Backgrounds 101 TERMS OF USE
All About Web Browsers
What is a Web Browser? Mozilla Firefox Internet Explorer Opera How to Set Up Firefox Top 5 Firefox Extensions
 
Contact
Post Some Feedback Send Me An Email Iron Spider Blog About Iron Spider... Site Conventions
 
 
 

 

Basic CSS Tutorials

 

Yes that's right. You're not finished yet. Learning HTML may be enough to get your web page up and running but if you really want to get things happening and start producing web pages the professional way, you should definitely learn CSS. Yes, I know (*groan*)... More web coding to learn?? But trust me, friend, it will be well worth your while.

The series of tutorials in this section of Iron Spider will walk you through how to get up and running using CSS starting with exactly what it is, exactly why you should use it and the various ways you can implement it in your web pages. This ranges from inserting just a few lines of code in your existing .html files to writing up a full blown external style sheets (.css files) that can be reused to affect multiple web pages at once.

Below is a list of these CSS tutorials. Just click on the headings to be taken to be taken to the full tutorial...

 

What is CSS?


CSS stands for Cascading Style Sheets. It is a web language —like HTML— which you can use to style your web pages. You can think of CSS as the instructions that tell a web browser how to display your web page whereas HTML is intended to provide instructions on what to display on your web page.

It is not necessary to use CSS as you can style your web page using entirely HTML coding but it is immensely more convenient to use CSS. This is not to mention the fact that CSS can do a lot more with regards to what kinds of bells and whistles you can add to dress up your pages.

Here's an example:

THIS IS CSS... THIS IS CSS... THIS IS CSS... THIS IS CSS...

The above words "THIS IS CSS..." with the 3D shadow and light effects is not an image. That's right. It is plain text styled using CSS. You can verify this by clicking and dragging your mouse over the words. As you can see, the cursor turns to a plain text cursor and the words are selectable. If those words were an image, you would not be able to do that.

This is the power of CSS...

MORE...

 

Why You Should Use CSS


Back in early days of the world wide web, it was enough to construct a web page using only HTML coding. But today with influx of all new kinds of devices surfing the net, it has become increasingly important to have web page coding separated into two distinct components: content and styles. In this manner, you can take the same basic content and style it according to the device that is accessing the web page. For example, making a web page printer-friendly can be easily accomplished using CSS. The same goes for mobile devices.

So that's what's in it for your viewers.

And what's in it for you as a webmaster?

Lots.

Using CSS will greatly reduce your workload by allowing you to apply styles to multiple pages on your website all at once...

MORE...

 

How to Use CSS - An Overview


Alright so you're convinced enough to dive into this CSS thing. How exactly do I do it, you may ask? Where do I start?

This page will walk you through the various methods of using CSS including:

  • Inline styles (short lines of CSS inserted into your HTML tags using the style attribute)
  • Embedded style sheets (blocks of CSS code you insert into the <head> tags of your web page)

    and...
     
  • External style sheets (separate web files with the .css extension which can be imported in multiple pages)...

MORE...

 

Inline Styles


Here we get into detail about the easiest form of CSS coding, inline styles. This is the quick and dirty method of implementing CSS on your web pages and is often used by professional web designers to test and tweak a style to get it to display as intended before committing it to an embedded or external style sheet.

Inline styles are also used for instances where the style is not likely to be repeated and hence it is not worth placing it in the page header or in a separate .css file...

MORE...

 

Embedded Style Sheets


Embedded style sheets are blocks of CSS code that you place in the <head> tags of your web page. This CSS code affects that page only and is convenient for styles that are repeated frequently on a single web page but not on others...

MORE...

 

External Style Sheets


This is the most powerful form of CSS. External style sheets allow you to insert a simple line of HTML code in the head section of multiple web pages.

This code, which looks something like this:

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

...allows you to 'import' your web page styles from a separate .css file. (For example, in the above code, the separate .css file is called styles.css.)

This .css file can then be used to style all the pages on your website if you so desire. All the paragraph styling, all the link color styling, all the whatever for your entire web site can be controlled from a single .css file...

MORE...

 

Class Selectors


This page will introduce you to the ability to apply styles to specific HTML elements. Typically you would use the P selector in an embedded or external style sheet to apply styles to all paragraphs on your web page.

For example:

P {font-size: 12px;}

But what if you didn't want to do that? What if instead you only wanted to style some paragraphs, some links, some whatever, while leaving other page elements alone? Well you can do this by using the class attribute in select HTML tags. You then target that class using a class selector in your CSS coding. This page will show you how to do that...

MORE...

 

ID Selectors


More specific than a class selector is an id selector. Each ID selector you implement can only be used once on each web page. Why would you want to do this? This page explains...

MORE...

 

Combining Selectors


Here's where we'll get a little more advanced and learn how to combine certain CSS selectors to simplify your CSS coding. For example, if you wanted to apply the same style to all P, DIV and BLOCKQUOTE tags in your HTML coding, you can do so grouping those selectors together and then just writing the styles you wish to apply once...

MORE...

 
External resources:
  • Official CSS 2.1 Specification
  • Cascading Style Sheets - Wikipedia





Best Free Stuff
for webmasters

Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates

See also:

Best Free Web Hosting
How to Make a Web Page

 

If you need a .COM web address, you can get one quick and easy at...

www.GoDaddy.com
CSS HOME TOP NEXT ~>
 
HTML Tutorials |  CSS Tutorials |  Web Hosting |  Domain Names |  Web Design Resources
Iron Spider © Copyright 2004-2011 Robert Darrell