Skip to content

What am I missing with this white border around the entire table image? #456

Answered by machow
HansMellman asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, removing the padding around the table is a bit tricky, due to various quirks across browsers (and more quirks in how they run
in headless mode). I think in this case, the border is likely due to two pieces:

  • Browsers by default put a small amount of padding, etc.. around divs (or on the inside of the <body> )
  • We have a small "crud_factor" variable that adds a few pixels width. The main reason for this is that...
    • borders can affect the width of elements
    • if we make the screen too narrow, then text can end up wrapping

I think some of this could be fixed (e.g. by disabling some of the body padding, margins, etc.. via css, and maybe using the css border-box setting). But it's a bit fi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HansMellman
Comment options

Answer selected by HansMellman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants