How To Fix HTML Table Caption 1px Shift Bug

/ Published in: CSS
Save to your folder(s)

In Firefox and Internet Explorer, the table caption element will be a pixel narrower than in other browsers. Find out how to fix this annoying problem.

Copy this code and paste it in your HTML
  1. /* Target Firefox */
  2. @-moz-document url-prefix()
  3. {
  4. caption { margin-left: -1px; }
  5. }
  7. /* Target IE (or use IF IE statement ) */
  8. caption { _margin-left: -1px; }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.