+ 2

Can anyone help me to merge columns of table using css ?

In following code i use colspan attribute of html to merge columns but i want to do it with css , how can i do it ? I thought border-collapse might help me but i learned that it only tells whether cells will share a common border or not. So how can i merge any row or columns of table using css ? https://code.sololearn.com/WD72exZN0INX/?ref=app

21st Dec 2019, 5:13 PM
Kuber Acharya
Kuber Acharya - avatar
3 odpowiedzi
+ 3
Ohh! Thanks for information Souhail Belhassen :)
22nd Dec 2019, 12:43 AM
Kuber Acharya
Kuber Acharya - avatar
+ 1
You're welcome Kuber Acharya !
27th Dec 2019, 9:09 PM
Souhail Ben Belhassen
Souhail Ben Belhassen - avatar
0
This isn't possible within CSS, even when you say they're block level elements. They are still two separate elements and HTML will render them as such. You can try and change the colspan attribute... But as I said, it's impossible in CSS.
21st Dec 2019, 7:17 PM
Souhail Ben Belhassen
Souhail Ben Belhassen - avatar