How do you use css in asp.net?
Answers were Sorted based on User's Feedback
Answer / amit
Example,
1 . First u create a css file
2 . write below line between <head></head>
<link href="style.css" rel="stylesheet" type="text/css" />
that will aplay to partuclar page level
Is This Answer Correct ? | 92 Yes | 15 No |
Answer / chithy
Its Cascading Style Sheet. Allows to set different styles
for the controls that we are using in ASP.net
Is This Answer Correct ? | 84 Yes | 12 No |
Answer / amit patel
* Follow Belowe steps
1) Create CSS File
2) Add App_Theme Folder in Solution Explorer
3) Create New Folder named Theme in App_Theme folder
4) Put Css into Theme Folder
5) in Page Directive of any pages of .net put beolwe line
<%Page Theme="Theme" %>
Is This Answer Correct ? | 30 Yes | 9 No |
Answer / murali
1. You can create stylesheet in solution explorer
2. write the css code
3. write and include this code in asp.net tag page
<link rel="stylesheet" type="text/css"
href="....\...\Sample.CSS" />
Is This Answer Correct ? | 18 Yes | 9 No |
Answer / pradeep goyal
1. note down the css code on notepad & add in the project.
2.now go to on project web page's source code then write in
<head> tag
<link rel="stylesheet" type="text.css" href="file.css"/>
3. Run the project and see css will be display
Is This Answer Correct ? | 5 Yes | 6 No |
Answer / akriti
first including css file in head tag.style="text/css" then
using <style> tag.then within style tag defining class u
want to apply..like .style1{font:red}
then including this class in particular tag..
<h1 class=style1>This is css</h1>
Is This Answer Correct ? | 15 Yes | 21 No |
What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ?
Explain method to handle error using HttpError in Web API?
Describe the .net base class library.
Difference between ISQL and OSQL??
What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?
WHAT IS polymorphism
What is asp.net architecture?
What is difference between asp.net and asp?
what is loosely coupled solution? How it can be used?
How can we inherit a static member?
Name two properties common in every validation control?
How to migrate from sqlserver 2005 to sql server 2000 (every one know reverse process of that )