-1

Here is the HTML:

<input type="submit" name="submit" value="SHOUT" />

Here is the CSS:

input[type="submit"] {
    height: 50px;
}

The problem is that it doesn't amend the size of the submit button. Could there be any reason for this?

jimbo123
  • 289
  • 3
  • 7
  • 13

2 Answers2

-2

The same code you provided seems to work fine. Did you add reference to css file properly?

input[type="submit"] {
    height: 150px;
}
<input type="submit" name="submit" value="SHOUT" />
Vim
  • 559
  • 5
  • 16
-2

Some possible solutions:

  • set the value to important : height:50px !important;
  • check that nothing else overwrites the value in CSS. Typically use Firebug or similar to check this in your browser window (see here).
  • Set a min-height value and/or a max-height value to the same as the standard height.

I can't give you more specific advice without a link or a fiddle to play with.

Martin
  • 22,212
  • 11
  • 70
  • 132