473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Rounded button in a form ?

Mel
how can i have a rounded edge button in my forms using CSS ?

thanks
Mel
Jul 20 '05 #1
7 23067
Els
Mel wrote:
how can i have a rounded edge button in my forms using CSS ?


It should be rounded by default. You have make sure you
_don't_ use CSS on them.

As soon as you apply a border, it'll be square.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2
Els wrote:
Mel wrote:
how can i have a rounded edge button in my forms using CSS ?


It should be rounded by default.


It should? Where in the spec is that? Submit buttons in Mozilla
1.6/Win2k have squared corners, while those in Firefox/WinXP have
rouned ones; which browser is in violation?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
Mel wrote:
how can i have a rounded edge button in my forms using CSS ?


There is no standard way to do this. You can use a proprietary css
extension in Mozilla browsers.

input[type="submit"] {
-moz-border-radius: 20%; /* adjust to taste */
}
Demo:
http://www.bath.ac.uk/~cs1spw/demos/...er-radius.html

This proprietary extension is modeled on the yet-to-be-approved css 3
spec.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4
Els
Brian wrote:
Els wrote:
Mel wrote:
how can i have a rounded edge button in my forms using CSS ?


It should be rounded by default.


It should? Where in the spec is that? Submit buttons in Mozilla
1.6/Win2k have squared corners, while those in Firefox/WinXP have rouned
ones; which browser is in violation?


Sorry, my fault. With the word 'should' I didn't mean 'must'
'ought to' or 'has to'. More in a way of speaking. As in:
Your dad should be done working by now, go ask if he wants a
cup of tea.

I didn't know buttons in Moz on Win2K had square corners.
I answered out of my own experience (with XP), when I used
*{border:0px} in my stylesheet, and all of a sudden my
buttons were square.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #5
Els wrote:
Brian wrote:
Els wrote:
Mel wrote:

how can i have a rounded edge button in my forms using CSS ?
It should be rounded by default.

I didn't know buttons in Moz on Win2K had square corners.
I answered out of my own experience (with XP)


Then obviously your experience with computers hasn't been all that
long. It was only Windows XP that introduced the look of rounded
corners on buttons — it's just the system default style. All versions
of Windows prior to XP, since at least Win95 and WinNT4 all had the same
basic button style, with fairly square corners. Win 3.x and earlier had
somewhat rounded corners (very pixelated, just a simple mountain top
corner technique) but IIRC, didn't have a 3D look. I don't know about
other non-MS operating systems, I haven't used them often.

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #6
Els
Lachlan Hunt wrote:
> how can i have a rounded edge button in my forms using CSS ?

It should be rounded by default.
I didn't know buttons in Moz on Win2K had square corners.
I answered out of my own experience (with XP)


Then obviously your experience with computers hasn't been all that
long.


Correct. http://locusmeus.com/started.html ;-)
It was only Windows XP that introduced the look of rounded
corners on buttons — it's just the system default style. All versions
of Windows prior to XP, since at least Win95 and WinNT4 all had the same
basic button style, with fairly square corners.
I did use Win 95, but never paid attention to the looks of
buttons until I made my first form, March of this year.
Win 3.x and earlier had
somewhat rounded corners (very pixelated, just a simple mountain top
corner technique) but IIRC, didn't have a 3D look. I don't know about
other non-MS operating systems, I haven't used them often.


Me neither.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #7
Lachlan Hunt wrote:
[...] I don't know about
other non-MS operating systems, I haven't used them often.

Other OSes allow the user to select from a variety of "skins" some
which have square corners on the buttons, others which are round
everywhere, 3D look, flat look, etc.

--
jmm dash list at sohnen-moe dot com
(Remove .TRSPAMTR for email)
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeff Johnson | last post by:
Hi Everyone, I'm looking for information on how to create a chromeless window with rounded borders. The window will present a question to the user and they can respond by clicking a 'yes' or...
1
by: jimfortune | last post by:
The following Access VBA function creates a string that can be used in a pdf stream to draw or fill a rectangle of a given color with rounded corners: 'Begin code----------- Public Function...
2
by: Dino Buljubasic | last post by:
Hi, I have several panels that holds bunch of controls with information on my forms. My form has background image property set to an image that has borders defining where my panel comes and...
1
by: Astra | last post by:
Hi All I just want to confirm this once and for all. Is it possible to create a rounded button effect on a standard INPUT button/submit? I know there is the trick where you create a CSS <A>...
3
by: Veerle | last post by:
Hi, Suppose having a button or a submit button. Using the normal syntax, being, <input type="button" name="button1" value="value1" class="button"> <input type="submit" name="submit1"...
0
by: cmbardon | last post by:
I'm trying to create a form with some rounded controls, and I'm having some problems with the rounding not working correctly. I've tried a couple of different methods for creating the graphics...
8
by: TheCornjerker | last post by:
I've been looking into what method I should use to show rounded corners (and I've found a lot). My question is why does Google seems to mostly use the table method with an image in each corner. ...
5
by: rn5a | last post by:
A Web Form has a TextBox within a DataGrid wherein users are expected to enter only whole numbers. It should be validated so that the TextBox doesn't remain blank or any non-numeric data is...
1
crystal2005
by: crystal2005 | last post by:
Hi i encounterd some problem when i implement CSS for rounded Corner table. Need help please... :D <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.