hi,
i want add css(stylesheet) in my project.help me how to add css in my project.and give me some examples using css.
Thanks & Regards,
gokilavasan
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Mar 27, 2012, 8:49 AM
Please refer the below links
http://www.w3schools.com/aspnet/prop_webcontrol_style_cssclass.asp
http://www.beansoftware.com/ASP.NET-Tutorials/CSS-ASP.NET.aspx
http://dotnetguts.blogspot.in/2007/09/applying-css-to-aspnet-application.html
Thanks
Krishna GaradPosted Mar 27, 2012, 8:59 AM
Next after adding the style sheet you can create some element ids as well create some classes like bellow.
.outer
{width:943px;text-align:left; margin:0 auto; }
#outer2
{width:923px;text-align:left; background-color:#595758; margin:0 auto; border-bottom:5px solid #ffcc00;}
in above where is the .outer its one class and where is #outer2 is the element id. You can refer this classes in element id in your .aspx page for that you need to refer first the created .css file in head tag like
and when you are creating now some element consider i'm creating div and for this div i need the style from css file then refere it like bellow
another div to refer the class