Jump to content

CSS to size button


phppup

Recommended Posts

I have a table with a 3 buttons and want to control the button size uniformly thru CSS.

 

My code below isn't working.  Where have I gone wrong?

 

 

<html>

<head>

<style type="text/css">

 

input[type=button]

{

width: 20em;

}

 

 

</style>

</head>

 

 

<table>

<input type='button'>

 

 

 

 

 

Link to comment
Share on other sites

Sorry to disappoint you, but this time, that IS the ENTIRE page with the ENTIRE code content.

All on page (for now).

With three lines of CSS.

Shouldn't it work the same as on a page with miles of code??

Of course it should.  But it doesn't!  WHY?

Link to comment
Share on other sites

OKAY... so i was 'playing' the other evening, and i DID add a 'CLASS' to one button.  After doing this, it accepted the size changes PERFECTLY.

 

I have to assume the group would react similarly.

 

So why will they respond in the CLASS (and in the tagline) but NOT when cirected by TYPE?  Why does THAT work on the webpage (see above for the link) but NOT in my own browsers (which I attempted on two versions of IE running two different operating systems??

 

Any answers?

 

(could it be because I'm on the east coast??  LOL)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.