|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
macrumors member
|
Best way to achieve rounded rectangles on an html site
Hello,
For the site I am working on I am currently using tables to display everything. Although it looks nice, I think it would look better with rounded rectangles (what doesn't?). All the methods I have found so far requiring using photoshop and generating around 9 images (the four corners, the 4 sides, and a dot) and then positioning them using fine css (which isn't necessarily a problem) and html divs and so far I have not gotten any to work properly. I'm not looking for a fancy orange and pink striped rounded rectangle with shadows, but rather, a simple black or maybe light or dark grey normal table, except with curved edges. Hopefully this isn't too difficult? |
|
|
|
| Fromethius |
| View Public Profile |
| Find More Posts by Fromethius |
|
|
#2 |
|
macrumors Demi-God
Join Date: Sep 2004
Location: On the roadside
|
|
|
|
|
|
|
#3 | |
|
macrumors 601
Join Date: Aug 2005
Location: Dayton, OH
|
Quote:
http://www.howtocreate.co.uk/tutorials/css/slopes http://www.csstextwrap.com/ http://infimum.dk/HTML/slantinfo.html http://tantek.com/CSS/Examples/polygons.html (shapes done with CSS) I'm personally hoping SVG will catch on more. It's a great way to have graphics and they're scalable. |
|
|
|
|
|
|
#4 |
|
macrumors 6502a
Join Date: Oct 2007
Location: London / U.K.
|
__________________
"The first rule of design - Steal!" Bob Gill, 2004 iPhone / MacBook Pro 17" design-is.co.uk dougbarned.co.uk |
|
|
|
|
|
#5 |
|
macrumors 6502a
Join Date: Aug 2004
Location: California
|
You can use the pseudo tags of :before and :after on a div. However you'll need an IE hack, but it's a fairly streamlined approach in my opinion.
Also, you can use background positioning, so only one image is used. For example, this site : http://cwfaction.chicodev.com/announ...still-you.html, the left hand navigation is built from one image: http://cwfaction.chicodev.com/ui/ima...sidebar-bg.gif Or you could use a combination of both
__________________
C H I C O W E B D E S I G N
C H I C O H O S T I N G Content Management Solutions - M A V I E O Design Studio |
|
|
|
|
|
#6 |
|
macrumors 6502
Join Date: Apr 2005
|
there are also css generators that make you coded boxes
|
|
|
|
|
|
#7 |
|
macrumors 6502
|
you might find this tutorial on one of my sites useful!
http://e107designs.org/e107_plugins/...php?content.47
__________________
17" MBP 2.4Ghz SR, 4GB RAM 8GB iPhone 3GHosting & Design www.mostlymojo.com My Personal Site www.mojowill.com
|
|
|
|
|
|
#8 |
|
Thread Starter
macrumors member
|
|
|
|
|
| Fromethius |
| View Public Profile |
| Find More Posts by Fromethius |
|
|
#9 | |
|
macrumors 6502a
Join Date: Oct 2007
Location: London / U.K.
|
Quote:
__________________
"The first rule of design - Steal!" Bob Gill, 2004 iPhone / MacBook Pro 17" design-is.co.uk dougbarned.co.uk |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|