Round Corner For Sharepoint Webpart

Hi Guys,
Sometime Users want Round Corner around Web part to looks it Nice.
The Simple Webpart without corner looks like this













Jquery Provide Plug in for Round Corner,Check it Out here
http://www.malsup.com/jquery/corner/

Download Jquery and Plugin

Now In Content Editor Webpart Copy and Paste Jquery;
<script type=”text/javascript” src=”jquery.js”></script>

<script type="text/javascript" src="jquery.corner.js"></script>
<script type="text/javascript">
{
  $(".ms-WPHeader").parent().parent().parent().css("background-color","palegreen").corner("top"); 
}




</script>

Here is Outcome for above Jquery


This will put Corner on all webparts on Page but sometime instead you want on one particular Webpart.


here is small Jquery to achieve that 
 $("td[title='Title for webpart']").parent().parent().parent().parent().css("background-color","#DDE0E3").corner("top"); 

These Piece of Jquery works fine with DVWP.I have not tested with others Webpart.
Thanks
Ron

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s