Webparts and styling

Erick Hernandez asked on March 19, 2014 11:04

Im fairly new to Kentico i was just wondering if there is a method to style one individual web part without the styling affecting all the other web parts that are the same. For example im trying to style a treeview web part but the only way i know is through the Site Manager -> Development -> web parts and then style the part i want this turns out styling all treeviews which is not the way i want. Any suggestions?

Recent Answers

Brenden Kehren answered on March 19, 2014 14:59

When you place the webpart on a template, in the HTML before and after wrap it with a < div class="yourname"> and they style it that way. Then you can prefix your particular styles with your class name and still use the built in class names assigned in the webpart.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.