Log in

View Full Version : How Are These Buttons Rounded



tomyknoker
04-10-2007, 06:16 PM
Simple question but I'm curious if anyone can work out how the 'Browse' buttons are done on this page, they have rounded corners yet looking through the css I can't see any images that account for them... http://www.haveamint.com/forum/

Twey
04-10-2007, 06:22 PM
Because they're not done with CSS, they're single images.

boogyman
04-10-2007, 06:33 PM
I am sorry to tell you this but there are no rounded corners. Your eyes are deceiving you. I have "web developer tools" for Firefox, and I have diabled all images and that entity stays the same...

boogyman
04-10-2007, 06:34 PM
Because they're not done with CSS, they're single images.

They aren't images at all

Twey
04-10-2007, 06:51 PM
Yes they are (http://www.haveamint.com/images/btn-login.png).

boogyman
04-10-2007, 06:53 PM
he was asking about the "browse button" not the login

tomyknoker
04-10-2007, 07:20 PM
I am sorry to tell you this but there are no rounded corners. Your eyes are deceiving you. I have "web developer tools" for Firefox, and I have diabled all images and that entity stays the same...The corners are definitely rounded... look at the attached

boogyman
04-10-2007, 07:30 PM
look at that screen shot... it is not done through css or javascript

tomyknoker
04-10-2007, 07:40 PM
Um those buttons have rounded corners I'm afraid...

boogyman
04-10-2007, 07:48 PM
I agree it looks like they do have rounded corners, but I am telling you right now that it is not done thru css or javascript.

Twey
04-10-2007, 07:52 PM
In that screenshot, at least, the corners are slightly rounded, but only through JPEG compression.

tomyknoker
04-10-2007, 08:07 PM
Actually I think it is in the css... in the btn class...

mburt
04-10-2007, 08:27 PM
Either way, rounded or not, it has to be done with somesort of CSS styling.

boogyman
04-10-2007, 08:56 PM
This is some VERY creative use of borders.

Seperated (http://dividinglimits.com/test.html)

It is accomplished thru some negative margining. I am not entirely sure the specifics behind it all, but I am writing this site for WELL executed rounded corners

the first style creates the left top and left bottom "corners"
the second style creates the right top and right bottom "corners"

mburt
04-10-2007, 09:05 PM
That's going to be some script...

pcbrainbuster
04-10-2007, 09:22 PM
Well acutally I once found this site that had CUT parts of an image to make it change its style, it could be the same here... I'm going to llok for the site and if I find anything will report back...

mburt
04-10-2007, 09:24 PM
I made a rounded corners script (no images) with JavaScript, but I'm on my laptop, away from the house. So I can't get it.

pcbrainbuster
04-10-2007, 09:29 PM
http://www.cssplay.co.uk/boxes/snazzy.html -

I found a new site instead but am not sure ....

boogyman
04-10-2007, 09:30 PM
That's going to be some script...

below is the contents of the css that creates the corners.



a.btn
{
float: left;
margin: -3px 0 0;
padding: 1px 0;
color: #E9F08F;
background-color: #2E2E2E;
border-left: 1px solid #C0C0C0;
border-right: 1px solid #C0C0C0;
vertical-align: middle;
}

a.btn span
{
color: #E9F08F;
position: relative;
display: block;
padding: 0 5px 1px;
border: 2px solid #2E2E2E;
margin: 0 -1px;
}


the actual corners are the borders, and its a combination of margin and padding that creates the rest of the effect

techno_race
04-12-2007, 12:15 AM
There are NO rounded corners (as shown in the screenshot below).
943

They are NOT images:

<a href="/forum/pepper_development/" class="btn"><span>Browse</span></a>

mburt
04-12-2007, 12:18 AM
Just a really cool submit button :).