Forum Moderators: open
A site I'm promoting needs upgrading. It apparently has to have an 'informal' look with multiple pictures and associated text in a haphazard layout.
At present it is in deeply (very) nested tables and I've said that has to go - those pages aren't being searched on, though they are indexed. The webmaster wants to put it in layers to keep the existing layout. Is this like an image and equally unreadable by the spiders?
There is some compatibility issues with earlier browsers, but most 4.0 browser and up handle it with no problem.
if (!isProbBrows && is.nav4up) {
document.write("<ILAYER><LAYER ");
document.write("src='http://blahblah.com" + "?" + random + "' CLIP=0,0,800,65></LAYER>");
document.write("</ILAYER> ");
This duplicates an iframe tag, I don't think IE5 would read mine. (??)
Edited by: rcjordan
1) If you're willing to restrict your audience to version 4 browsers and up, divs work.
2) Divs can be absolutely positioned, even on the z-axis, giving a layered effect.
3) With absolutely positioned divs you can arrange the HTML code with the most search engine-friendly text right at the top.
4) Divs can be written for cross-browser and cross-platform compatibility.
It's best to do good testing for compatibility. Oddities occur, especially with Mac browsers. Most especially checkout AOL Mac browsers -- the blackest sheep in the browser family.
I often can code the exact layout appearance I want by using a clear pixel gif, dimensioned exactly the way I want, and placed inline with either align=left or align=right.
Another way is to include extra transparent space in the gif itself -- that is, if you have a 100x100 gif, make it 140x110 with the extra space transparent.
With a jpeg, use extra background color around the edges of the image, but beware of color shifts when compressing at a high level.
Hspace and vspace have some use as well, if the symmetrical space they add is OK. I prefer to add space to the image itself so I can have non-symmetrical image placements.