cl0udw4lk3r
cl0udw4lk3r

Reputation: 2733

Internet Explorer 9 input padding issue

this is my site; as i can see there's an input[type=password] with width: 100%; and padding: 0 5px;. It works perfectly in all the major browsers, but if u try to open the site on Internet Explorer 9, the input padding act in a strange way...

Upvotes: 1

Views: 3879

Answers (3)

Vivek
Vivek

Reputation: 13308

just include box-sizing: border-box; in the style

Upvotes: 0

Josh Campbell
Josh Campbell

Reputation: 458

You need to include a Document Type Declaration(dtd) statement at the top of the page. If excluded, IE will default to quirks mode.

   <!DOCTYPE html>

Upvotes: 1

cl0udw4lk3r
cl0udw4lk3r

Reputation: 2733

Solved by using box-sizing css property

Upvotes: 2

Related Questions