Forums

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
    Posts
  • #209541
    Jtwa11
    Participant

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

    https://4rent.ca/Manitoba-137/listing/

    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
    http://codepen.io/Jtwa/pen/YyxzpB?editors=100

    #209545
    Jtwa11
    Participant

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

    #209720
    Krish1980
    Participant

    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.