473,480 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CSS Buttons

hi

im am trying to make a soccer stadium with a table and some buttons :

<html>
<head>
<link rel="stylesheet" type="text/css"
href="h:diverse/stadion.css" />
</head>

<body>
<br><br><br><br>
<form name="select_stadion">
<table border ="1">
<tr>
<td></td>
<td><input type=submit value="" class="long"></td>
</tr>

<tr>
<td>
<input type=submit value="" class="short"></td>
<p></p>

<td align="center"><input type=submit value="" class="field"></td>
<td></td>
<td ><input type=submit value="" class="short"></td>
</tr>

<tr>
<td></td>
<td><input type=submit value="" class="long"></td>
</tr>
</table>
</body>
</html>

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;

}

..long{

background-color: brown;
width: 80;
length:130;
}

..field{

background-color: green;
length:120;
width: 80;
}
Jul 20 '05 #1
6 4387
On 20 Aug 2003 06:29:23 -0700, ti**********@hotmail.com wrote:
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/
Jul 20 '05 #2
ti**********@hotmail.com wrote:
.short{
background-color: brown;
color:brown;
length: 50;
width: 80;

}

50 what? Miles? Light years? Nanometers? Non-zero lengths in CSS must
always have a unit.

There's no CSS property length.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
In article <em********************************@4ax.com> in
comp.infosystems.www.authoring.stylesheets, Stephen Poley
<sb*****@xs4all.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.

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/
Jul 20 '05 #4
Stan Brown wrote:
In article <em********************************@4ax.com> in
comp.infosystems.www.authoring.stylesheets, Stephen Poley
<sb*****@xs4all.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.

Jul 20 '05 #5
ti**********@hotmail.com wrote:

im am trying to make a soccer stadium with a table and some buttons :
...


Are you working at Wembley?
/sorry: couldn't resist - I note your issues have been addressed by others.
--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #6
In article <3f********@news.sihope.com> in
comp.infosystems.www.authoring.stylesheets, kchayka <kcha-ns-
yk*@sihope.com> wrote:

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/
Jul 20 '05 #7

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

Similar topics

8
6614
by: Ralph Freshour | last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP? Thanks...
4
422
by: Bob Lehmann | last post by:
Hi, I pretty sure I've seen this problem addressed before, but I can't find any references. The short story is that I have I have multiple submit buttons on a page, each providing different...
2
2416
by: Aravind | last post by:
Hi folks. I have a form, frmHistory, which has 4 command buttons: Sort Title (cmdSortTitle), Sort Name (cmdSortName), Due Today (cmdDueToday), and Due List (cmdDueList). Sort Title and Sort...
5
5023
by: Lyn | last post by:
Hi, I hope someone can help. I have a main form which mostly fills the Access window. In the bottom half of this form I have a tab control to display various types of data related to the main...
0
8742
Denburt
by: Denburt | last post by:
This code is for a Toggle Button layout on a form, with this code you can set a number of toggle buttons visible and have multiple submenus that will stay hidden when not in use. My main menu is set...
4
1404
by: Ron | last post by:
I want to create 10 buttons on a form at runtime, the code below is only creating one button labeled 1. Any idea what I am doing wrong? Public Class Form1 Public code(10) As String Public...
3
1504
by: Ron | last post by:
Can anyone help me out? I am trying to add buttons numbered one through 10 at runtime to a form. I think they are getting added but they seem to be getting stacked one on top of each other. so...
2
5876
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
4
2500
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see...
2
2173
by: remya1000 | last post by:
hai i'm using Vb.net. i'm creating 64 dynamic created buttons of 8 rows and 8 columns. And i have 1 Go button, 1 textbox. those were created dynamically. if i enter one number inside textbox and...
0
7060
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
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6760
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
7022
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...
1
4799
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...
0
4501
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...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1311
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 ...
0
206
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...

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.