Table | Create a multi-column table (fits his container) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Table | Create a multi-column table (fits his container)

Hi. I'm a little stuck. I will detail what I want to develop: 1. The table must occupy 100% of the width of the container. 2. The column width must be the same for all of them. 3. The cells should not be adjusted to their contents. 4. When adding more columns (cells in each row) all columns must be displayed (it does not matter if they are very small) And also create a prototype (which does not work: c) https://code.sololearn.com/W5Oxj5WUemEz/?ref=app

20th Jul 2018, 3:20 AM
Pablo Fac
Pablo Fac - avatar
6 Answers
+ 3
Hi Pablo, I recommend you to take a look the flex properties in css Check my example! https://code.sololearn.com/W6j5nDeAF3R4/?ref=app
20th Jul 2018, 7:01 AM
Guillem Padilla
Guillem Padilla - avatar
+ 1
20th Jul 2018, 1:40 PM
Pablo Fac
Pablo Fac - avatar
+ 1
Guillem Padilla Hi. Very good code. How can I extend this so that the height is also adjusted?
20th Jul 2018, 4:52 PM
Pablo Fac
Pablo Fac - avatar
+ 1
Guillem Padilla If you can also adjust the size (height) of the cells to your container 😁
20th Jul 2018, 4:57 PM
Pablo Fac
Pablo Fac - avatar
20th Jul 2018, 5:08 PM
Pablo Fac
Pablo Fac - avatar
0
hi Pablo Fac™ What do you mean with adjusted? To the entire screen?
20th Jul 2018, 4:55 PM
Guillem Padilla
Guillem Padilla - avatar