Page is a not externally linkable
penders - 12:33 pm on Aug 6, 2007 (gmt 0)
But that's an absolute ref, do you need the base element afterall? "And, as I now have found out, when a base element is used in a document containing text in floated elements, a IE bug that causes text to become more or less impossible to select is triggered." Hhmmm, yes, I am encountering this problem at the moment. However, I'm not sure whether to place the blame solely on the use of the BASE element. I have 2 very similar projects. Both use the BASE element on every page (out of necessity) and both have floated elements. However, only 1 project exhibits the problem of being unable to (easily) select text in IE6 (it's either all or nothing!). The page structure does vary slightly between the projects. However, removing the BASE element in the problematic project does resolve this issue. Using the BASE element... "Out of necessity": These projects use a single index.php file in the root of the website, which pulls in the actual page content contained in an HTML snippet in a 'topic' subfolder (/content/topicN/). (A custom CMS if you like.) The topic subfolder's are self contained and also contain the images just for that topic. These images are then referenced from the HTML snippet with no path (ie. src="myimage.gif") since there doesn't need to be and it's therefore easy to maintain (independantly of the whole project). But in order for these images to be picked up when the HTML snippet is included in the main file (in the webroot), we have to write a custom BASE element into the page, so 'it thinks' it's actually still in the sub folder. Internal links, however, are 'calculated' as being root relative / absolute. ...possibly the same reason as GaryK has given above for using the BASE element.
So I use relative internal links and base href.
:
PS. I don't use the "../../ method, I only use "/folder/page.htm method, so do you think I'm ok? There is also an IE6 Bug with the Base Element. You can't select text (easily) on a page that uses the Base Element. I thought this Bug was only related to using AP (Absolute Positioning) but it is not.