Skip navigation.

Skinning Web Applications with CSS

Comment permalink 1 Deeptha |
Can you direct me to any example which uses CSS for .net application?
Or
Can you show me a sample css file for a .net application?
Comment permalink 2 Milan Negovan |
Well, unfortunately I don't. Yet. However, any site that uses semantic markup is a good candidate for this kind of skinning. You need to define several stylesheets and wire up the style switcher. Dan Cederholm has a simple skin switcher on his site.
Comment permalink 3 Deeptha |
Thanks Milan,

I need some help.
I have a style sheet. I want to link it to an .aspx form file.
How do I do it?

There are few text fields and buttons on the form.
I have written a css style. How to link it to the buttons?

Thanks
Deeptha
Comment permalink 4 Milan Negovan |
All you really have to do to link a style sheet is include a "link" tag in the "head" section of your page. Do a view source on this page and see how I've linked my style sheets.

Second, assing buttons styles you defined in CSS, and you're all set!
Comment permalink 5 Ian |
What do you do if your web applicaiton displays complex tables of data. Surely you can't achieve the table layput you require for 10 or more columns in CSS, yet this table layout forms part of the 'skin'.

I am attracted to skinnable web applications, but I need to be convinced it can do everything, or it isn't worth it.

Ian
Comment permalink 6 Milan Negovan |
Ian, tabular information should be presented in tables---that's what tables are for. Converting tables to a div galore has never been advocated. In fact, you'd be surprised how many people don't realize there are many CSS properties available to style tables.
Comment permalink 7 Leblanc Meneses |
css skins are not enough sometimes a design needs an extra div or a different arrangements of divs with the same content.

master pages
Comment permalink 8 EK |
You may laugh at this, but...CSS is reamedy for miserable standard named HTML that fell on us from hell.

HTML may have been a nice idea but it is so unpractical and is hard to understand well, fix or deal with without an editor and not 100% portable across browsers.

Or may be the HTML is not the problem - Maybe the whole "Browser" thing is the stupid one!

I am surrprised that this is what we had to deal with in 2007!

EK
MSCD

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):