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

I have a 20x20px background image that I want to repeat to fill the entire screen.

I have tried using the following:

background: #000000 url(images/bg.gif) repeat-x repeat-y;

This does not work, it only repeats on the X axis.

Could someone please advise what is the correct syntax that I should be using.

Thank you

2007-12-11 13:33:58 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

Leave out the "repeat-x repeat-y;" because the css defaults to repeating in both directions. It looks like having both invalidates the repeat-y, causing it only to acknowledge the repeat-x.

2007-12-11 13:37:55 · answer #1 · answered by Opal 6 · 1 0

Repeat-y

2016-12-26 16:06:57 · answer #2 · answered by luby 4 · 0 0

This Site Might Help You.

RE:
CSS - Repeat X & Repeat Y?
I have a 20x20px background image that I want to repeat to fill the entire screen.

I have tried using the following:

background: #000000 url(images/bg.gif) repeat-x repeat-y;

This does not work, it only repeats on the X axis.

Could someone please advise what is the correct syntax that I...

2015-08-18 14:33:07 · answer #3 · answered by Raisa 1 · 0 0

Use 'repeat' instead of 'repeat-x repeat-y', or just leave it out.

2007-12-11 13:57:46 · answer #4 · answered by daa 7 · 2 0

fedest.com, questions and answers