Manish Pansiniya's Blog

.NET, C#, Javascript, ASP.NET and lots more…:)

Div Vs. Table And ASP.NET Theme and Skin

with 3 comments

There is a starting of new project of ASP.NET in our company. Now the discussion is going on whether to use CSS-DIV or TABLE as layout. I was very much on the side of using THEME concept of ASP.NET 2.0 in the new project. It’s cool and very manageable in your project. There are chances when you boss or customer can say in future  that please change this layout as it is not usable or say simply, it does not looks good. Then suddenly you would think of suicide as there are many pages in the project and deadline is also too short. 😦

Now, I suggest you to follow this point while designing or making project in ASP.NET 2.0

  • Use Themes & Skins
  • Use CSS-DIV for layout of the site. You can use table for internal pages or for other needful things. But please use css for layout. look at This Article & This One Too.
  • Images which needs to be changed when you change the theme needs to be in the folder of Theme directory in App_Themes directory.
  • stylesheet should not be in the outer directory. It should be in the Theme directory.
  • Initially you would be puzzled because when you use theme and use it dynamically then nothing appears in the designer. You must run it and see it how it looks. So make one theme default and apply to pages to see the effect in design-time.

Do your stuff as much manageble as it would be useful in the changing world.

May be you can also add some to this list…

Advertisements

Written by Manish

December 14, 2006 at 7:04 am

Posted in .NET

3 Responses

Subscribe to comments with RSS.

  1. hi all,

    Div is much more apporopriate as comparsion to
    table.
    much speed, easy to maintain.

    Thanks

    Gautam

    October 30, 2007 at 7:36 pm

  2. Yea! you are right.. Theme are amazing stuffs.. I am big fan of it..

    Seo Freelance India

    June 10, 2008 at 7:23 pm

  3. hi,
    i am beginner to css, i also prefer div.
    very easy to use as compare to table.
    thanks.
    Pakistan

    NASIR HUSSAIN

    August 2, 2008 at 3:21 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: