English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In HTML, when you insert a background, it repeats itself if the background is smaller than the browser. How do I make the background to fit the browser without repeating itself.

2007-02-06 12:16:41 · 3 answers · asked by tuan l 2 in Computers & Internet Programming & Design

3 answers

Hi there...

Here's the code:

BODY {
background: white url("pendant.gif");
background-repeat: repeat-y;
background-position: center;
}

where:

repeat
The image is repeated both horizontally and vertically.
repeat-x
The image is repeated horizontally only.
repeat-y
The image is repeated vertically only.
no-repeat
The image is not repeated: only one copy of the image is drawn.

Hope this helps!

2007-02-06 12:22:28 · answer #1 · answered by iskai 4 · 0 0

you can save the picture and make it bigger, then upload it into a site like photobucket to get a new url, then find the other url and replace it with the bigger pix url. you have two easy options to make a pix bigger, 1. use adobe photoshop, 2. paint. adobe is easy but hard to get unless you already have it. paint is quick and easy. its just : open pic in paint, go to image and go to stretch and skew, the first two % boxes in the top half, increase that to 150 or higher, 200 seems to double the size, go bigger if you must. then save and upload to photobucket. the only downfall to paint is that you can only do the stretch and skew once for a perfect fit or you have to start over. good luck!!

2007-02-12 11:35:10 · answer #2 · answered by aNna 3 · 0 0




CSS Background Tutorial







2007-02-06 12:26:38 · answer #3 · answered by Tashi Khoo 3 · 0 0

fedest.com, questions and answers