| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
berserker than thou
Join Date: Sep 2005
Location: Bristol
Posts: 450
|
rip my code apart
Hi all, I'm really trying to improve my front end coding practices. If anyone's got time could you take a look at this test page: A website and let me know any XHTML or CSS you think might be incorrect or wrongly implemented or just could be coded better. Cheers guys. |
|
|
|
|
|
#4 (permalink) |
|
berserker than thou
Join Date: Sep 2005
Location: Bristol
Posts: 450
|
Thanks guys. I'll take out the br tag and put in some padding instead. Hmm, I see what you mean about the images as text. What would you do if the client has asked for a specific, non-web friendly typeface though? Would you advise them against it or do some sort of image replacement (of which I have no experience, I've only heard other people say it)? |
|
|
|
#5 (permalink) | |
|
Senior Member
Join Date: Feb 2008
Posts: 438
|
Quote:
Remember that search engines and validators can't recognise a heading. All they know to look for is keywords, tags and so on. So your graphic headings might well be the headings for your human viewers, but you can duplicate them elsewhere with tags and so on for your non-human ones. |
|
|
|
|
#6 (permalink) |
|
Sir digby chicken caesar
Join Date: Sep 2004
Posts: 4,051
|
You could use sIFR on your H tags like everyone else. Or basic css image replacement. Set the background for the text being replaced to the image, give the container a width and height, set your overflow to hidden, offset the text by -9999px - job done. unconsolidated isoparms
|
|
|
|
#8 (permalink) | |
|
berserker than thou
Join Date: Sep 2005
Location: Bristol
Posts: 450
|
Quote:
Thanks Dusteh. I'll look into this. |
|
|
|
|
#9 (permalink) | |
|
i'm done, son
Join Date: Jan 2005
Posts: 12,262
|
Quote:
Anyway, there are lots of image replacement methods. The one I generally use requires extra markup, but there are other methods - I'm just a creature of habit. HTML Code:
Code:
HTML Code:
Code:
|
|
|
|
|
#14 (permalink) |
|
i'm done, son
Join Date: Jan 2005
Posts: 12,262
|
No, it just pushes it off the screen. Images off/CSS on will show nothing - like most IR techniques. There's several methods detailed: mezzoblue § Testing Grounds |
|
|
|
#17 (permalink) | |
|
Senior Member
|
Quote:
|
|
|
|
|
#18 (permalink) | |
|
berserker than thou
Join Date: Sep 2005
Location: Bristol
Posts: 450
|
Quote:
|
|
|
|
|
#20 (permalink) | |
|
i'm done, son
Join Date: Jan 2005
Posts: 12,262
|
Quote:
HTML Code:
Code:
|
|
|
![]() |