stretch background image |
stretch background image |
JimiB |
Apr 9 2017, 08:03 AM
Post
#1
|
Member Group: Members Posts: 49 Joined: 23-January 15 Member No.: 22,076 |
On my home page, the background image in the left content section suited the original template by only going half way down the columb.
Now i need to stretch the bg image down the full left content columb. i have tried changing my css without success. CODE #left_content{width:42%;height:auto;margin:10px;float:left;padding:10px;background:url(images/left_content_bg.png) repeat-x top;background-position:0 -18px;} |
pandy |
Apr 9 2017, 10:19 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
You mean stretch or tile? If the latter just remove repeat-x.
|
Christian J |
Apr 9 2017, 10:25 AM
Post
#3
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
Do you want the image to both stretch and repeat itself?
You might use the "background-size" property to stretch it, but the result may depend on wether the element's height is known or not. |
Lo-Fi Version | Time is now: 19th April 2024 - 10:02 PM |