Skip to content

Web Developer Blog

Padding within inputs breaks width 100%

Problem:
Padding within inputs breaks width 100%

Solution:

input {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

Reference:
http://stackoverflow.com/questions/1377719/padding-within-inputs-breaks-width-100

Author adminPosted on October 2, 2013October 2, 2013Categories CSS

Post navigation

Previous Previous post: Remove padding on Mobile
Next Next post: Get first day of previous month in PHP

Categories

  • Amazon EC2
  • Apache
  • Apple
  • Bootstrap
  • Browser
  • Campaign Monitor
  • CDN
  • CentOS
  • Chrome
  • Composer
  • Concrete5
  • cPanel
  • CSS
  • Debian Linux
  • DNS
  • Drupal
  • eDM
  • Facebook
  • FirePHP
  • Flash
  • git
  • Gmail
  • Google Apps
  • Google Map
  • Horde
  • Hosting
  • HTML
  • HTML 5
  • Image Optimization
  • iPad
  • Java
  • Javascript
  • jQuery
  • Linux
  • Mac
  • Magento
  • Materials
  • MetaWeblog
  • MODx
  • MySQL
  • Nginx
  • Node.js
  • Payment Gateway
  • Paypal
  • Perl
  • Photoshop
  • PHP
  • Plesk
  • Programming
  • Push Message
  • Putty
  • React Native
  • Security
  • SEO
  • Shopify
  • SSH
  • SSL
  • Sublime Text
  • Tumblr
  • Uncategorized
  • WampServer
  • Web
  • Web Design
  • Windows
  • Wordpress
  • XenServer












Web Developer Blog Proudly powered by WordPress