473,889 Members | 1,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 23101
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**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners 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
3375
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 'no' button. I need to get this to work cross browser and cross platform. Any information would be greatly appreciated.
1
3615
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 DrawRoundedRectangle(dblX As Double, dblY As Double, _ dblR As Double, dblW As Double, dblH As Double, _ dblThickness As Double, dblLineR As Double, dblLineG _ As Double, dblLineB As Double, boolFill As Boolean, dblFillR _ As Double, dblFillG As...
2
7900
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 that border is rounded so when I set my panels border stile to none, the panel appear to have the rounded border (that comes from the forms background image. This looks really nice, but the problem is that my forms can not be resizable then, since...
1
6001
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> block to display a background pic of a button and overlay text on it, but there will always be the time where the button background isn't big enough for the text and I'm
3
24337
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" value="value2" class="submit"> is it possible to define the css classes in such a way that the buttons look flat (no 3-D), with a 1pixel border and have rounded corners? This only has to work in IE6, for Windows 2000 and Windows XP.
0
2039
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 path, including the one from the GDI+ FAQ. It's a pretty simple path, and mathematically it looks just fine. When I apply it to a control though, I have two problems. First, the corners on the right side of the control are obviously not rounded...
8
2433
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. Granted they do use a transparent gif so they don't need multiple colored gifs, but I thought most developers shun the table rounded corner method. Any thoughts why? Is it easier to maintain or have a higher browser support? Thanks.
5
1519
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 entered in the TextBox. If the TextBox doesn't get validated, I want to display messages to the user which should be as precise as possible for the user to easily identify where he erred. This is how I did it: ...
1
2959
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" /> <meta name="description" content="Heaventure Sole-Proprietor"> <meta name="keywords" content="Heaventure, Company, Heaventure Company, Singapore" />
0
11190
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10442
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9607
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7993
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7150
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6029
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4647
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4251
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3256
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.