HTML code problem?
how do i fix my html code. im trying to get a background picture on the the left, going all the way down. but the code i got
{
background-image:
url('sunset quote.jpg');
background-repeat: repeat-y
}
well, i dont know what to do to fix it
iv got the css and everything, but i need to know how to keep it from chopping the image
Public Comments
- the code should be: body { background-image: url('sunset quote.jpg'); background-repeat: repeat-y; } it is actually not html by the way, it's css for styling html. EDIT: i'm not sure what you mean by 'chopping the image' as repeat-y will repeat your image at it's full height down the page. repeat-x will do the same across the page at it's full width - this is normal behaviour, although some people get confused about different display resolutions etc. if you provide a link to the page in question it may be more obvious what you mean and i'll amend my answer. all of the available parameters for background-repeat are: http://www.w3schools.com/css/pr_background-repeat.asp
- peekay is right. That's CSS. Make sure you put it in your stylesheet.css or else it's still not going to display right.
- background:transparent url(sunset.jpg) repeat-y top left;
Powered by Yahoo! Answers