OK, I give up!
I am trying to convert a JavaScript rollover button script to CSS. It
is composed of background colors and font colors with the current page
displaying the "over" state. I understand the basics and have
accomplished a navigation bar that looks good and is functional.
However, my client is very fussy about layout and requires that the
nav bar be a specific width, with the buttons spreading across that
width evenly, but each button not of an equal width.
For example:
| Home | Contact | Faq's | Contact Us | Sign Up |
With tables and JS, I can specify a width for each button to fill that
width. However, I cannot see a way to do this in CSS. Padding will
expand the width of each button but not exactly the width I need and
the width is different between displays in IE and Firefox (Firefox is
wider). I can add the styles to the table and the cell lights up, but
is clickable only over the text (of course!).
Any assistance would be most appreciated!
I am trying to convert a JavaScript rollover button script to CSS. It
is composed of background colors and font colors with the current page
displaying the "over" state. I understand the basics and have
accomplished a navigation bar that looks good and is functional.
However, my client is very fussy about layout and requires that the
nav bar be a specific width, with the buttons spreading across that
width evenly, but each button not of an equal width.
For example:
| Home | Contact | Faq's | Contact Us | Sign Up |
With tables and JS, I can specify a width for each button to fill that
width. However, I cannot see a way to do this in CSS. Padding will
expand the width of each button but not exactly the width I need and
the width is different between displays in IE and Firefox (Firefox is
wider). I can add the styles to the table and the cell lights up, but
is clickable only over the text (of course!).
Any assistance would be most appreciated!
Comment