Panel or DIV?

M

Miguel Dias Moura

Hi,

Isn't an ASP.NET Panel similar to a HTML DIV?
Can I apply css classes to a panel?

What are the differences between an ASP.NET Panel and a DIV?

When should I use one or the other?

I have been working in web design for sometime and I am used to XHTML
and CSS as well as some server languages. However some of the ASP.NET
tags seem to be something similar to the XHTML tags.

Thanks,
Miguel
 
S

Sylvain Lafontaine

Yes it is a panel.

However, if you set the targetSchema to something that is not compatible
with CSS 2.0, like InternetExplorer 3.2/Netscape 3, then many of the
properties for the css classes won't work.

S. L.
 
C

Chris Hayes

Greetings Miguel,

Yes this a touchy issue... I tend to go with the philosophy of "relative
acceptance" of browser standards... I like my work to be corss-browser
compliant... but I've adopted the approach of being compliant within a
couple versions of the main/dominant browsers... for example I no longer
code to be compliant Netscape 4.7... I try to be compliant with a 2 versions
of the popular browsers...

It would be a lot easier if the browser makers would stick to the
standards... but they don't want to... so we have to continue to monitor
trends and code accordingly...

This is just my input I wish you good luck...

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top