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
https://forums.phpfreaks.com/topic/259421-css-to-size-button/
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
https://forums.phpfreaks.com/topic/259421-css-to-size-button/#findComment-1330558
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.