vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Adding Border to Navbar Dropdown Menu? (https://vborg.vbsupport.ru/showthread.php?t=257286)

taylor_smith 01-17-2011 02:10 PM

Adding Border to Navbar Dropdown Menu?
 
So I know how to add a border to the navbar, but I can't figure out how to add a border to the navbar dropdown menus. My template is a bit temperamental and I don't want to screw anything up. If it helps, I'm using vB4.0.

Would someone mind pointing me in the right direction?

Thanks!

Lynne 01-17-2011 05:53 PM

Please post a link to your site and also an image of what you want to change.

taylor_smith 01-17-2011 07:19 PM

Here's a link: http://www.carpediem.im/forum.php.

Here's an image:
https://vborg.vbsupport.ru/external/2011/01/23.jpg

I would like to add a border to the navbar drop-down menus.

Lynne 01-17-2011 08:10 PM

Currently you have:
HTML Code:

.navtabs .popupbody li {    border-top: 1px solid transparent;    float: none;}
.navtabs .popupbody {    background: none repeat scroll 0 0 transparent;    border: 1px solid transparent;    width: auto;}

Change the color of the borders in both of those to black, or whatever color you want.

taylor_smith 01-17-2011 08:34 PM

Thanks to you, our navbar drop-down menus now have borders. Thank you so much, Lynne!

--------------- Added [DATE]1295371872[/DATE] at [TIME]1295371872[/TIME] ---------------

Whoops, still have a problem. The background of the popupbody doesn't travel all the way to the borders. See the image below.

https://vborg.vbsupport.ru/external/2011/01/22.jpg

There are no margins/padding defined. I've tried adjusting the .navtabs .popupbody width to 100%, but this did not solve the issue. What am I doing wrong?

taylor_smith 01-19-2011 10:19 PM

Afraid I still haven't figured this one out, but I'm open to ideas from your CSS gurus. :D

Lynne 01-20-2011 03:50 AM

You have 2px of padding in the class .popupbody that is causing the issue.

taylor_smith 01-20-2011 11:27 AM

You're a genius in my sight. Thank you, again, Lynne. :)

gakz 04-27-2011 09:05 PM

Free bump to say thanks to Lynne!

This is a hard to find post and a very much needed fix in vbulletin in my opinion!


All times are GMT. The time now is 11:03 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.02068 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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