The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Auto-stretch Header Background
Hi Everyone,
I have a header background that currently takes up 2/3 of the available space. I would like for it to automatically stretch to the entirety of the available space. I was expecting to see an img src in the header template that I could set to have a width of 100% but I've not been able to find it. Could someone help me find the easiest way to do this? Thanks in advance |
#2
|
|||
|
|||
I have had some success with doing this. I'll describe what steps I took, and you may find that you can adapt it to match exactly what you want.
There's some template editing. I recommend you don't edit the default templates. Start off with the image file you want for your banner. Mine was about 180px high and 850px wide. Use the style variable editor to edit Image Paths>titleimage, to tell the software what image to use for the banner. Edit css-global.css. About line 656, within #header .site-logo, remove the line Code:
max-width:320px; Code:
max-width:320px; Code:
#header .site-logo { position:relative; height:180px; width:850px; margin:auto;} #header .site-logo img {position:absolute; width:850px; margin:auto;} |
#3
|
||||
|
||||
All of it can be done in additional css. It depends on the style and version of vB to do it that way. You can also set the parameters for it in the stylevars. It all depends on what you are more comfortable working with.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|