I need to create custom webpart with complex (few divs, or other html elements) background and borders.
How can i use default sharepoint content editor and just add predefined background and frame!?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You tagged your question with Sharepoint 2007 and 2010, the content editors are different though. This answer is for SP2010:
You can just add CSS to a custom CSS file.
background-imagefor.ms-rte-layoutzone-inner-editablewill do the image trick. If you want to add a “frame” as in border, you can addborderattributes to.ms-rte-layoutzone-outerand make it e.g.red.An example for a background image:
But please do your users a favor and don’t include anything blinking or distracting to the content editor’s background – if you wanna go for some very light grey or something like that it’s OK.
For MOSS2007 you need to check the specific styles you can override.