|
-
Jun 8th, 2005, 05:51 PM
#1
Thread Starter
Junior Member
Panels or Tables
I'm creating a web page in ASP .Net and I'm new to this and just want to know what is better to use to align controls etc on the page, a Panel or Table and when would you use each of these.
Cheers
Rod
-
Jun 8th, 2005, 06:50 PM
#2
Fanatic Member
-
Jun 9th, 2005, 06:11 AM
#3
I wonder how many charact
Re: Panels or Tables
A Panel is really just an html div - ao your question really becomes - what's better to align controls on a page : a table or a div. http://www.netmag.co.uk/tutorials/de...bsectionid=181
A google search on 'table vs div' will give you a lot more opinions on the subject.
I've been doing asp.net for a while and I never use the asp anel attribute tag, but rather just a plain old DIV tag. If I need to enable viewstate, or provide hiding/showing ability, I set a 'runat=server' attribute.
As far as tables vs divs - I target Ie5-6, Firefox, Safari, Netscape 7... so I use CSS for layout of most of my content - it is definitely easier to change things later compared to using tables, and also easier on the eyes.
-
Jun 9th, 2005, 07:17 AM
#4
Re: Panels or Tables
I haven't heard of the panel tag before coming across this thread. 
But that's a good thing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|