Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is elegant, semantic CSS with ASP.Net still a pipe dream?

I know Microsoft has made efforts in the direction of semantic and cross-browser compliant XHTML and CSS, but it still seems like a PitA to pull off elegant markup. I've downloaded and tweaked the CSS Friendly Adapters and all that. But I still find myself frustrated with bloated and unattractive code.

Is elegant, semantic CSS with ASP.Net still a pipe dream? Or is it finally possible, I just need more practice?

like image 278
dewde Avatar asked Aug 28 '08 19:08

dewde


2 Answers

The easiest way to generate elegant HTML and CSS is to use MVC framework, where you have much more control over HTML generation than with Web Forms.

like image 88
Kevin Dente Avatar answered Sep 27 '22 20:09

Kevin Dente


See this question for more discussion, including use of MVC. This site uses ASP.NET and the markup is pretty clean. Check out the HTML/CSS on MicrosoftPDC.com (a site I'm working on) - it uses ASP.NET webforms, but we're designing with clean markup as a priority.

like image 33
Jon Galloway Avatar answered Sep 27 '22 19:09

Jon Galloway