Saturday, July 4, 2009

Need of style sheets....

STYLESHEET:
for suppose..in your project of .net or any other project(vs) you have 8 aspx pages
and you need to have same font in all those pages, the basic thing which we do is that go to each and every page and set the font to your required font, undoubtedly this is a cumbersome task, so to overcome this situation we go for a concept called as style sheets in .net. In .net there is a special document called as stylesheet which enables you to inherit the properties in the style sheet to be embed in your required page...

for example...in the same project your requirement is to have same type of font in all the 8 aspx pages..so v just need to do one thing, set the font in the style sheet and give the link of the style sheet to your required pages, thats it your requirements has been met with ease and efficiency....the main advantage of this style sheet is that the settings are configurable efficiently change in one page reflects in all the pages which inherits it(style sheet).