Hi, thanks for the response. I’m not sure what you mean, though.
Maybe, I should have put it in a CodePen or Glitch editor and wrote comments for better orientation.
In short, the whole table is in a figure element, which has side margin of auto, so it should be centered. And also there is padding applied to all the cells in the table. It’s just that it is considered a better practice to align text content to the left, numerical data to the right and the corresponding headings respectively. There’s an external article provided as a resourse in the task assesment page, contributed to styling tables.
in ur code it seem’s that when the screen is bigger than 1460 width pixels, the figure block will not be in the center.
you can always check if the layout will be in the right place in bigger or smaller screens, this will be explained further so you do have to worry now how to do it for now.
Yeah, I see now. My screen is smaller and the header cells behave as expected. When trying to emulate the same conditions as on your device (1460px) I don’t see this particular “clustering” of the text in the cells, though.
With your screensize it should have produced a wider gap in these cells. Because I’ve used “min-width”. This was the idea. But, apparently, there are some weird things going on with the proportions.
50% max-width of the parent container (figure element) >> 15 % min-width of the second and third cell (th element) from the thead section of the table.
I will play around with the width, maybe, using just the width property, instead of min-/max-width. And see what happens.