HighDots Forums  

Newbee. The best way to have rounded corners in CSS

alt.html alt.html


Discuss Newbee. The best way to have rounded corners in CSS in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bikseo
 
Posts: n/a

Default Newbee. The best way to have rounded corners in CSS - 09-07-2008 , 10:56 AM






I have tried to follow the way that this guy do it, but cant get it working
myself. I have only been testing it in explorer 7.

http://green-beast.com/experiments/c...rt_corners.php

Anyone who can get it to work.

Is there a better way to do rounded corners?



Reply With Quote
  #2  
Old   
Ari Heino
 
Posts: n/a

Default Re: Newbee. The best way to have rounded corners in CSS - 09-07-2008 , 12:31 PM






Bikseo kirjoitti:
Quote:
I have tried to follow the way that this guy do it, but cant get it working
myself. I have only been testing it in explorer 7.

http://green-beast.com/experiments/c...rt_corners.php

Anyone who can get it to work.

Is there a better way to do rounded corners?


One solution, although it has severe symptoms of "divitis". Workaround
to use multiple background images.

css:

#roundedBox {
background: #669900 url(tl.png) no-repeat;
width: 24em;
margin: auto;
}

#roundedBox div {
background: transparent url(tr.png) top right no-repeat;
}

#roundedBox div div {
background: transparent url(bl.png) bottom left no-repeat;
}

#roundedBox div div div {
background: transparent url(br.png) bottom right no-repeat;
padding: 30px;
}

html:

<div id="roundedBox"><div><div><div>
<p>Your content here.</p>
</div></div></div></div>

--
Ari
http://users.utu.fi/athein/


Reply With Quote
  #3  
Old   
Nico Schuyt
 
Posts: n/a

Default Re: Newbee. The best way to have rounded corners in CSS - 09-08-2008 , 02:32 AM



Bikseo wrote:
Quote:
I have tried to follow the way that this guy do it, but cant get it
working myself. I have only been testing it in explorer 7.
http://green-beast.com/experiments/c...rt_corners.php
Anyone who can get it to work.
Didn't try, but it should work.

Quote:
Is there a better way to do rounded corners?
http://www.roundedcornr.com/

Alternative:
http://www.html.it/articoli/niftycube/index.html
Example of result: http://www.html.it/articoli/niftycube/nifty2.html

--
Nico




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.