Dave Woods - Freelance Web Design Warwickshire

Category Archives: CSS

CSS3 Selectors

Whilst we’re still some way off being able to adopt CSS3 fully within web design. It’s certainly worth being aware of it’s capabilities and it would be great to start using it for those browsers that support it whilst ensuring that pages degrade gracefully for those that don’t.

If enough sites started to use the technology then surely the browser manufacturers would have to step up their attempts to support it with or without the W3C specification completed.

Obviously this could throw in complications with different browsers having different understandings of how to support CSS3 but for these CSS3 selectors at least, it seems as though all modern browsers support them. Continue reading

Reset CSS

Please note: There is an update to this article available here: CSS Reset

In recent years I’ve always used the global reset method in order to reset padding and margin’s throughout an HTML document.

I’ve always known that this has some issues with it when dealing with forms and am starting to come round to Eric Meyer’s way of using a baseline css file in order to reset the specific elements that you want to set as apposed to just assuming that all should be zero. Continue reading

2 Column Fixed CSS Layout

Here’s the 2 Column Fixed CSS layout that will be covered in the tutorial below.

There’s still a lot of people in the web design world that are still using tables for layout. Quite often this is due to lack of education or the fact that the person creating a web page has learnt how to use tables and is therefore reluctant to drop their inline styles and table layouts for CSS.

I came into the industry when table layouts were rife and there was no other way of creating graphical layouts without the use of tables so when CSS was finally supported by the leading browsers and we could finally forget about Netscape 4.2, it was difficult to change my way of thinking.

However, to create web pages that are standards compliant, cross browser compatible and accessible you’ll need to start using HTML and CSS correctly. Within this post, I’ll be guiding you through a basic CSS layout which you can then adapt to your requirements. Continue reading

Over Complicating HTML

Semantic markup is the way forward and has been for some time. Using CSS to style semantic markup separates the presentational code from the content making things simpler for the designer whilst also making the site much more accessible, and search engine friendly.

However, even people that embrace this method come unstuck when deciding which tag or array of tags to use for certain scenarios whilst the easiest and correct solution doesn’t always stand out. Continue reading

Quick tip: Reset Padding and Margin

Each browser has it’s own default rules and when it comes to padding and margin’s it can cause havoc when creating the CSS for a website.

However, there is a simpler solution than trying to change the code for each indivdual element that’s causing problems.

Using the following code at the start of a CSS document will set all padding and margin’s to zero and give you a consistent starting point.


* {
padding: 0;
margin: 0;
}

Debugging HTML and CSS

HTML and CSS is an art. Give the same design to different developers and the code they deliver will never be identical. This can cause a number of problems when developing a website and ultimately in tracking down problems. This article has been created, not to solve all HTML and CSS issues but to ultimately help designers and developers to track down those annoying little layout problems and to at least demonstrate how to isolate issues with their code. Continue reading

Quick tip: CSS link ordering

From time to time I’ll come across a little tip or something useful that web designers should know or have easy reference to. When I’ve come across these bits of information in the past, I’ve usually added them to my browser bookmarks only to find that they become lost in a sea of favourites.However, so that these bits of information don’t get lost, I’m going to add them to my blog so that they’re much easier to reference. Continue reading