Entries filed under 'Css'

@import considered harmful

Filed under CSS on 18.04.08

Jeremy Keith reports from FOWD that, during his presentation on From Design To Deployment, Jon Hicks recommended using @import to load separate stylesheets:

Read the full entry... | Comment [3]

Web Standards: Semantic or Pragmatic?

Filed under XHTML, CSS on 10.04.08

For anyone involved in front-end web development, it’s a scenario that crops up several times a day. The designer has delivered an attractive layout for a section of the page for you to markup and style. Semantically, you know there is a ‘correct’ way to markup the code—but you also know that once the content gets in there, things can start to go wrong.

Read the full entry... | Comment [11]

Transcending CSS

Filed under CSS on 22.11.06

Transcending CSS

Andy Clarke’s first book looks to be a great addition to the roster of recent CSS publications – mine’s on order already!

Read the full entry... | Comment [1]

IE flickering background image bug fix

Filed under CSS on 27.09.06

Awesome (although I can’t help thinking I shouldn’t get so excited about something like this)...

Read the full entry... | Comment

Percentage widths and IE5

Filed under CSS on 12.09.06

I came across an annoying bug in Internet Explorer version 5.x today to do with the way it calculates percentage width of child blocks – and as I can’t find it documented clearly anywhere, here’s a brief write-up.

The problem

If you have a floated element A nested inside another block-level element B whose width is not explicitly set, and you set the width of block B in percent, IE5.5 and below will incorrectly calculate the width of B in relation to the window, and not with respect to its containing block A.

Read the full entry... | Comment [1]

@media four columns with equally aligned links - solved!

Filed under media, CSS on 18.06.06

If you were in Dan Cederholm’s Bulletproof Web Design presentation at @media, you might remember a German guy at the back of the room asking Dan how he might approach a design that required four equal-height columns containing variable content, but with consistently aligned links at the bottom of each column.

Read the full entry... | Comment [5]

Book pimp

Filed under CSS on 13.05.06

Ian Lloyd’s new book Build Your Own Website The Right Way Using HTML & CSS (mmm, catchy!) is out now and available from Sitepoint.

I haven’t read it, but I’m sure it would be a great beginner’s guide to web standards – buy it for the absolute beginner in your life.

Read the full entry... | Comment

Celebrating CSS Naked Day!

Filed under CSS, Internet on 5.04.06

CSS Naked Day

CSS Naked Day is the brainchild of Dustin Diaz, when for one day participants cast aside the shackles of their stylesheets and proudly display their semantic XHTML in all its default glory.

Read the full entry... | Comment

Stripe your tables the OO way

Filed under DOM, CSS on 2.04.06

Update 16/05: After several requests, I have updated this script to use a more reliable method of swapping the class names in and out. The new addClassName and removeClassName functions can be found on the demo page (or in the original Particletree article I swiped them from).

Read the full entry... | Comment [38]

Quick CSS tip: Declare your body background!

Filed under CSS on 23.11.05

I keep seeing this on sites that I visit, and this evening the latest culprit (Shopify, via Particletree) has prompted me to write about it.

ATTENTION, CSS DEVELOPERS! ALWAYS DECLARE A COLOUR FOR YOUR DOCUMENT’S BACKGROUND!!

Read the full entry... | Comment [7]

Older entries |