Click here to Skip to main content
15,922,309 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Good Morning,
My problem is my text colour is white by default in asp.net application. I always have to select the text and then I change its colour. Is there any option in Microsoft Visual Studio 2010 for changing the text colour to black.
Posted
Updated 6-Sep-11 19:14pm
v2
Comments
Qureshali 7-Sep-11 1:18am    
In an asp.net application, while designing .aspx page if I write any text it appears in white colour. So my question is how I change that text colour default value to black

Given that you are in Design View of your page. Rightcklick on the page and select properties. In the properties explorer look for section "Body" -> "Text". There you can change the color of your foreground text.
 
Share this answer
 
It is strange to have such a problem but we can make default settings for our application by specifying Theme or by creating a application level CSS; we can then assign default properties to Body and then add reference of that CSS either in all pages or in Master Pages.

Hope this will help.
 
Share this answer
 
write the style like this for all the pages whereever you need


<body style="color:Black;">

..........

</body>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900