Hi,
The following code will render as A B C (with whitespace between
each span element):
div
spanA/span
spanB/span
spanC/span
/div
While this code will render as ABC (without any whitespace between
each span element):
divspanA/spanspanB/spanspanC/span/div
Is there a CSS vendor extension
Jarek Foksa wrote:
Is there a CSS vendor extension in WebKit that would allow me to
explicitely specify whether whitespace between elements should be
preserved or not?
This may seem an odd question, but why would you want
a solution that will work in only one family of browsers ?
Philip
This may seem an odd question, but why would you want
a solution that will work in only one family of browsers ?
I'm writing a hybrid desktop application that uses WebKit rendering
engine, so I don't have to care for cross-browser compatibility.
On Mar 19, 2011, at 9:17 PM, Jarek Foksa wrote:
The following code will render as A B C (with whitespace between
each span element):
div
spanA/span
spanB/span
spanC/span
/div
While this code will render as ABC (without any whitespace between
each span element):
Perhaps something with the flex-box model might help you?
for example: http://help.dottoro.com/lckcfgbc.php
there are many more examples floating around.
Thanks, this seems to be the most elegant solution. The only caveat is
that the children must be either block-level elements or have display
So looks like it was an issue with overflow: hidden and text-indent.
IE8 still considers the element to be be large enough to enclose the text,
so the background-position: right 0 means the BG is off screen. Adding an
IE7 *+html {overflow:visible} fixed the issue for this browser.
Fixed version
Could float:left; each span.
Kevin
On Sat, Mar 19, 2011 at 6:16 AM, Jarek Foksa ja...@kiwi-themes.com wrote:
Perhaps something with the flex-box model might help you?
for example: http://help.dottoro.com/lckcfgbc.php
there are many more examples floating around.
Thanks, this seems to