HOW TO Find what Stylevar you need to edit
1 Attachment(s)
Loads of people are having problems finding which stylevar they need for a certain element. Here's an easy way to get you started in the world of css.
You will need:
https://vborg.vbsupport.ru/external/2009/12/80.jpg Then, using your mouse, hover over the part of your site you want to edit, and all the CSS values attributed to it will appear in the bottom right hand corner: https://vborg.vbsupport.ru/external/2009/12/81.jpg The underline is the classes/ids that are affecting said element, from these you can derive the name of the style var. In the example we can see the class is ".navtabs li a.navtab:hover", which gives us a clue we're looking for some sort of "tab" variable. We have to use common sense and look in the "navbar" section of the stylevar manager, and we can see there a few variables called "navbar_tab". If you still can't find the stylevar you need, you can also copy the id from the firebug panel - .navtabs li a.navtab:hover - and go to Search in Templates. That will bring up the css template where it is defined - vbulletin-chrome.css in this case. Click on the template to Edit and then click on Find (the words you searched for will already be entered in the Search box). You will then see exactly what stylevars define that class (in case it isn't obvious): Code:
.navtabs li a.navtab:hover { https://vborg.vbsupport.ru/external/2009/12/82.jpg In this example (below) we can see the CSS name for this bit of the forum is called ".threadbit .alt", so look in the threadbit section in the stylevars and voila! You should see alternating colour in there. https://vborg.vbsupport.ru/external/2009/12/83.jpg This obviously won't plainly point out the variables all the time, but it's a step in the right direction. You can also check you're editing the right variable by checking if the values you see in firebug reflect the variables in the admincp. Handy Hints:
Cheers to Lynne for noting that you can search for the CSS classes/ids in Search In Templates |
I was aware of the firebug add-on, but never experimented with it and wasn't aware of what it can actually do. Thanks for the write-up, it'll come in handy :):up:
|
thanks for that.. but i guess Google Chrome has this default :)
|
thanks for that
|
OMG Dunhamzzz!! I LOVE YOU! Thanks for saving me sleepless nights!
|
The stylevar dictionary is also very helpful:
http://www.vbulletin.com/forum/entry...F-Documents%29 |
Thanks, Should have used this earlier!
|
Thanks for this will make my life easier.
|
Quote:
|
for me I just search for the nearest template tag : < -- tag -->
|
All times are GMT. The time now is 02:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|