LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   CSS to blame for gaps between squares? (https://www.linuxquestions.org/questions/programming-9/css-to-blame-for-gaps-between-squares-4175495253/)

Steve W 02-17-2014 12:35 PM

CSS to blame for gaps between squares?
 
Sorry, redundant thread. Problem solved - a couple of minutes after posting this. Isn't that always the way?!

Doc CPU 02-18-2014 05:56 AM

Hi there,

Quote:

Originally Posted by Steve W (Post 5119361)
Sorry, redundant thread. Problem solved - a couple of minutes after posting this.

then would you be so kind and tell us anyway? Maybe someone else has a similar problem now or in the future, and might be happy to find a solution right here. My guess is: Whitespace between block elements. Or reserved space for descenders, which can be fixed with vertical-align or display:block for the elements in question.

Quote:

Originally Posted by Steve W (Post 5119361)
Isn't that always the way?!

Very often, yes. That's because if you're going to describe a problem, you've got to think about it again, clearly and step by step. Doing that is always a good step toward the solution.

[X] Doc CPU

Steve W 02-22-2014 05:16 AM

The problem was that I had designed an HTML table for producing a crossword grid. It looked okay on the screen, but when I tried to PDF it or produce a PS file, there were small gaps between some of the squares. The problem was solved when I realised I needed a "border-collapse:collapse" in the CSS affecting the table. Then the gaps disappeared on the PDF.


All times are GMT -5. The time now is 10:15 AM.