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. }
  6.  
  7. /* Target IE (or use IF IE statement ) */
  8. caption { _margin-left: -1px; }

URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=26

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.