BoulderBum
Programmer
I'm using a technology that pumps out a repeated set of span tags that end up looking like:
It works great, but I tried to space out the area between the spans by setting its margin or padding in CSS (e.g. padding: 10px, 10px, 10px, 10px). Unfortunately, doing so makes it so that all of the elements end up on the same line, and 1/2 of the elements end up off the screen!
Naturally without the padding/margin, everything cleanly goes to a new line when it overflows the page.
What the heck is going on? Is there a way to add padding to the elements without seeing this quirk?
Code:
<span style="white-space:nowrap;">[b]content here[/b]</span>
It works great, but I tried to space out the area between the spans by setting its margin or padding in CSS (e.g. padding: 10px, 10px, 10px, 10px). Unfortunately, doing so makes it so that all of the elements end up on the same line, and 1/2 of the elements end up off the screen!
Naturally without the padding/margin, everything cleanly goes to a new line when it overflows the page.
What the heck is going on? Is there a way to add padding to the elements without seeing this quirk?