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
  • 18,263
  • 13
  • 58
  • 79
Rob Avery IV
  • 3,562
  • 10
  • 48
  • 72

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
  • 30,382
  • 27
  • 123
  • 206
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
  • 8,062
  • 19
  • 65
  • 99