Forums Archive Index > SmartMenus v4.x General > Style sheets

Author: phgrove

Date: 19 Mar 2003 7:55 am

Hi there,

first thanks for the great script. I have looked at others way back and found yours was more stable than most others. I tried the coolmenus script from DHTMLCentral.com but the support seemed to just drop off.

Anyway i am a beginner at web coding and use a program called gallery, which is from --> http://gallery.menalto.com. What i am not sure of is what is meant by the following:-

2. All browsers: If you define a global stylesheet for any of the DIV, TABLE, TR, TD, FONT elements in the stylesheets on your pages, you may have troubles with the style of the menus. Example: <style>table{...}td{...}div{...}</style> Instead of using global stylesheets for your page elements use style classes. Example: <style>table.classname{...}td.classname{...}div.classname{...}</style>

Does this mean the menu's use a global style sheet, so that the style sheet needed for the Gallery program must use the same styles or is it saying that smartmenus uses a class of style sheets? As i am not entirely sure what a style sheet class is could someone enlighten me.

Thanks

Peter :D


Author: smartmenus

Date: 19 Mar 2003 11:02 pm

Hi, basically what I meant is the following. For example if you have the following on your page source:

<style>
div{border:red 4px solid}
</style>

this will affect the menus and an undesired border will appear. This will happen because the menus are in fact DIV elements. But if you have the following:

<style>
div.mydiv{border:red 4px solid}
</style>

this will not affect the menus. You can assign the mydiv class to any of your DIVs with class=mydiv later.

Hope this is clear to you!


Author: phgrove

Date: 20 Mar 2003 8:27 am

Would it be easy to change the menu's so that they used a style class of there own, thus not effecting the rest of the page?

Peter


Author: smartmenus

Date: 22 Mar 2003 10:19 pm

The menus use their own style and do not affect the rest of the page in any way :!: But the rest of the page may affect the menus if we use global stylesheet (for all DIVs for example).