The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Trying to find a way to reference the Body Background value...
I'm stuck on a problem and I'm hoping some of you template gurus can help me out.
Here's my problem summarized: In a table that is inside of a table I have a TD element that I want to have the same background as the "Body Background" value for the style. I've already concirmed over on VB.com that there is no phrase that corresponds to the value of the "Body Background" value box as it is implemented via the CSS that is called from global.php so the easiest solution isn't available to me. Any thoughts on how else I could reference that value without having to hard-code my template? Thanks, Kevin |
#2
|
||||
|
||||
Why not just use class="body" ?
|
#3
|
||||
|
||||
Quote:
|
#4
|
||||
|
||||
No, if it is already assigned a class, you need to use the style tag.
|
#5
|
||||
|
||||
You can also do it client-side using the DOM... you would need to do it in javascript, by assigning an id tag to the table cell in question, then changing that id using
Code:
id.background = document.body.background OK - your TD needs to read HTML Code:
<td id="bodied" ... When you say "same background" do you mean background image, or background color, or the whole background definition? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|