The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How many divs

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #209541

    How many divs would you guys use to re-create just one of the “apartment for rent”

    I’m just trying to figure to what developers do.
    I currently see
    1 container – 1div
    2 rows – 2divs
    Row 1 – 3 divs
    Row 2 – 4 divs

    I feel like I’m using too many divs. Here is the codepen


    Thank you for the reply. Would you use <li> tags instead of div tags for the information?


    I see nothing wrong with your approach. I would however use a list item instead of the container div, and a main ‘ul’ to contain all ‘li’s. This is a listing, and , to me , it makes semantic sense to use an unordered list.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.