Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I have a list view like tailwind?

Olicode asked in CSS

Hello,

I created a real estate listings model, but on the index view the list isnt like in the example, it showing all the details of the listing creating like a big box of each listing instead of listings being in lines (rows)

Reply

It seems like the layout issue you're facing might be related to the CSS styling of your list. You can try altering the CSS to display the listings in rows rather than as large boxes. If you're using a table, ensure each listing is within a table row or, if using divs, apply a style like display: flex; flex-direction: row; to the container. Inspecting the example's code to identify the differences in styling can also provide clues to achieve the desired layout. If necessary, consulting a front-end developer can be a quick way to resolve the issue.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.