Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Aug 1, 2008, 03:35 PM   #1
Fromethius
macrumors member
 
Join Date: Jun 2008
Location: Pennsylvania
Send a message via AIM to Fromethius Send a message via MSN to Fromethius
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 is offline   Reply With Quote
Old Aug 1, 2008, 03:38 PM   #2
dejo
macrumors Demi-God
 
dejo's Avatar
 
Join Date: Sep 2004
Location: On the roadside
Check this out:

http://www.the-art-of-web.com/css/border-radius/
dejo is offline   Reply With Quote
Old Aug 1, 2008, 03:59 PM   #3
angelwatt
macrumors 601
 
Join Date: Aug 2005
Location: Dayton, OH
Quote:
Originally Posted by dejo View Post
Too bad for the lack of support on it for now. Images seem to only decent way of doing this unfortunately. I've seen some wild CSS for creating interesting shapes, but usually not worth it.
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.
angelwatt is offline   Reply With Quote
Old Aug 1, 2008, 04:32 PM   #4
design-is
macrumors 6502a
 
design-is's Avatar
 
Join Date: Oct 2007
Location: London / U.K.
Another good resource:

http://www.cssplay.co.uk/boxes/
__________________
"The first rule of design - Steal!" Bob Gill, 2004
iPhone / MacBook Pro 17"
design-is.co.uk
dougbarned.co.uk
design-is is offline   Reply With Quote
Old Aug 1, 2008, 05:11 PM   #5
ChicoWeb
macrumors 6502a
 
ChicoWeb's Avatar
 
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
__________________
ChicoWeb is offline   Reply With Quote
Old Aug 1, 2008, 06:27 PM   #6
pinktank
macrumors 6502
 
Join Date: Apr 2005
there are also css generators that make you coded boxes
pinktank is offline   Reply With Quote
Old Aug 2, 2008, 02:58 AM   #7
MojoWill
macrumors 6502
 
Join Date: Jun 2008
Location: UK
Send a message via AIM to MojoWill Send a message via MSN to MojoWill Send a message via Skype™ to MojoWill
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 3G
Hosting & Design www.mostlymojo.com
My Personal Site www.mojowill.com
MojoWill is offline   Reply With Quote
Old Aug 2, 2008, 03:31 AM   #8
Fromethius
Thread Starter
macrumors member
 
Join Date: Jun 2008
Location: Pennsylvania
Send a message via AIM to Fromethius Send a message via MSN to Fromethius
I got it working use this code:

http://www.cssplay.co.uk/boxes/snazzy.html
Fromethius is offline   Reply With Quote
Old Aug 2, 2008, 11:29 AM   #9
design-is
macrumors 6502a
 
design-is's Avatar
 
Join Date: Oct 2007
Location: London / U.K.
Quote:
Originally Posted by Fromethius View Post
I got it working use this code:

http://www.cssplay.co.uk/boxes/snazzy.html
Glad to be of help
__________________
"The first rule of design - Steal!" Bob Gill, 2004
iPhone / MacBook Pro 17"
design-is.co.uk
dougbarned.co.uk
design-is is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump


All times are GMT -5. The time now is 08:15 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC