search

Home  >  Q&A  >  body text

How many images can I set without overlapping when setting a background using CSS?

<p>I learned CSS background images today, and I practiced on many background image based questions, but I have a question in my mind. The question is <strong>how many images can I have in the background</strong> without overlapping each other, please give me the answer. </p> <p>I tried to find the answer, but I couldn't find it anywhere. If anyone knows please give me the answer. </p>
P粉818088880P粉818088880532 days ago571

reply all(1)I'll reply

  • P粉505450505

    P粉5054505052023-08-17 11:29:11

    You can write it like this, using composite properties.

    background:url("haoroomsCSS1_s.jpg") 0 0 no-repeat,
    url("haoroomsCSS2_s.jpg") 200px 0 no-repeat,
    url("haorooms.jpg") 400px 201px no-repeat;

    reply
    0
  • Cancelreply