Jump to content

Replacing colspan with css code


cororon
 Share

Recommended Posts

You can't do it with CSS. colspan is the only way.If you're using tables you'll need colspan for that. However, unless you're displaying data, you shouldn't use tables. To lay out your pages use <div>, <span> and pure CSS.

Link to comment
Share on other sites

Divs don't act like tables - it is harder to get a multi-column layout with divisions but it is possible!By the way, the colspan attribute won't be deprecated until the entire table construct goes, because it is necessary for the concept of tables.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...