vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Drop-Down CSS (https://vborg.vbsupport.ru/showthread.php?t=315698)

Fields 11-29-2014 08:58 AM

Drop-Down CSS
 
Hello,

I have a problem with the navigation drop-down menu. I would like to adjust for example the height of the boxes:

http://tactical-riot-gaming.de/images/dropdown.png

It's hard to find for me in this template jungle. Could you tell me what I need to edit?

Thanks :)

Best regards,
Fields

ozzy47 11-29-2014 09:11 AM

Add this to your additional.css

Code:

#navtabs .popupmenu ul li a {
    height: 40px;
    padding-top:20px;
}

Adjust as needed. :)

Fields 11-29-2014 09:38 AM

Thank you very much, that is exactly what I was looking for, ozzy :) I adjusted the height, but now the links still stay on their position:

http://tactical-riot-gaming.de/images/dropdown2.png

Is there something missing in the CSS?

ozzy47 11-29-2014 09:39 AM

Did you adjust padding-top:20px; Also is this a navtab or a sublink dropdown?

Fields 11-29-2014 10:07 AM

Yes, I tried to adjust padding-top. It is a navtab dropdown.

ozzy47 11-29-2014 10:09 AM

Ok then lets do this instead.

Code:

#navtabs .popupmenu ul, #navtabs .popupmenu ul li a {
    height: 40px;
    line-height: 40px;
}

Set the height and line-height to the same value.

Fields 11-29-2014 10:20 AM

That did it, thank you very much, ozzy! :)

ozzy47 11-29-2014 10:23 AM

Not a problem, glad to help. :)


All times are GMT. The time now is 07:55 AM.

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.01032 seconds
  • Memory Usage 1,719KB
  • 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
  • (8)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