HighDots Forums  

Button with rounded corners

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Button with rounded corners in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Veerle
 
Posts: n/a

Default Button with rounded corners - 06-09-2006 , 09:02 AM






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.

Any ideas?

Veerle


Reply With Quote
  #2  
Old   
Johannes Koch
 
Posts: n/a

Default Re: Button with rounded corners - 06-09-2006 , 02:10 PM






Veerle wrote:

Quote:
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.
I don't think, you can. Don't you think your closed Win XP user group is
used to the XP look of a button?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Reply With Quote
  #3  
Old   
Veerle
 
Posts: n/a

Default Re: Button with rounded corners - 06-11-2006 , 06:49 AM



Johannes Koch schreef:
Quote:
I don't think, you can. Don't you think your closed Win XP user group is
used to the XP look of a button?
The users all have Windows 2000, so they are used to the classic
buttons. But for our application, we got screenshots and we have to
implement them as similar as possible. So if it's not possible to get
this done using just CCS, we will have to use image buttons and try to
do it like that. The greatest down side of this approach is that we
have to create an image for every button caption... That's why I don't
like it.



Reply With Quote
  #4  
Old   
Martin Eyles
 
Posts: n/a

Default Re: Button with rounded corners - 06-13-2006 , 09:40 AM



"Veerle" <veerleverbr (AT) hotmail (DOT) com> wrote

Quote:
Johannes Koch schreef:
I don't think, you can. Don't you think your closed Win XP user group is
used to the XP look of a button?

The users all have Windows 2000, so they are used to the classic
buttons. But for our application, we got screenshots and we have to
implement them as similar as possible. So if it's not possible to get
this done using just CCS, we will have to use image buttons and try to
do it like that. The greatest down side of this approach is that we
have to create an image for every button caption... That's why I don't
like it.
Try something like...

<button style="border: none">
<div style="width: 150px; height: 500px; line-height: 500px; color: white;
background: url('http://www.w3.org/StyleSheets/TR/logo-REC')">
click
</div>
</button>

This solution is not edorsed by W3C, they just had a handy image ;-)

Martin




Reply With Quote
Reply




Thread Tools
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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.