css

How To Style Unordered Lists

in

Lists are a fantastic way to display related information and even display navigational elements.
However a standard list can look a little crappy if it isn't styled to fit in the rest of your website.

What Are CSS Resets And Why Should You Care?

What Is A CSS Reset?

A CSS reset is a bunch of CSS code that reset all (Or most) of the elements of the standard HTML tags to some predetermined value, generally 0.

What Are Divs And How Should You Use Them?

in

A div is like a box, in terms of appearance (if you just attach a border to it) and function.
You make a div and you put stuff in it, anything at all.

It allows you to separate content up into separate areas.

If there are several bits of content that you want to stand out from everything else around them, put them in a div. An example could be a quote from someone, the quote goes in the div, and you style the div however you feel appropriate so that the div stands out.

What's The Difference Between Ids and Classes?

in

ID and class selectors are both used to identify and select html objects, such as a div, an area of text, an image, a link etc, that you want to apply styles to.
They both function in a very similar way, so you'll be forgiven for wondering why it makes a difference which one you pick.
You should note that applying a Class or ID (With no predefined styles) to something, doesn't actually do anything by itself, if no styles are applied to the ID or Class then nothing will change and it will look exactly the same, as if you did nothing at all.

Syndicate content