I am experimenting with a new CSS style sheet to upgrade the look of my site. Something in the new style sheet is causing the navbar to stop obeying:
itemwidth="100";
The items are now sizing to suit the text throwing off the alignment of the two rows of items:
The relevent pages follow:
http://www.leicesterandleicestershire.com/indextmp.html (the new home page)
http://www.leicesterandleicestershire.c ... atatmp1.js
http://www.leicesterandleicestershire.c ... n_Jose.css
Any help will be much appreciated
Tim
Dbl Floating Navbar
Hi Tim,
It's not the new css file. Someplace in the new menu data file you made a change. I'm trying to compare them but I thought I'd let you know it's not the css file. What I did was download the page, and then go and get the old menu_data.js file at the site and substituted it, as soon as I did that, the menus went back to just like they are now as to size. I'm looking for the error, but you know what changes you made so you might be able to find it quicker.
Ruth
It's not the new css file. Someplace in the new menu data file you made a change. I'm trying to compare them but I thought I'd let you know it's not the css file. What I did was download the page, and then go and get the old menu_data.js file at the site and substituted it, as soon as I did that, the menus went back to just like they are now as to size. I'm looking for the error, but you know what changes you made so you might be able to find it quicker.
Ruth
Not being sure if you'd already read the other post, I posted new. The error is in the menu_datatmpl.js file. You have and it should be
As soon as I put that in the menu went back to normal
Ruth
Code: Select all
with(menuStyle=new mm_style()){
onbgcolor="#003300";
Code: Select all
with(menuStyle=new mm_style()){
itemwidth="105";
onbgcolor="#003300";
As soon as I put that in the menu went back to normal
Ruth
-
- Advanced
- Posts: 22
- Joined: Tue Feb 10, 2004 5:18 am
- Location: Calgary AB, Canada (ex-Leicester)
- Contact:
Hi Ruth,
I actually had the line in but had not saved the last version.
I still have the problem. If you got to this page:
http://www.leicesterandleicestershire.com/
You will see the way it is supposed to look. But on this page:
http://www.leicesterandleicestershire.com/indextmp.html
which uses the new style sheet, it is wrong. In my browser the top menu is wider than the lower one and the individual items are all sized according to the text description length and not according to the "itemwidth" command
I actually had the line in but had not saved the last version.
I still have the problem. If you got to this page:
http://www.leicesterandleicestershire.com/
You will see the way it is supposed to look. But on this page:
http://www.leicesterandleicestershire.com/indextmp.html
which uses the new style sheet, it is wrong. In my browser the top menu is wider than the lower one and the individual items are all sized according to the text description length and not according to the "itemwidth" command
-
- Advanced
- Posts: 22
- Joined: Tue Feb 10, 2004 5:18 am
- Location: Calgary AB, Canada (ex-Leicester)
- Contact:
Solved it!
Solved it, but I still don't get it. The reason it works improperly in one and not the other is because of this statement:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
That (which was generated by Style Master 3.5) causes the problem (I have no idea why).
It works fine if I have this statement at the top of the page as per the original (also works with no statement at all):
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I think I get points for intuition, if nothing else.
inexperience plus intelligence = inovation
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
That (which was generated by Style Master 3.5) causes the problem (I have no idea why).
It works fine if I have this statement at the top of the page as per the original (also works with no statement at all):
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I think I get points for intuition, if nothing else.
inexperience plus intelligence = inovation
Last edited by TimBert on Mon Mar 22, 2004 12:16 am, edited 1 time in total.