943,169 Members | Top Members by Rank

Ad:
Sep 4th, 2010
0

Rounded corners.

Expand Post »
Hi everyone...

I m designing the web-site right now.
But one proble is to make the corners rounded.

I dont want the css help which call the image as rounded corner....
Is there any css you know which directly rounded the corners in the page...


Thanks .
With regards...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
harsh93 is offline Offline
8 posts
since Aug 2010
Sep 4th, 2010
0
Re: Rounded corners.
Sure you can
1- include this file
HTML and CSS Syntax (Toggle Plain Text)
  1. <script type="text/javascript" src="shadedborder.js"></script>

2- write your Css as follow
HTML and CSS Syntax (Toggle Plain Text)
  1. <style type="text/css">
  2. /* <![CDATA[ */
  3.  
  4. /* One simple border definition */
  5. #my-border { padding:20px; width:30%; margin:200px auto; color:#fff; }
  6. #my-border, #my-border .sb-inner { background:#444 url(grad.png) repeat-x; }
  7.  
  8.  
  9. /* The following is just for making the page look "cool" - simply ignore it */
  10. html { font-family:sans-serif; background:#444; color:#ddd; }
  11. html, body { margin:0; padding:0; }
  12. p { margin:5px 0; }
  13. .headfoot { text-align:right; padding:10px; margin:0; }
  14. .headfoot h1 { font-size:1.3em; padding:0; margin:0; }
  15. .headfoot a { color:#fff; }
  16. #content { background:url(back.jpg); padding:10px 0; }
  17.  
  18. /* ]]> */
  19. </style>

3- make div including all page contents with id ="my-border"

4- write this code in body
HTML and CSS Syntax (Toggle Plain Text)
  1. <script language="javascript" type="text/javascript">
  2. var myBorder = RUZEE.ShadedBorder.create({ corner:8, shadow:16 });
  3. myBorder.render('my-border');
  4. </script>

attached
complete project
Attached Files
File Type: zip shadedborder-0.6.2.zip (19.3 KB, 39 views)
Reputation Points: 10
Solved Threads: 1
Newbie Poster
mohammed yaghi is offline Offline
9 posts
since Sep 2010
Sep 4th, 2010
0
Re: Rounded corners.
-moz-border-radius for FF
-webkit-border-radius for Chrome
there is none for IE
http://www.the-art-of-web.com/css/border-radius/

but alternatively you can use this CSS trick for rounded corners w/ no images
http://www.ajaxapp.com/2008/06/10/ro...ithout-images/

hope this helps
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Asiic is offline Offline
4 posts
since Sep 2010
Sep 5th, 2010
0
Re: Rounded corners.
IE is a crap browser, but there again we all know that right?

My solution would be:

HTML and CSS Syntax (Toggle Plain Text)
  1. -moz-border-radius: 4px;
  2. -webkit-border-radius: 4px;
  3. -o-border-radius: 4px;
  4. border-radius: 4px;

This should work in all browsers except IE. IE9 should support the last statement. The multiple div/tag solution for IE is horrible, although I have used it in the past. Anything that means you have to change the HTML or include presentational markup is evil in my book. I would suggest that you just ignore rounded corners for IE. Will it break the site? If all your corners are 'border-radiused' as opposed to static images or js-induced rounding, then the IE view shouldn't look too bad.
Sponsor
Featured Poster
Reputation Points: 1041
Solved Threads: 935
Sarcastic Poster
ardav is offline Offline
6,620 posts
since Oct 2006
Sep 8th, 2010
0
Re: Rounded corners.
thanks for your great reply regarding the rounded corner css..



Thanks again/...

ok
Byeee
Reputation Points: 10
Solved Threads: 0
Newbie Poster
harsh93 is offline Offline
8 posts
since Aug 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Problem with T35 Ads.
Next Thread in HTML and CSS Forum Timeline: Strict xhtml for visually impaired





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC