Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: flapjack on April 07, 2011, 10:30:26 AM

Title: divs instead of tables
Post by: flapjack on April 07, 2011, 10:30:26 AM
is there any reason why Curve is so extensively using tables? wouldn't it be a better choice to use divs instead?
Title: Re: divs instead of tables
Post by: Suki on April 07, 2011, 10:59:14 AM
Curve is the default theme, but you can always make yours without using tables.

I don't know why the persons who did curve used tables, compatibility comes to my mind, you know IE6, different resolutions, etc
Title: Re: divs instead of tables
Post by: flapjack on April 07, 2011, 11:20:15 AM
last night I've rewritten tabs to divs in BoardIndex.php and it worked like a charm even under IE7
Title: Re: divs instead of tables
Post by: Matthew K. on April 07, 2011, 11:28:31 AM
Miss All Sunday - Bloc designed Curve.

flapjack - SMF still has some tables in templates, I do personally agree that more divs could be used, although the argument is that the only remaining tables are acceptable because they are used to display something that could be categorized as tabular data.
Title: Re: divs instead of tables
Post by: Suki on April 07, 2011, 11:32:28 AM
yes, I did that too.


point is, even if curve is made with tables, nothing can stop you from doing your theme in your own way.

@Labradoodle-360   I know :)  and I know he has very valid reasons.
Title: Re: divs instead of tables
Post by: Hj Ahmad Rasyid Hj Ismail on April 08, 2011, 12:18:19 PM
Quote from: flapjack on April 07, 2011, 11:20:15 AM
last night I've rewritten tabs to divs in BoardIndex.php and it worked like a charm even under IE7
I like.


Why don't anybody made a tableless Curve then? Impossible, difficult or we still need that table...
Title: Re: divs instead of tables
Post by: Matthew K. on April 08, 2011, 12:46:13 PM
Actually, it's quite easy to reconstruct the boardindex using divs instead of tables. Very time consuming, yes, but not very difficult.

There are a few instances where I think tables are necessary in SMF.