Click here to Skip to main content
16,020,628 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi, i have the knowledge about html and css. now i want to design aspx page in asp.net. so,

which is best to design aspx page in asp.net table or div method? somebody said div is good and flexibility. but div method is not supporting for IE6 (and above), Opera, Safari, Netscape may interpret CSS differently whereas table method can support all but this is too slow to load.

so, pls suggest me which one i can use to design aspx page.
Posted
Comments
Thanks7872 26-Aug-13 2:37am    
- What is div method?
- How you can say 'not supporting for IE6?
- What is table method?
- How you can say 'this is too slow to load'?
TrushnaK 26-Aug-13 3:15am    
div is better than table.. if you suffer from css kind of issue then add webkit.

Divs are preferred over Tables.

Refer -
1. DIV TABLE[^]
2. DIV vs TABLE tag: Which one to use?[^].
 
Share this answer
 
Hi,

First things first. You can - and should - ignore IE 6...

By definition TABLE is used to display tabular data and DIV is used to divide your page to areas.
So that should answer your question.
In my experience designing page areas using TABLE has the start-up time advantage - that it pretty fast to set it up and go. But! it much less flexible that DIV based design.
To my opinion use only DIV, it will work for all recent and decent browser...
 
Share this answer
 
v2
div always better then table
1.For scripting div is more flexible less coding
2.table take more time to load.
3.Recent web designer's prefer div(do you ever think why just make rnd).

for css problem you have to write both css tags for all browser in same class
I don't think its a problem
Get well Soon :)
 
Share this answer
 
Go for Div. they are flexible in terms of applying in styles and attributes. Also you can group set of controls in div and apply css to all in on go by applying to div. In scenarios like if user is logged in hide Login section, div is awesome, while table you need to write lot of code as hiding one cell will mess up UI (you need to adjust colspan and stuff like that). Again, if you don't have data in tabular format and each section have more than one,two controls, go for DIV.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900