• Home
  • Site Map
Subscribe: Posts | Comments | E-mail
  • CSSTUTStart from the ground up.
  • Random ArticlesArticles Un-Related to the Lesson.
  • ResourcesGuides, tools, freebies, etc.
  • SnippetsSmall CSS Snippets

CSSTUT.com

Posted on September 27, 2008 - by Spencer

Ordered & Unordered Lists

CSSTUT
Ordered & Unordered Lists

Lists are amazing. They are possibly the best way to make menus, list links, and anything else. They are semantic, have little markup, and are relatively cross-browser friendly.

Basics

ol stands for ordered list. This will show a number before each list item. ul stands for unordered list. This will be a normal list, with a bullet in front of it. An li is used on both ordered, and unordered lists. li stands for “list item.”

<ol>
	<li>List Item 1</li>
	<li>List Item 2</li>
	<li>List Item 3</li>
</ol>

Continue Reading »

Ad
Posted on September 23, 2008 - by Spencer

IE Double Margin

Snippets

In case you were unaware, IE6 applies what is known as the double margin bug to anything floated in the same direction as the margin. For example:


.left-col {
	margin:0 0 0 10px; padding:0;
	width:auto; height:auto;
	float:left;
}

Almost all other browsers wouldn’t have a problem with this. However, for some unknown reason, IE6 likes to double the left margin. So in essence, this is margin:0 0 0 20px; for IE6.

Continue Reading »

Posted on September 23, 2008 - by Spencer

Pixel to Em Calculator

Resources
Pixel to Em Calculator

Recently I have been using EMs for a variety of reasons. I won’t go into detail, but they rock. :P I still don’t know the common ones by heart, so I often use Calculator. It’s quite helpful. :)

Posted on September 23, 2008 - by Spencer

No More Dotted Borders

Snippets

Do those borders around pressed links just annoy you? Let’s remove them.


a {
	outline:0;
}

Be careful using this. It is nice to remove a few outlines, but the outlines are an important part of keyboard navigation (allows the user to see what current link is selected.)

Clearfix
by Spencer on September 22, 2008
Centering a DIV
by Spencer on September 22, 2008
Random Articles
Why I Don’t Use a reset.css

Why I Don’t Use a reset.css

The idea of a reset.css is to set all of CSS attributes to their default value. This will remove all borders, margins, padding, backgrounds, etc… leaving nothing to the decision of the browser… which could be good or bad.
(more…)

Random Articles

Using Multiple Classes

For the first concept of the site, I would like to share a coding technique that I personally use on almost all of the things I code. I’ve read around, and I have begun to realize that this is quite a controversial topic; and I can see why.
(more…)

View The Archives
  • Ad Ad Ad Ad
  • Lessons

    1. CSSTUT - An Introduction
    2. Syntax & Shorthand
    3. Commenting
    4. Typography
    5. Ordered & Unordered Lists
  • Recent Comments

    • Roxann Boyle on CSSTUT - An Introduction
    • Damon Peters on Why I Don’t Use a reset.css
    • Domingo Melton on Typography
    • Mark Watrous on Commenting
    • Perseus on Typography
  • Tag Cloud

    • advanced article basic bug center classes clearfix comment commenting concept css double margin em ems html IE intermediate introduction links list outline pixels reset resource shorthand snippet syntax typography units usage
© 2008 CSSTUT.com - All Rights Reserved
The Papercut theme by WooThemes - Premium Wordpress Themes