Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 740 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Rounded Corners

Thread title: Rounded Corners
Closed Thread  
Page 2 of 3 < 1 2 3 >
    Thread tools Search this thread Display Modes  
02-10-2009, 11:28 AM
#11
LeeP is offline LeeP
Status: Member
Join date: Jan 2007
Location: West Midlands, UK.
Expertise:
Software:
 
Posts: 371
iTrader: 5 / 100%
 

LeeP is on a distinguished road

Send a message via MSN to LeeP

  Old

Originally Posted by mark. View Post
It doesn't even work in chrome, so a bit of useless code until all the browsers catch up.
Code:
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
Chrome uses webkit.

02-10-2009, 12:11 PM
#12
hjalmar is offline hjalmar
Status: Senior Member
Join date: Nov 2004
Location: Sweden
Expertise:
Software:
 
Posts: 857
iTrader: 11 / 100%
 

hjalmar is an unknown quantity at this point

  Old

Originally Posted by sfreitas View Post
Which is the best and correctly way of doing rounded corners?
Some websites say with images others without images and using only CSS..

Thanks
Depends on the design itself. Sometimes you can get away with semantic and clean markup while others has to be fluid and expandable in all directions, thats a ***** when it also has to have transparancy and some js animation inside and work in every single browser (I know i've just done it , and the markup is awful :P)

So to answer your question. NO! there is no correct way in general to code rounded corners.

02-15-2009, 03:19 PM
#13
ajtaylor is offline ajtaylor
ajtaylor's Avatar
Status: Junior Member
Join date: Mar 2007
Location:
Expertise:
Software:
 
Posts: 89
iTrader: 2 / 100%
 

ajtaylor is on a distinguished road

  Old

I still do not see what's so wrong with using images?
It's the simplest and most compatible method.

You only need the transparency for certain designs if you would like it to look neat on top of a background, but either way it's still an image and doesn't take long at all.

It might delay the loading time by 0.02 milliseconds if you are that fussy.

02-15-2009, 04:02 PM
#14
AndyR is offline AndyR
Status: Member
Join date: Jan 2009
Location: UK :D
Expertise:
Software:
 
Posts: 490
iTrader: 14 / 100%
 

AndyR is on a distinguished road

Send a message via MSN to AndyR

  Old

HTML Code:
<div class="box">
  <i class="t"><i></i></i>

  <!-- Content Stuff -->

  <i class="b"><i></i></i>
</div>
Code:
.box .t, .box .t i,
.box .b, .box .b i {
  background: url('corners.gif') no-repeat;
  display: block;
  height: 5px
}

.box .t i { background-position: 100% -5px }
.box .b { background-position: 0 -10px }
.box .b i { background-position: 100% -15px }

Why don't you use this? Better than using css3

02-15-2009, 05:10 PM
#15
Alan is offline Alan
Status: I'm new around here
Join date: Feb 2009
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

Alan is on a distinguished road

  Old

You need to use PNG with transparency because where ever you place it on the page, you don't want a background color where the rounded part is showing up. And GIF is being replaced by PNG anyway so that's why you use PNG.

02-21-2009, 03:05 AM
#16
DamienDarwick is offline DamienDarwick
Status: Junior Member
Join date: Feb 2009
Location: Charleston, SC
Expertise: vbulletin
Software: photoshop,dreamweaver
 
Posts: 41
iTrader: 0 / 0%
 

DamienDarwick is on a distinguished road

Send a message via AIM to DamienDarwick Send a message via MSN to DamienDarwick Send a message via Yahoo to DamienDarwick

  Old

Also I read somewhere (not sure I remember where now) but using CSS is not always a great option as certain browsers do not render CSS correctly. IE has problems rendering site with css properly so on some browsers the css rounded corners would not even have an effect or show up. Its always best to do it in images using transparent png's as suggested before hand.

02-22-2009, 09:52 PM
#17
den48248 is offline den48248
Status: Junior Member
Join date: Feb 2009
Location:
Expertise:
Software:
 
Posts: 38
iTrader: 0 / 0%
 

den48248 is on a distinguished road

  Old

It's not available in all browsers yet, but -moz-border-radius and -webkit-border-radius.

03-08-2009, 12:39 PM
#18
pendeweb is offline pendeweb
Status: I'm new around here
Join date: Mar 2009
Location:
Expertise:
Software:
 
Posts: 21
iTrader: 0 / 0%
 

pendeweb is on a distinguished road

  Old

use photoshop to draw rectangles with rounded corner

03-08-2009, 11:33 PM
#19
Cushioned is offline Cushioned
Status: Junior Member
Join date: Feb 2009
Location: USA
Expertise:
Software:
 
Posts: 34
iTrader: 0 / 0%
 

Cushioned is on a distinguished road

Send a message via AIM to Cushioned Send a message via MSN to Cushioned Send a message via Skype™ to Cushioned

  Old

I've never heard of using CSS for rounded corners. I'm sure it would be time-consuming and wouldn't be compatible with all browsers.

Just use images. It doesn't slow the site down much.. If any. Just draw a rounded box in Photoshop or whatever program you're using, make the white part transparent and save it.

It's rather simple and quick.

03-13-2009, 10:36 AM
#20
designbyblend is offline designbyblend
Status: I'm new around here
Join date: Mar 2009
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

designbyblend is on a distinguished road

  Old

I'd just stick with images.

If they're small, say 20x20 and only a few colours at most, then they'll load in no time.

It can be done with CSS - creating a stack of layers, center aligned to each other, each being 2px shorter than that below it, will create a rounded effect. I did this once but it messed up in other browsers.

Small images won't hurt, at all. And will save you time.

Closed Thread  
Page 2 of 3 < 1 2 3 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed