Category: CSS


22, February, 2010

Self Clearing Floats, Is It Really So Hard?

No matter how many times I say it and no matter how many times I show people, I still get this <div style="clear:both;">. This drives me nuts! If it is not an empty div with a style attribute then it is clearfix classes on the floated items and not on the parent as they should be.

Let me say it loud and let me say it clear empty divs are meaningless and clearfix classes go on the parent element! Okay rant over, now if you are not sure how to self clear floats then here are a few easy ways to do it.

Continue ReadingPosted by : Aaron Witherow, in CSS |

26, September, 2009

The Importance of Setting Font and Background Colours

I have been neglecting this blog and not posting as much as I should so I am going to do some small snippets of information on web design and development, when I feel the need!

As the title so rightly says, it is very important to set good font and background colours when building a website. I think this is something that is so often neglected, mostly I think because we use images and don’t think about what happens if those images do not load or a user has opted to not display or download the images. What happens when you have a dark image on a white background and to provide good contrast to the dark image you set the font colour to white? Well you end up with something great when images are turned on but when they are off you end up with white text on a white background. Not good to anyone!

This is something we need to remedy and here is how.

Continue ReadingPosted by : Aaron Witherow, in Accessibility |Posted by : Aaron Witherow, in CSS |Posted by : Aaron Witherow, in XHTML |

Page 1 of 1 pages