discodoran
03-09-2012, 11:15 PM
Auto Fitted Fixed Backgrounds
Hello i am trying to get the background on my forum to fit the screen of every browser resolution without missing parts on the left and right side. I thought that a Width: 100% Height: 100% rule would sort that out but i need the forum to be fixed to the page so that it does not scroll with the page. Cuttently i have the following set in the stylevar under doc_background
> Background Image Horizontal Offset: Fixed
> Backtground Image Vertical Offset: Top
Is there anything i can add into the additional css to stretch the image to the whole background? I noticed the doc_background being referenced in the vbulletin.css so i decided to add the following after it to no avail.
/* Set rules to fill background */
min-height: 100%;
min-width: 1024px;
/* Set up proportionate scaling */
width: 100%;
height: auto;
/* Set up positioning */
position: fixed;
top: 0;
left: 0;
}
position:fixed;
top:0;
left:0;
/* Preserve aspet ratio */
min-width:100%;
min-height:100%;
}
I was wondering if anyone had the same problem or would they have a solution to this problem.
Hello i am trying to get the background on my forum to fit the screen of every browser resolution without missing parts on the left and right side. I thought that a Width: 100% Height: 100% rule would sort that out but i need the forum to be fixed to the page so that it does not scroll with the page. Cuttently i have the following set in the stylevar under doc_background
> Background Image Horizontal Offset: Fixed
> Backtground Image Vertical Offset: Top
Is there anything i can add into the additional css to stretch the image to the whole background? I noticed the doc_background being referenced in the vbulletin.css so i decided to add the following after it to no avail.
/* Set rules to fill background */
min-height: 100%;
min-width: 1024px;
/* Set up proportionate scaling */
width: 100%;
height: auto;
/* Set up positioning */
position: fixed;
top: 0;
left: 0;
}
position:fixed;
top:0;
left:0;
/* Preserve aspet ratio */
min-width:100%;
min-height:100%;
}
I was wondering if anyone had the same problem or would they have a solution to this problem.