CSS Editor in visual studio 2005

  • Thread starter Thread starter Maxwell2006
  • Start date Start date
M

Maxwell2006

Hi,



I know that visual studio 2005 has built-in CSS editor. I have the following
code in my aspx file at the <head> section:



<style type="text/css" >

<!--

BODY { background: url(foo.gif) red; color: black }

.note { margin-left: 5em; margin-right: 5em }

-->

</style>



How can I edit the <style> area by using VS2005 CSS editor?



Thanks,

Max
 
I suggest putting your CSS in an external stylesheet. I know the CSS bits
work there.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
Hi Max,

The Style Builder in Visual Studio 2005 can only be used to edit styles in
standalone stylesheet files or edit controls¡¯ in-line style. Regarding
your issue, you can either:

1. Create a temporary stylesheet file and use Style Builder to work on it.
Then copy the content into webform.
2. Create a standalone stylesheet file and create a link in webform:
<link rel="stylesheet" href="default.css" />

Regards,

Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top