{"id":1172,"date":"2010-07-02T20:01:45","date_gmt":"2010-07-02T14:31:45","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=1172"},"modified":"2016-12-19T15:16:58","modified_gmt":"2016-12-19T09:46:58","slug":"rounded-corner-and-css3-gradient-with-border","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/rounded-corner-and-css3-gradient-with-border\/","title":{"rendered":"Rounded corner and CSS3 Gradient with border"},"content":{"rendered":"<p>First download these files:<br \/>\n<a href=\"http:\/\/code.jquery.com\/jquery-1.4.2.min.js\" target=\"_blank\"> http:\/\/code.jquery.com\/jquery-1.4.2.min.js<\/a><\/p>\n<p>You can round corner DIV, LI  tags and others<br \/>\nYou add a class where you want round corner<\/p>\n<p>Add this CSS:<\/p>\n<blockquote>\n<pre lang=\"groovy\">\r\n.cornerBox ul li.corner{zoom:1;border:0;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#1f858f',EndColorstr='#329ba6');background:-webkit-gradient(linear, left top, left bottom, from(#1f858f), to(#329ba6));background:-moz-linear-gradient(top, #1f858f, #329ba6);background:#1f858f;}\r\n.cornerBox ul div.outer {background:#fff;padding:0;margin-top:15px;}<\/pre>\n<\/blockquote>\n<p>Add this jQuery code:<\/p>\n<blockquote>\n<pre lang=\"javascript\"> $(function(){\r\n\t\t $('.corner').wrap('\r\n\r\n');\r\n\t\t$('.corner').corner(\"round 3px\").parent().css('padding', '1px').corner(\"round 3px\")\r\n\t\t    });<\/pre>\n<\/blockquote>\n<p>Hope this helps !!<\/p>\n<p>Umar Pahat<br \/>\numar@intelligrape.com<br \/>\nhttp:\/\/www.tothenew.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First download these files: http:\/\/code.jquery.com\/jquery-1.4.2.min.js You can round corner DIV, LI tags and others You add a class where you want round corner Add this CSS: .cornerBox ul li.corner{zoom:1;border:0;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=&#8217;#1f858f&#8217;,EndColorstr=&#8217;#329ba6&#8242;);background:-webkit-gradient(linear, left top, left bottom, from(#1f858f), to(#329ba6));background:-moz-linear-gradient(top, #1f858f, #329ba6);background:#1f858f;} .cornerBox ul div.outer {background:#fff;padding:0;margin-top:15px;} Add this jQuery code: $(function(){ $(&#8216;.corner&#8217;).wrap(&#8216; &#8216;); $(&#8216;.corner&#8217;).corner(&#8220;round 3px&#8221;).parent().css(&#8216;padding&#8217;, &#8216;1px&#8217;).corner(&#8220;round 3px&#8221;) }); Hope this [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":0},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/1172"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=1172"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/1172\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=1172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=1172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=1172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}