Jump to content

Recommended Posts

I'm having a lot of trouble with a background image that I want to cover my middle column. It fits perfectly in IE, but in FF, it repeats horizontally, so I put a repeat for only the y, and it's way too thin...

 

Here's my code:

 

body {
background-color: #000000;
font-family: Verdana, Tahoma, Arial;
font-size: 11px;
margin:0px 0px 0px 0px;
height: 100%;
}


#header { background-color:#000000;
height: 150px;
}

#leftbox { float:left;
width:15%;
font-color: black;
background-image:
url('/images/dkredblk.gif'); }

#rightbox { float:right;
width:16%;
background-color:#000000; }

#middlebox { 
margin-right:16.5%;
margin-left:15.5%;
margin-bottom: -18px;
margin-top: -18px;
font-color: brown;
background-image:
url('../images/membersbackground.gif');
background-repeat: repeat-y; }

#footer { 
position: static;
clear: both;
background-size: 100%;
background-color:#000000;
color: red; }

 

Now I've been told that you can't stretch background images in CSS at the moment, so how could I make this background image go in my middle column without repeating on teh x axis but repeating as far as the content needs on the y axis?

Link to comment
https://forums.phpfreaks.com/topic/61139-css-background-image/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.