[ad_1]
Yes, yes. Functionally they are different. But what the hell, if I hadn’t known about the crazy thresholds until Jens Oliver Meiert conducted two quick surveys.
According to the HTML standard:
- If the current cell has a
colspan
Attribute, then Analyze the value of this attributeand let Subscribe be the result.
If the parsing of this value failed, returned null, or the attribute is missing, leave Subscribe be 1 instead.
If Subscribe is greater than 1000, let it be 1000 instead.- If the current cell has a
rowspan
Attribute, then Analyze the value of this attributeand let Line span be the result.
If the analysis of this value failed or the attribute is missing, leave Line span be 1 instead.
If Line span is greater than 65534, let it be 65534 instead.
I saw the answers in advance and knew I would have messed it up rowspan
. Apparently, 1000
Table columns are many columns that can be spanned at once, while 65534
is the magic number to determine how many lines we can span at the same time. Why is the sweet spot for rowspan
6.4543 spans greater than colspan
? There are usually good reasons for these things.
I just don’t know what the reason is, but now I have a little nugget up my sleeve for cocktail conversation.
What is the difference between the attributes `colspan` and `rowspan`? originally published on CSS TricksPart of the DigitalOcean Family. You should Subscribe to the newsletter.
[ad_2]
Source link