1

Here is my button in code:

<!-- CSS Code -->
input {
    height: 100px;
    width: 150px;
    font-size: 55px;
    text-align: center;
}

button {
    width: 87px;
    height: 38px;
    font-size: 12px;
}

<!--  HTML Code -->
<input type="submit" class="button" value="Student">

When I view this button on macbook and my windows laptop, they both look different.

Mac OS:

enter image description here

Windows 7:

enter image description here

As you can see the button in the Windows 7 version is much bigger with bigger font. I initially developed this on my Macbook. Do I need to change something in my code? Why is it doing this?

Iswanto San
  • 17,718
  • 12
  • 57
  • 79
Rob Avery IV
  • 3,372
  • 9
  • 46
  • 71

2 Answers2

1

It would look like on the Mac OS the font-size is being ignored, probably by design or override by some browser / OS settings.

If you remove font-size do the buttons now look the same in both browsers? If you need to specify the font size you might find some helpful advice over here.

Community
  • 1
  • 1
m.edmondson
  • 29,632
  • 26
  • 117
  • 199
0

Ttry this css code
.button {
width: 87px;
height: 38px;
font-size: 12px;
}

Your button css code is a tag, and not a class, so your class="Button" is not work, because no exist this css class

Lai32290
  • 7,390
  • 18
  • 61
  • 89