The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need styler or coder help, not sure which...
I'm new at styling, and I'm making a new style and I have two images that I want to use.
The first one will go at the top, and stretch the entire width of my forum, to the very edges of the screen, not just the forum. The other image, I want to go at the bottom of the forum, from left side of screen to right. Not in the footer, I'm talking at the very bottom. Doing it via the main css in the style isn't working. So I'm assuming I will have to somehow code these into the forum display template? If so, please help me out? As in, what code would I use, and where would I place it? Thanks in advance for any help |
#2
|
||||
|
||||
You can use the Main CSS but you'll also need to edit the Header and Footer templates. At the very top of your header add this:
Code:
<div id="topimg"></div> Code:
#topimg { width:100%; height:30px; margin:0; padding:0; background:#000000 url(/forum/path_to_image_here/) repeat-x top left; } That covers your stretched image at the top. As for the bottom I'm not sure what you mean by "Not in the footer, I'm talking at the very bottom." Since the image will be at the bottom the code will need to be in the Footer template. In any case at the bottom of the Footer template add: Code:
<div id="bottomimg"></div> Code:
#bottomimg { width:100%; height:30px; margin:0; padding:0; background:#000000 url(/forum/path_to_image_here/) repeat-x top left; } I hope this helps. If you need further help just give me a holler. Edited: I just thought about the bottom image. In the case you want an image that will be positioned at the bottom of the page (stuck) regardless where the footer is on the page then you'll need to use an "absolute" position defined by CSS. If this is what you want let me know and I can help you with the code. |
#3
|
|||
|
|||
THANK YOU for all of this!! I have to go to work now, but will do all of this when I get home this afternoon.
As for the footer, yes, what you added is what I want. I want the bottom image to be "stuck" at the very bottom of the page, no matter where the footer is. Thank you so much! |
#4
|
||||
|
||||
NP. Try the above Footer code first. If that isn't what you had in mind then replace the Footer CSS with:
Code:
#bottomimg { position:absolute; bottom:0px; left:0px; width:100%; height:30px; margin:0; padding:0; background:#000000 url(/forum/path_to_image_here/) repeat-x top left; } |
#5
|
|||
|
|||
Ok neither of these is doing what I want to do. the bottom image is scrolling along with the forums and all of the footer information is above the bottom image, rather than on top of it.
I need for this bottom image to be part of the background, so that the footer info scrolls over it. The top image, I wasn't able to get it to work using the code you supplied above. So what I did was place it in the body background line as so: Quote:
Here's a link to my forum and the style I'm talking about. http://www.vbimpressions.com/forums/?styleid=10 |
#6
|
||||
|
||||
OK...I now see what you're trying to do.
To have a fixed background image placed at the bottom change the background image values to: Code:
background:#efe43c url(images/bfly/topimg.gif) no-repeat bottom left fixed; ---------- Is it my understanding that you want 2 background images (one at the top; one at the bottom), both fixed? Or just the bottom image? |
#7
|
|||
|
|||
Quote:
How can I do this tho, with the top image already in the body background line, and fixed? Do I add it after the top image info in the body background line? Quote:
Please forgive me for not having been clear on that. I'm not good at explaining what I'm after |
#8
|
||||
|
||||
Unfortunately, as far as I'm aware multiple (layering) of background-fixed images in the body tag is not supported (for most browsers), yet. We'll have to wait for CSS 3 and then browsers to support it before we see the so-often requested feature.
I'm constantly running CSS experiments so if I come across something I'll let you know. *There may be a Javascript solution; Frames can do it but I don't suggest doing that. **Yeah, I didn't want to say anything about the link. |
#9
|
|||
|
|||
Quote:
I'll try that... thank you again for your patience and help *big hug* |
#10
|
||||
|
||||
NP. I tested it the code so it should work. If not just holler back.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|