Cascading Style Sheets (CSS) is a language for specifying the layout and presentation in general of markup such as HTML and XML.
Questions tagged [css]
281 questions
294
votes
8 answers
Why are people making tables with divs?
Update: It's now been 9 years since I asked this question and the world has changed. We now have flexbox and css grid as widely supported options, so using tables
for layout (either actual or via display: table) isn't needed anymore. This question…
Vilx-
- 5,420
61
votes
5 answers
Why are large amounts of magic numbers acceptable in CSS and SVGs?
Often times I see questions on the Hot Network Questions list like this that basically ask "how do I draw this arbitrary shape in CSS". Invariably the answer is a couple of blocks of CSS or SVG data with a bunch of seemingly random hard-coded values…
44
votes
8 answers
Why not embed styles/scripts in HTML instead of linking?
We concatenate CSS and JavaScript files to reduce the number of HTTP requests, which improves performance. The result is HTML like this: