Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying styles to a scrollbar in .NET

Status
Not open for further replies.

pixel69

Technical User
Sep 25, 2002
56
ZA
When I used to create template designs using ASP it was easy to apply a certain style to a scrollbar using CSS. How does one do this in .NET? When I work on the template in VS 2005 and try and compile, the system complains about the scrollbar css and doesn't apply it.

Is there a new way of doing this??

Please help!!
 
You can just apply the CSS as you would in a normal HTML page. How did you used to do it in classic ASP?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
You can use:
Code:
<style type="text/css">
BODY
{
scrollbar-face-color: #FF0000;
scrollbar-shadow-color: #00FF00;
scrollbar-highlight-color: #0000FF;
scrollbar-3dlight-color: #EAEAEA;
scrollbar-darkshadow-color: #697074;
scrollbar-track-color: #0FFF00;
scrollbar-arrow-color: #FF0000;
}
</style>

Remember to remove <!DOCTYPE.......line from .aspx

Sharing the best from my side...

--Prashant--
 
Rememebr that the scrollbars will only be changed for IE users though.

Remember to remove <!DOCTYPE.......line from .aspx
Erm...why? The DOCTYPE tells the browser which version of (X)HTML you are using so that it knows how to render your site. Also, without it your site won't validate.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I am aware that it will only work for IE.
Do you really have to remove the doctype??
 
No, don't remove the DOCTYPE.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top