| Author |
Message |
camner
Joined: 05 Jun 2003 Posts: 21
|
Posted: Thu Jun 26, 2003 9:10 pm Post subject: vertical alignment of text with arrows |
|
|
The vertical alignment of the menu text with the menu "cell" seems to be different when an arrow is included as compared to when an arrow is not included. With an arrow, the text seems precisely in the middle; without an arrow, it seems to be up a pixel or so.
See http://www.charleswright.org/index_test1.htm for an example. Is this an unintended consequence of the way I am setting this up or is this inherent in the cooljsmenupro code? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Jun 26, 2003 9:35 pm Post subject: |
|
|
Please, go to coolmenupro.js and find the following line:
| Code: | | var table=(nn(this.arrow) && this.hc()) || nn(this.image); |
Then change it like this:
Now all of your items will be centered vertically. |
|
| Back to top |
|
 |
camner
Joined: 05 Jun 2003 Posts: 21
|
Posted: Thu Jun 26, 2003 10:39 pm Post subject: |
|
|
| Thank you. Are there other consequences to the change you suggest? Was there a rationale for the way it was set up initially? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Fri Jun 27, 2003 11:19 am Post subject: |
|
|
| Table is complex object, and it is not very good idea to have many little tables on a single page because it will be hard for browser to render HTML code. That is why tables are on only for items with arrows by default. |
|
| Back to top |
|
 |
|