Div Vs. Table And ASP.NET Theme and Skin
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…