Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am making a custom visual web part in Visual Studio 2010 and I am trying to add a editable CSS style sheet to it. What I mean is I want to make a property that the user can access through the edit web part menu. This property will be a text field that contains the CSS style sheet. The goal is to have the CSS Classes within the web part be adjustable at any time with out having to recompile and publish the web part.

has this been done? Can this be done? Any suggestions?

share|improve this question
add comment

2 Answers

Why not deploy your CSS file to the Style Library. In this way you can update your CSS by uploading newer version of your css file directly to style library.

share|improve this answer
    
The people who will be using it will not want to have to go through that many steps, the changes that will be made are simple changes such as color change or something and the goal is to make it quick and easy for slightly technical users to open up the style sheet under edit web part and change small items. I personally agree that a version-ed approach is better but these are my requirements. –  kds6253 Jun 21 '12 at 19:20
add comment

It was actually really simple. I just need to add a string property and then add that string to the style tag inside the page header.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.