Jump to content

background image stretching


Zane

Recommended Posts

I know it's possible somehow to stretch a gradient 100% vertically.  I just can't figure out how to do it.

Suppose I have my div#nav

div#nav {
height: 100%;
width: 200px;
background-color: black;
background-color: #8C9AA3;
///  What am I doing wrong?
        background: url(gradient.jpg) 100%;
///  I need this gradient to span from top to bottom.
font-family:"Arial";
margin: 0px; padding: 0px;
padding-top: 0px;
font-weight: bold;
position:fixed;
color:white;
}

Here's the gradient..

http://reallycheapfloors.com/gradient.jpg

This is possible right?

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.