4 replies [Last post]
Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 13 hours 22 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5125
Points: 2722

Hey Tyssen do you use image

Hey Tyssen do you use image replacement in many of your projects.
I never really got into it.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Yeah I have quite a bit in

Yeah I have quite a bit in the past. These days I quite often just use an image in the HTML with appropriate alt attribute instead; depends on whether I'm using sprites or not, cos while you can use sprites with foreground images too, it looks crap if styles are turned off.

Having said that, with support for @font-face and CSS3 increasing, I can see my need for it dropping off as time goes on.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 18 weeks 5 days ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2636
Points: 1554

I use #8 from this

Stomme poes
Stomme poes's picture
Offline
Elder
Netherlands
Last seen: 2 years 51 weeks ago
Netherlands
Timezone: GMT+2
Joined: 2008-02-04
Posts: 1854
Points: 378

Phark

While ugly and mother-in-law-large, I can't consider markup with nothing inside it non-semantic. If it has content, sure. But "<span></span>" has zero meaning, and no semantics whatsoever either way. While I don't like catering too much to IE users, I don't want to give them mystery-meat-menus like Phark does.

Having the spans in from the beginning allows you to later use some script to remove them all from your HTML when you've decided IE7 usage is below your threshhold.

Even though using regex to parse HTML brings Zalgo or whatever, here it's pretty simple because there's no content in the spans.

I'm no expert, but I fake one on teh Internets