Jump to content

Create many small boxes looping downwards?


Ulixava

Recommended Posts

Is it possible using CSS to get many small boxes on the screen on different positions using some sort of loop or something?

Just like you would do with a forum how you know there is normally a huge amount of posts (And lots of rectangles where the text is written).

 

Is this possible using CSS? If not, how would I do this? There is a real big pain in the butt to type each "rectangle" in manually...

 

Thanks,

Alex

Link to comment
Share on other sites

You can use CSS to define the styles of each rectangle.  Like with a forum all the posts just share a similar class which sets their style properties like colors, sizes, etc.

 

You'd have to use something else to generate the actual elements in the HTML though, that is not CSS's job.  CSS only does styling.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.