Is it possible to span elements with display: table-cell across columns as you would with a table <td> using colspan="100%"?
Is it possible to span elements with display: table-cell across columns as you would
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, please realize that doing
colspan = "100%"is actually equivalent tocolspan = "100"— browsers just make the cell span all columns in case the number of columns is less than 100.In the general case, to get a a cell that spans the whole table, check out
<caption>, although it has more limited use than one would hope.As for your question, you basically can’t achieve what you’re trying to achieve without using actual HTML tables. There are many other questions on StackOverflow that have answers providing hacks, though.