HighDots Forums  

Re: CSS Buttons

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


Discuss Re: CSS Buttons in the Cascading Style Sheets forum.



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

Default Re: CSS Buttons - 08-20-2003 , 08:50 AM






On 20 Aug 2003 06:29:23 -0700, timmy_dale12 (AT) hotmail (DOT) com wrote:

Quote:
I am trying to adjust the buttons with css. I can set the width of the
button but not the length, what am i doing wrong ?

CSS :

.short{
background-color: brown;
color:brown;
length: 50;
width: 80;
Generally speaking it is better to supply a URL rather than include a
listing of HTML/CSS, as that makes it easier to track down problems.
However in this case the following immediately leaps out:

- you haven't provided units for your measurements;
- length is not a CSS property;
- brown is not a standard colour keyword.
- having background-color and color the same is not generally very
useful.

Time to make friends with the CSS validator:
http://jigsaw.w3.org/css-validator/validator-uri.html

I have a page on CSS buttons that you may find helpful:
http://www.xs4all.nl/~sbpoley/webmat...ssbuttons.html

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #2  
Old   
Stan Brown
 
Posts: n/a

Default Re: CSS Buttons - 08-20-2003 , 02:12 PM






In article <emu6kv8t7umua7jsc2ro7orm6egtd09bjp (AT) 4ax (DOT) com> in
comp.infosystems.www.authoring.stylesheets, Stephen Poley
<sbpoley (AT) xs4all (DOT) nl> wrote:
Quote:
- brown is not a standard colour keyword.
True. This weekend I tried "brown" in a stylesheet, and Mozilla
rendered it just fine, roughly #963 I think. I bopped on over to the
W3C site to find the official definition of "brown", and was
surprised to see that it's not standard.

I've got used to Mozilla ignoring non-standard stuff, but this time
was different.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/


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

Default Re: CSS Buttons - 08-20-2003 , 06:03 PM



Stan Brown wrote:

Quote:
In article <emu6kv8t7umua7jsc2ro7orm6egtd09bjp (AT) 4ax (DOT) com> in
comp.infosystems.www.authoring.stylesheets, Stephen Poley
sbpoley (AT) xs4all (DOT) nl> wrote:
- brown is not a standard colour keyword.

True. This weekend I tried "brown" in a stylesheet, and Mozilla
rendered it just fine, roughly #963 I think. I bopped on over to the
W3C site to find the official definition of "brown", and was
surprised to see that it's not standard.
Some browsers support the X11 colors even though they are non-standard.
"brown" is in this group. One article on the subject:
<URL:http://www.daft.com/~rab/x11-colors.html>

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.



Reply With Quote
  #4  
Old   
Stan Brown
 
Posts: n/a

Default Re: CSS Buttons - 08-20-2003 , 10:13 PM



In article <3f43ff51$1 (AT) news (DOT) sihope.com> in
comp.infosystems.www.authoring.stylesheets, kchayka <kcha-ns-
yka (AT) sihope (DOT) com> wrote:
Quote:
Some browsers support the X11 colors even though they are non-standard.
"brown" is in this group. One article on the subject:
URL:http://www.daft.com/~rab/x11-colors.html
Nice reference; thanks! I won't use the names, but it's a good
compendium of popular color choices and I can use the hex.

Doug Jacobson also has some useful color charts, at
<http://www.hypersolutions.org/rgb.html>.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/


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.