PDA

View Full Version : HTML coding for Craig's List, a step into the ancient past



KLB
05-20-2007, 10:06 AM
Last night I was working on creating a Craig's List real estate listing for my wife for the first time and quickly cranked out some beautiful tableless HTML 4.01 strict compliant code, as I am use to doing, that used the "style=" attribute. Much to my horror, Craig's List stripped my style attribute instructions from all my tags except <dd>, <li> and <img>. I was stunned and flustered as I could not use any form of styling on <Hx>, <P>, <DIV>, <UL>, <DL>, etc. What was worse, was that they even stripped out the "title=" attribute from images, which meant no proper use of tooltips to provide descriptions of images (alt of course is for alternative text when a image does not display, NOT for tooltip descriptions).

This forced me to spend about three hours playing around to figure out what exactly Craig's List would allow. In the end, I had to revert to tables, font tags and <BR> tags to get the styling I wanted as the <P> tag even seemed to be set to "clear:all". This in turn created nightmare printing options (my wife wanted to print out the listing for her client) as images were not breaking across pages correctly due to the bastardized code.

Having to rely on coding tricks that have been obsolete for around eight years and are fraught with usability issues makes me almost feel like I need to go to confession for using them in a listing. At the very least, it was an unwelcome trip into ancient history and the bad old days of dirty code. :sick:

deronsizemore
05-20-2007, 06:48 PM
You spent more time on it than I would have. That's ridiculous!

I guess that since I came into the web design game when tables were already on the outs, all I've ever known is tableless layouts so if I had to do something in tables, I honestly don't think I'd be able to. lol

bassplaya
05-22-2007, 04:34 PM
Look into digg.com sources, you'll be amazed how ingenuous is it.

al2six
06-07-2007, 11:14 PM
ha, from that tooltip comment you're clearly not an IE user. But maybe craig's list strips that stuff to keep people from manipulating the page? for example, if you could position a div to cover up their logo, navigation, etc. just a thought.