1 reply [Last post]
jeemer
Offline
newbie
Last seen: 14 years 25 weeks ago
Joined: 2006-10-10
Posts: 1
Points: 0

ive been learning a fair bit more about css, downloaded a few ebooks and have been making my way through them, i just had a couple of questions, things that i've seen mentioned but not really clarified;

Why would you use float for layouts as opposed to absolute positioning? I understand that the clear value has something to do with this, but I've not really gotten my head around it.

What is the point in the trick where you use a background image to replace text? As mentioned here;

http://www.stopdesign.com/articles/replace_text/

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 14 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

This might answer your first

This might answer your first question:

http://www.tyssendesign.com.au/articles/css/absolute-positioning-pitfalls/

For the 2nd, that's quite an old article and you may be better looking at some more recent image replacement techniques:

http://www.mezzoblue.com/tests/revised-image-replacement/

But basically, using these, the text that appears in the image is still in the HTML on the page which means search engines and assistive technologies (screen readers) can still read it.

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