The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to assign border to just three sides?
SOLVED!
Is it possible to assign a border color to only three sides of an area? Such as in the image below I want to assign a colored border to only bottom and both right and left of the navbar area. Red arrow marks the border I want to get rid of. Is this doable? |
#2
|
|||
|
|||
It is possible, you can use CSS to specify the border width of each side separately, so you could spcify 0 for the top. But we probably can't tell you exactly how to do it without a link (well, I can't anyway).
|
Благодарность от: | ||
K4GAP |
#3
|
|||
|
|||
Quote:
Example of what I found: Code:
div { border-top: 1px solid red; border-right: 1px solid red; border-bottom: 1px solid red; } |
#4
|
||||
|
||||
can you post a link to your web?
try using this: Code:
border-color: red; border-style: solid; border-width: 0 1px 1px; |
#5
|
|||
|
|||
The problem now is where to put the code. I have several code snippets that will do the job. I just don't know where to put it.
|
#6
|
|||
|
|||
You should download Firefox, if you don't use it already, then install the free add-on called firebug. Then you can load your page, right click on the part you're interested and select "Inspect Element with Firebug". It opens a window that shows the html and what CSS is being applied to it, so you could figure out what CSS selector will work to override it. (I think Chrome has something similar built in, but I don't remember how much it lets you do).
Anyone can do this if they can get to your site, which is why people usually ask for a link for questions like this (it's hard to know exactly what line you want to eliminate just by looking at the picture, but firebug makes it easy). It might sound like a lot of work just to figure out this CSS, but if you like doing your own styles I think you'd find that the time spent figuring it out would pay off in the long run. |
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
OK, sorry, I guess I misunderstood the question. You can add your CSS to the additional.css template for that style (under the CSS Templates group).
|
#9
|
|||
|
|||
Adding it into the additional.css the code has to be assigned to the navbar in some manner? So how would that look?
For example if I was using this code ... "border-color: red; border-style: solid; border-width: 0 1px 1px;" what would be added to it in order for it to be applied to the navbar? |
#10
|
|||
|
|||
You would need the correct CSS selector. I understand now why there's confusion - you've been customizing the site using the style variables. So I guess the answer to the original question is that you can't do it with style vars, you need to use CSS. And while there's no place to enter CSS just for the navbar, you can probably come up with a selector so that it will only apply to the navbar, (and the firebug thing can help with that).
Anyway, maybe try the div that has id "navbar", like: Code:
#navbar { border-top: 1px solid red; border-right: 1px solid red; border-bottom: 1px solid red; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|