A plea to CSS experts

I’ve been having some fun today. Apart from not getting out of bed to earn my keep (aren’t laptops great) I’ve been playing with techniques from the book “CSS Mastery” by Budd, Moll and Collison. This playtime will form the Genesys Consulting website, which will go online when I’m done with it.

However, I’ve run into a big problem. The Fuzzy CSS Shadow technique in the book (also found on A List Apart) has the annoying problem that it floats the image to the left. This causes me whole swathes of problems because this image needs to be centered. I’ve uploaded a test version to my beta site (beta.steel-software.com) so you can have a look.

Genesys Consulting, with problems!

The following ideas do not work:

  • If I apply a <div align=”center”> to it, nothing happens
  • If i remove the float:lefts from the CSS, the shadows break
  • The page is liquid layout and having margin-left: 40% produces different results in FF compared to Opera/Safari
  • I would also want to be using different images for that section, loaded in from a db, not all of them will be the same width, so a margin-left: 300px won’t do either.

This is all explained in a plea I made on CodingForums.com. So, I’m now asking you lot, the people who read my blog (yes, all 2 of you). If you know what I can do to fix this problem, please leave the answer in a comment, send me an email (steve dot workman at gmail dot com) or write on my facebook wall.

Steve

Currently Listening to: Zero 7
Currently Watching: BBC2
Currently Reading: CSS help sites!
Currently Eating: Sunday roast, mmmmmmm

If you enjoyed this post, leaving a comment or subscribe to the RSS feed to have future articles delivered to your feed reader.

Steve Workman

Steve Workman is the Head of Web Engineering at Yell. He is also an organiser for London Web Standards is an occasional public speaker, talking about web performance and web standards

More Posts - Website - Twitter - Google Plus

Leave a response