0

I have a div that contains an image and some text.

I want to repeat this div so that it fills the whole of the parent.

ideally it would work the same way tiling an image for the backgorund would work but it is a div instead of a image getting tiled.

Paulie_D
  • 107,962
  • 13
  • 142
  • 161
Neil_M
  • 462
  • 5
  • 17
  • 1
    You need to provide your code and maybe some attempts you have made at solving this yourself – connorg98 Aug 29 '18 at 15:59
  • if it's only about text, length and size known, css could mimic it . Show your code and tries if you expect some help. – G-Cyrillus Aug 29 '18 at 16:30

1 Answers1

3

I don't think there's a way to do it just in plain html/css. You must use Javascript or another technology to clone the div.

Maybe take a look at jQuery's .Clone() and make a while loop to check until Parent overflows

Depending on your specific needs you could make an image out of the div and then just background-repeat it.

Adan Sandoval
  • 436
  • 1
  • 6
  • 18