vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   CSS problem (https://vborg.vbsupport.ru/showthread.php?t=145611)

sumacbob 04-23-2007 07:39 PM

CSS problem
 
I`ve embedded a css based drop down menu into my vbulletin board. It renders fine, well it did until I checked in IE6 and the font colors are mixed up in the menu.

After digging around, it appears the LI attributes are clashing. The Vbulletin css use LI attributes and so does my menu. For some browsers, it is using the menu css (and it`s LI) however, in IE6 and maybe others it is using the VB LI attributes for the menu hence the colors are wrong.

I could simply remove the menu li and rely on the vb css, however I need to the two different font colors. The board has a light background with dark fonts, but the menu is black with light fonts.

Did anyone make sense of what I`m going on about? :erm:

Tact7626 04-24-2007 04:06 AM

I think I do. I'm not 100% sure, but maybe if you havne't done so already, maybe if you give your divs (you're using divs right) a class name or an id name, that vb doesn't use, maybe it'll make vb stop trying to assign it colors.

also. the only css i'm confortable doing within the templates are when i apply the styles inside each div itself. and not in the header or a seperate stylesheet. um. perhaps doing this would be better?

these are just my thoughts. I hope they help a bit. :)

Sean S 04-24-2007 06:37 PM

why don't you assign a name to the new class or id for the menu?

for example, do this,

Code:

#menu ul {
        ...
}

#menu li {
        ...
}

#menu li a {
        ...
}

and then assign the id to the menu,

Code:

<ul id="menu">
        <li>Link</li>
</ul>

this way, the browser knows which LI style it should read,

hope that helps.

Tact7626 04-24-2007 09:03 PM

yah. there we go. that's kinda what i meant. (except i didn't know you can do that with other html tags. :p)

do what sean says. sounds good. :)


All times are GMT. The time now is 01:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01009 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete