Posted By

neal_grosskopf on 11/25/08


Tagged

css html hacks


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

neal_grosskopf
SpinZ
bpryor
colingardom


How To Fix HTML Table Caption 1px Shift Bug


 / Published in: CSS
 

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

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.

  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; }

Report this snippet  

You need to login to post a comment.