My Blog Title Here

July 16, 2008

How do I make the top down menu java script style to be the same width for each button?

Filed under: Uncategorized, width — Tags: — admin @ 7:31 am

Q:

How do I make the top nav buttons exactly the same width for each button?

Total down menu java script width is 743px and I have 6 buttons I want the width
of each button to be fixed at 123px.

I set var menuWidth=”743″ but it averages out the buttons based on the text.

A:

You should use individual item styles. For example:

var itemStyles = [
["itemWidth=123px"], //style 0
];

var menuItems = [

["Home","testlink.html", , , , , "0", , , ], //style 0
["Product Info","", "deluxe-menu.files/icon1.gif", "deluxe-menu.files/icon1o.gif", , , "0", , , ], //style 0

Powered by WordPress