2
I need to make a list that in up to a maximum of 6 items, take the entire width of the screen, following the following steps:
- If there is only one item in the list, it takes 100% width of the screen;
- If you have two items in the list, each one has to take 50% of the total width of the screen;
- If you have three items in the list, each one has to take 33% of the total width of the screen, and so on up to 6 items.
Follow the code of what I have done so far, I could not do and I need to do this only with CSS. I am using Bootstrap.
https://codepen.io/maur-cio-gabriel-kr-ger/pen/yQQxeN?editors=1100
Your example does not show the list by filling the entire side. You did not mean that it fills the entire screen length?
– fernandosavio
Sass would be fine, do a little research on.
– Guilherme Caixeta
Reformulated question for better understanding.
– Maurício Krüger
Where the page will pull these elements from the database?
– Luiz