PDA

View Full Version : CSS issue with CSS Menuwriter or thereabouts


Tom M
04-06-2009, 08:45 AM
I have been struggling with what the issue is with this page:

http://www.bumpsetspikecamps.com/democamp/csstest.php

The CSS MenuWrite-generated menu renders correctly in FireFox, but not in IE.

The problem only manifests itself when I enable the Dynamic Dropdown behavior of "populate menu from dynamic array" which inserts some php code to build a javascript script just above the initial Doctype tag:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"

If I move that php code down to the "head" section of the page with all the other javascript the page renders correctly in both browsers, but the WA behavior disappears from the behaviors list.

Any ideas what the issue is?

Thanks,

TM

Ray Borduin
04-06-2009, 10:57 AM
Don't move it down to the head, just move it below the line:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

The server behavior looks for the code above the <html> tag.

Tom M
04-06-2009, 11:12 AM
Don't move it down to the head, just move it below the line:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

The server behavior looks for the code above the <html> tag.

That works, but I still have to manually do this move on every page that I put the server behavior on.

I'd rather fix the CSS if I could figure out what the issue is.

Either that or have the "insert server behavior" function put the code in the right place.