Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:14

Is there a way to not use CSS?


Poster: ChrisCRMC
Dated: Tuesday November 4 2008 - 20:45:40 GMT

I admit it, I'm a newbie to CSS stuff. I'm creating a site using a CSS style sheet to format a lot of elements, but I don't want to put the menu styles in it. Is there a way to get the menu to ignore the stylesheet and use only the settings in the menu_data.js?

Thanks,

Chris

Re: Is there a way to not use CSS?


Poster: Ruth
Dated: Wednesday November 5 2008 - 14:20:27 GMT

Hi,

The menu doesn't use css unless you actually design it to use it. For example, the sample you download doesn't use css, everything is coded in the data file, the off and on bgcolors and off and on colors, the sizes etc. The samples you see under the menu samples in the menu on the main site don't use css. So, I'm not sure what you are asking. Is there some conflict between the menu and your css on your site? You'll need to provide a link to the page so we can check it, if there is a problem.

Ruth

Re: Is there a way to not use CSS?


Poster: ChrisCRMC
Dated: Wednesday November 5 2008 - 15:05:09 GMT

I don't have the site on the Internet right now. It's on my private network. However, here's what happened. I created a HTML page with the Skyline sample menu and no CSS. It looks and works great!

Then I added the line <link href="style.css" rel="stylesheet" type="text/css" media="screen" />. After the addition of that line my menu is all messed up. The menu has streched out and the Skyline graphic button doesn't appear on any of the drop down menus. Only the first button, Home, has the graphic.

I've done some more testing and found the problem is linked to my table tag in the CSS. If I remove the table section from the CSS the menu looks fine. I made no style changes to the Skyline sample. In my CSS I have a width of 1016px for tables and the menu has streched to meet that. If I take the width line out of my CSS the menu goes back to normal size, but the Skyline graphic button still don't appear on the drop down menus. If I total delete the table section in the CSS the menu looks fine. Is there a way to get it to ignore the table tag in the CSS? Or does this mean I just can't use the table tag in my CSS?

Thanks - Chris

Here's the table section I have in my CSS:

table
{
width: 1016px;
font-family: Georgia, "Times New Roman", Times, serif;
background: #DBE4F6;
border: none;
}

Re: Is there a way to not use CSS?


Poster: ChrisCRMC
Dated: Wednesday November 5 2008 - 15:13:25 GMT

One other thing I just tried. If I remove the width and background from the table section of the CSS the menu looks and works fine. So the background color appears to be what's dropping out the graphic buttons. Thanks - Chris

Re: Is there a way to not use CSS?


Poster: Ruth
Dated: Wednesday November 5 2008 - 15:17:15 GMT

OK, for me to test this I need you to post your html page, your menu_data file and the css file here using the code tag to set off each setion. I can then use that to put together the page and test it on my desktop. There are too many variables to just guess at the various things. There shouldn't be any background color image conflict as far as I know, so I need those things to set it up. Thanks :)

Ruth