cororon Posted January 22, 2008 Share Posted January 22, 2008 I have something I want to span 3 table cells (columns) How do I do this using css not "colspan" in html. Am assuming colspan is deprecated (or soon will be maybe). Am trying to do everything in css if I can.Thanks Link to comment Share on other sites More sharing options...
Ingolme Posted January 22, 2008 Share Posted January 22, 2008 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 More sharing options...
cororon Posted January 22, 2008 Author Share Posted January 22, 2008 Thanks - am going to have to get properly to grips with div but I know that has issues where you try to do multiple column layouts etc from what I have read.Cheers Link to comment Share on other sites More sharing options...
Synook Posted January 23, 2008 Share Posted January 23, 2008 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 More sharing options...
cororon Posted January 23, 2008 Author Share Posted January 23, 2008 Any one know a good resource for tips on multi column layouts using divs? So much to learn, so little time...Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.