The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hopefully this is something simple, but I'm playing around with some different style customizations and am curious to if the background image can be "stretched" to fit the members/users screen. Right now, I'm using images with a dimension of 1600x900 and obviously, on small resolution screens, some of that image would get cut off. So, is this possible to do? If so, how would I go about editing this?
--------------- Added [DATE]1305474564[/DATE] at [TIME]1305474564[/TIME] --------------- Ok, I THINK I've basically narrowed it down to this: Code:
.XXXXXXX
{
background-image:url('images/mybgimage.jpg');
width: 100%;
position: absolute;
top: 0;
left: 0;
}
|
|
#2
|
||||
|
||||
|
you would need to use javascript to accomplish this effect.
|
|
#3
|
||||
|
||||
|
Quote:
Code:
html {
background-attachment: none;
background-clip: border-box;
background-color: #FFFFFF;
background-image: {vb:stylevar doc_background};
background-position: 0 0;
background-origin: ;
background-repeat: none;
background-size: 100% 100%;
}
|
|
#4
|
||||
|
||||
|
Not sure why you have to add it when it's already there in vbulletin.css:
HTML Code:
html {
background:{vb:stylevar doc_background};
<vb:if condition="is_browser('opera') && $stylevar['textdirection'] == 'rtl'">
overflow-x: hidden;
</vb:if>
}
|
|
#5
|
||||
|
||||
|
I meant along the lines of using js to figure the users screen size, then assign a bg based on that so you wont be distorting the image.
|
|
#6
|
||||
|
||||
|
No it's not. Not what I was trying to do anyway
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|