Showing posts with label Back to Basics. Show all posts
Showing posts with label Back to Basics. Show all posts

Tuesday, 2 October 2007

Application of multiple CSS Tags & Inheritence

Following my back2basics thing at the moment.

CSS does not support inheritence of tags, however it does support the application of multiple tags.

Therefore the following allows you to apply 2 styles to one label.



<asp:gridview id="myGrid" autogeneratecolumns="true" cssclass="GridStyle1 GridStyle2" runat="server"></asp:gridview>

Interestingly enough i was interested in the order of preference (for style clashes). Using Visual Studio 2008 and its CSS properties functionality, i discovered that the order of preference comes from the order of the tags in the CSS file (first style found takes precedence).

Therefore be careful about how you order your styles in CSS.

Back to Basics

At the moment, I am doing the whole back to basics thing in .NET.

I think I have learned many things in my many years of .NET, but I have also forgotten many things, or missed many things.

I think I am going to go back to basics and revisit many of the things I have learned with the hope of gaining stronger knowledge.

I will dump this sort of stuff in my blog for just now, but i think in the future I will sort out my website (in order to gain some structure for this).