Rounded corners and dropshadows

One of the things I love about CSS is its focus on style. In using CSS, I find that I’m more inclined to think about the look of my website and make efforts to spruce things up a bit.

A while back I wanted to round off the corners of a page element. I search for the best cross-browser method of creating rounded corners, but it was quite imposing. I eventually ditched the idea. I also looked into creating a drop-shadow effect for another such element. CSS borders wouldn’t do the trick and image transparency was still a mystery to me...

Read in full

Class names with numbers

When working with CSS and HTML a developer has to develop a good system for assigning class names and ids. That system usually involves descriptive words, but every now and then a number is thrown into the mix.

Recently, a few HTML elements I was working with ended up with class names that began with numbers – something like class="1of5". My CSS styles weren’t getting applied to these elements, so I figured there was a problem with numbers. Rather than go through and rename them all, I decided to do some investigating and find out what was going on...

Read in full

Styling the proper HTML form

The plain HTML form just doesn’t look good on its own. To help them out, some people resort to using tables for layout, or other creative techniques. These can be a headache to create, but they get the job done in the end.

I try and keep my code simple and free of unnecessary tags and have developed what I believe is the proper HTML form (the only non-form-specific tags I can’t seem to get rid of are <div> tags)...

Read in full