The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to: make background static and have body scroll?
i'm looking to get a layout like this:
www.glamzilla.com if there is someone who knows how to do it i would greatly appreciate it. if not i could possibly pay someone to do it for me however i would first like to do it myself. thanks. |
#2
|
|||
|
|||
Easy. Just ad the word: fixed to the "page background" and/or "body" main css options in your admincp style manager. For example: #050505 url(put here the url to the image you want - inside your image folder or even an external url) repeat fixed;. The important here is the fixed, the repeat word is for if your image it's too small to fill the monitor area.
|
#3
|
|||
|
|||
that will only fix the background to the top without the repeat, but will it wont let me achieve the look like in the example i gave where the background is stationary and the body scrolls.
|
#4
|
||||
|
||||
The site is using "iframe" to achieve what you want. The side sections (that don't scroll) are one page while the inner section (that scolls) is another page. Since there's different ways to apply it search in Google for "html iframe".
*For next time: Please warn people if you're linking to an adult-type site. |
#5
|
|||
|
|||
What i said does exactly what you want and the example you named. The issue here is to have a background image that do not need the repeat condition. Play with the options. My forum does have the fixed background: www.g6-team.com
|
#6
|
|||
|
|||
yeah pedro i tried your way, beautiful. thanks a lot man.
can i center the image on the website so that no matter what resolution i choose it auto centers depending on what screen resolution a person has? |
#7
|
|||
|
|||
You're wellcome.
|
#8
|
||||
|
||||
Yes you can center a background image easily. Here are two examples:
Center your background image at the very top of the page: Code:
background: url(/images/header.gif) no-repeat top middle; Code:
background: url(/images/header.gif) no-repeat 50% 100px; |
#9
|
|||
|
|||
If I wanted a fixed background image (instead of the normal logo image), how would I know what size (in pixels) to make it?
Here's an example of what I'd like. Thanks for any advise. |
#10
|
|||
|
|||
i made mine the biggest size possible for a laptop monitor (1680x1400 ish). i'm guessing if you have something centred on the screen it won't matter what size you make it since it will be centred no matter what size your display is.
Aken your code doesn't work for my website, when i tried it it makes my background blank. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|