Archive for the ‘CSS’ Category

Styling Different Links Differently with HTML and CSS

Tuesday, March 22nd, 2011

On a website, you often have different groups of links that may not all supposed to be looking the same. Usually, you’ll have navigation links and possibly some links within your content at a minimum.

read more

Creating a Horizontal Navigation Menu with HTML and CSS

Tuesday, March 22nd, 2011

It’s true: Your navigation items are really a LIST. Bread, Milk, Sugar, Coffee, Home, Contact Us, About, Cheese, Tomatoes, Sitemap. See, it’s a LIST!! And it should be coded and styled like a list. It’s easy.

read more

Styling Lists with CSS

Tuesday, March 22nd, 2011

We’ve already discussed navigation lists and list bullet images, but sometimes, a list is just a list. There are two types – the ordered list and the unordered list. The ordered list counts the items; the unordered list marks the individual items with bullets or other markers. The HTML is simple.

read more

How NOT to Use the
Tag to Center Text

Tuesday, March 22nd, 2011

Centering text and other elements can easily be done with the CSS text-align property. It can be applied to a division, the p tag – pretty much any block-level element.

read more

Adding Multiple Background Images

Tuesday, March 22nd, 2011

At times, it makes more sense to use background images than to insert them directly into the page. And while each element – like your body tag – can hold only one background image, they can be applied to several elements.

read more

Adding Background Images

Tuesday, March 22nd, 2011

Background images, just as the name implies, are part of the BACKGROUND of a website, not part of the actual content. The most common place to add a background image to, is the entire canvas – aka the body tag.

read more

Creating a Basic, 3-column, Center-aligned Fixed Width Layout with HTML and CSS

Friday, March 18th, 2011

The three-column layout is probably the second most common layout used for websites. There’s usually a header and a footer – and then some content, maybe a sidebar for navigation, a column in the middle with some content info, and another column with some additional stuff, whatever that may be. What you put inside your columns doesn’t matter – the way to achieve the 3-column layout stays the same.

read more

Creating a basic, 2-column, center-aligned fixed width layout with CSS

Friday, March 18th, 2011

This type of layout is used a lot, and for good reason. It works.

So let’s start off by looking at the HTML:

read more

Center-aligned Webpages with HTML and CSS

Friday, March 18th, 2011

A website tends to look more balanced when it’s centered on the monitor, instead of clinging to the left side with lots of white space on the right. This looks even worse with increased resolution. And it’s not that folks will use that white space to make notes…..
So to center your page, wrap your content into a container – a ‘wrapper’ of sorts.

read more

Styling Fonts with CSS

Saturday, March 12th, 2011

The FONT tag is dead. Long live CSS! Please help spread the word, too many people STILL have not gotten that memo and merrily use their deprecated font tags (along with the table-based layouts and improper doctypes). But now we all know – no more excuses.

read more