Is there a way to not use CSS?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ChrisCRMC
Beginner
Beginner
Posts: 3
Joined: Tue Nov 04, 2008 9:38 pm

Is there a way to not use CSS?

Post by ChrisCRMC »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Is there a way to not use CSS?

Post by Ruth »

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
ChrisCRMC
Beginner
Beginner
Posts: 3
Joined: Tue Nov 04, 2008 9:38 pm

Re: Is there a way to not use CSS?

Post by ChrisCRMC »

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;
}
ChrisCRMC
Beginner
Beginner
Posts: 3
Joined: Tue Nov 04, 2008 9:38 pm

Re: Is there a way to not use CSS?

Post by ChrisCRMC »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Is there a way to not use CSS?

Post by Ruth »

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
Post Reply