Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a C# programmer learning web design. The tool that I am currently using is Visual Studio 2010. Using the visual designer I am using tables to lay out the page. I am using a separate css file to store formatting information. Now if I change the size of any row in my table using the visual designer, it assigns a new css class for the row and embeds it in the local file. Hence, I loose all formatting for the content in the row and I end up with all these extra css classes embedded in my page.

So I have a few questions: Is there a way to get the visual designer to update the css file instead of creating a new css class each time I re-size a row?

Do most asp.net developers use Visual Studio for page layout design? If not what is a better program to use? I am trying to get a handle on what are the common tools used.
Posted

A couple quick points:

1) If you're learning web design, one of the first things to address would be that tables ruin web pages for accessibility. Tables are perfect for rows and columns of data, but not good for laying out web pages. Use DIVs instead...you can google this and very easily find templates on laying out pages with DIVs.

2) No, the visual designer doesn't (and probably shouldn't) update styles in your external style sheet. What if you were using that style somewhere else? It might seem a little backwards, but I think the implementation is good.

3) Everyone I have worked with uses VS for editing pages, but I don't know too many that use the visual editor. I use it, at most, in split for previews.

Typically, I'm creating views, applying styles, creating components, etc. For initial design, it's usually given to me by someone in Photoshop or sketched out on paper. I use master pages to create the look/feel once and then create my content pages.

All my client-side ASP.NET development these days is with the MVC Framework.

Cheers.
 
Share this answer
 
v2
Thanks for taking the time to answer my question. I am reading about formatting with CSS now based on your advice. Tables now seem like too much trouble to use as a layout tool unless it's a tabular display.
 
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