![]() |
|
#1
|
|||
|
|||
|
Issue: vBa navtab sub link style vs vB navtab sub link style
vBulletin 4.1.12 Patch Level 1 vBadvanced CMPS 4.2.0 site: http://dev.unrepentantgaming.org/index.php skill level: can follow directions Problem: I created a sub page for my vBa "Home" page called "Community Portal". However, i do not know how to make the sub page link style match the other subpage/child link styles in the rest of the navbar (select "forum" and hover over the sub links for an example). Our site also uses a rotating background so if you happen to get the one thats mostly white you wont even be able to see the sub page under "Home". I know i can just change the navbar_background (among other things) but I wouldnt be here if i didnt want to make it work. If there are stylevars what are they, If i need to edit a template please point me in the right direction. here is some of the code i used for the navtab children/sublinks Code:
.navtabs li.selected li a {
color:{vb:stylevar navbar_link_color};
padding:{vb:math {vb:stylevar padding}/5} {vb:math {vb:stylevar padding}/2};
background:{vb:stylevar body_background};
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent;
}
.navtabs li.selected li a:hover {
color:{vb:stylevar navbar_tab_selected_color};
text-decoration:none;
background: {vb:stylevar navbar_tab_selected_background};
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent;
}
i dont know alot about code creation but i guess i need to somehow put that style into this code Code:
<vb:if condition="$subpagelinks">
<ul class="floatcontainer">
{vb:raw subpagelinks}
</ul>
</vb:if>
Last edited by soulfoot; 05-27-2012 at 12:40 PM. Reason: resolved |
|
#2
|
|||
|
|||
|
ok so i'm halfway there
I added the following to additional.css Code:
.subtab li a {
color:{vb:stylevar navbar_link_color};
padding:{vb:math {vb:stylevar padding}/5} {vb:math {vb:stylevar padding}/2};
background:{vb:stylevar body_background};
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent;
}
Code:
<vb:if condition="$subpagelinks">
<ul class="floatcontainer subtab">
{vb:raw subpagelinks}
</ul>
</vb:if>
|
|
#3
|
|||
|
|||
|
and done
added the following to additional.css Code:
.subtab li a:hover {
color:{vb:stylevar navbar_tab_selected_color};
text-decoration:none;
background: {vb:stylevar navbar_tab_selected_background};
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent;
}
|
|
#4
|
|||
|
|||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I make a nav page link open an external link? | adbox | "How Do I..." Questions | 0 | 09-14-2011 02:22 PM |
| Logon Problems, gets logged out when using the link to my Link-page | siggen | Troubleshooting & Problems | 5 | 02-22-2008 05:10 AM |
| how to add a Forums link on the vba page and how to add a Home link on forumhome.php? | Telegon80 | "How Do I..." Questions | 2 | 12-27-2005 02:34 PM |
| No 'Admin CP' link in CMPS page footer in v.2.0.0; no navbar linking; & no forum link | forumpup | Troubleshooting & Problems | 1 | 09-23-2005 10:41 PM |
| The problem with the link to portal and the link to the forum main page.. | Giowolf | Troubleshooting / "How do I..." Questions | 2 | 05-20-2005 02:29 AM |