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)
-   -   Navlinks CSS help neded please (https://vborg.vbsupport.ru/showthread.php?t=243748)

Dave-M 06-01-2010 08:04 PM

Navlinks CSS help neded please
 
Hi,

From searching these forums, I believe there is no stylevar for the navlinks left, right and bottom borders. So, I have located the CSS for the navlinks part of the forums, but I'm not quite sure how to go about adding stuff so it work how I want it to do, so if someone could guide me here, I'd be very greatful :)

I just want a 1px border to follow the rest of the forum's style. I'm using the stock template with colour changes, nothing else.

The code I have is this:

Code:

}
#navlinks {
        background: {vb:stylevar navlinks_background};
        _background-image: none;
        border-top: {vb:stylevar navlinks_border_top};
        padding: 6px;
        text-align: center;
        color: {vb:stylevar navlinks_color};
        font-size: 1em;
        clear:both;
}

Thanks :)

P.S. You know the small drop shadow that is to the left of the boxes on the main forum page? Can I add that to the border too? What is the correct name for that please?

Dave-M 06-03-2010 08:15 PM

Anyone any ideas on this please? :)

Qwk86gn 06-03-2010 10:30 PM

The place you need to change the CSS is in vbulletin.css

Search for:
Code:

.navlinks {
Replace CSS with:
Code:

.navlinks {
    background: {vb:stylevar navlinks_background};
    border: {vb:stylevar navlinks_border_top};
    padding: {vb:stylevar padding} 0;
    text-align: center;
    color: {vb:stylevar navlinks_color};
    font-size: {vb:stylevar font-size};
    margin-top: 20px;
    margin-bottom: 20px;
    width:100%;
    clear:both;
    -moz-box-shadow: -2px 2px 2px {vb:stylevar shadow_color};
    -webkit-box-shadow: -2px 2px 2px {vb:stylevar shadow_color};
}

Then use stylevar navlinks_border_top to control the border around the nav links.

Use stylevar shadow_color to set the shadow color around the navlinks.

Dave-M 06-03-2010 11:52 PM

Hi Steve,

Thanks for the reply :)

Sadly, nothing happens. I already have specified a border colour (in the stylevar) for the top, I have it as 575757, and I'm using the default shadow. With that code, neither the shadow or the border show up.

Qwk86gn 06-04-2010 12:50 AM

Are you looking in the correct template, vbulletin.css?

I tested this prior to posting here and it worked perfectly.

The code you gave above does not change the navlinks like you want. You must edit vbulletin.css template.

Dave-M 06-04-2010 08:52 AM

Yes, see my original post, that code is the original code from vbulletin.css. If I replace yours with mine, nothing happens. :)

Dave-M 06-04-2010 11:43 AM

1 Attachment(s)
I've uploaded a screenshot to show where and how it was added.

Qwk86gn 06-04-2010 04:26 PM

Can I get your web address to check it out?

Do you have anything in your additional.css template?

Are you viewing the correct style when checking to see if it works, "vB4 Default Style"?

Dave-M 06-04-2010 06:38 PM

Thanks Steve, it was me, I must have done something wrong, so I reverted the template and redid it and it worked this time.

Can I just ask, if I want to add the shadow to any future items, is it just a case of adding those two lines to the end of the css for those particular areas?

Code:

    -moz-box-shadow: -2px 2px 2px {vb:stylevar shadow_color};
    -webkit-box-shadow: -2px 2px 2px {vb:stylevar shadow_color}

Thanks for your help :)

Qwk86gn 06-04-2010 08:13 PM

Glad you got it working!

Yes you can use the shadows just about anywhere.


All times are GMT. The time now is 11:58 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.01167 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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