0

I was trying to do something fancy by randomly placing several <p> elements in a div. I am aware of the Math.random() js function, but since I'm placing them randomly with absolute position I get some overlapping :\

So, my question is: is there a simple way to achieve this?

Badly drawn example

Edit: After analyzing the possible duplicate, I found out the solution used does not fit my needs.. They basically create a grid since they know exactly what each element will contain.. My <p> elements will have text inside that can go from 9 chars to a larger number of chars...

PedroMendes
  • 75
  • 1
  • 9
  • TylerH and SW4 can you review my question? I have edited it.. – PedroMendes Jun 30 '15 at 14:52
  • did you look at the second answer in the linked question? – TylerH Jun 30 '15 at 14:55
  • 1
    @TylerH, I did now :P thanks.. It seems I am creating a big problem and I don't need big problems xD So I'll just "fake" the random position with CSS.. If it turns out good enough, I can post it here as an answer. Thanks :) – PedroMendes Jun 30 '15 at 14:58

0 Answers0