The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi guys, interesting question here for you:
would it be possible to use VB math to say tell the CSS to take the page width of 100% for the div tag width, and then minus a certain amount? Like Code:
div { width: {vb:math 100% - 130}px; } Any help is appreciated |
#2
|
||||
|
||||
![]()
You cannot mix % and pixels (or any two different types). If you want to start with 100%, then you need to subtract x%. Or, you can start with xx px and substract 130 px.
|
#3
|
|||
|
|||
![]()
Thanks Lynne. It was a vain hope. Didn't think it was possible...
I suppose I could do it post display in JS, but then I'm running a risk of the user having it turned off. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|