- From: Giovanni Campagna <scampa.giovanni@gmail.com>
- Date: Tue, 20 Jan 2009 18:48:21 +0100
- To: www-style@w3.org
Received on Tuesday, 20 January 2009 17:48:57 UTC
(sorry, i clicked "send" by mistake...) element { display:block; height:150px; width: 300px; border: 1px solid black; } element::inside { margin:15%; overflow:scroll; } That is, putting some space between border (maybe filled by background or border images) and content, that is clipped by overflow:scroll; (I'm not sure about this use case, though) - The other solution, already used by everyone, is simply to put <span> inside <td>, but this is not adviceable for many reasons, such as that it does not enforce separation from markup and presentation, and is not applicable when used with arbitrary XML, instead of (X)HTML (it would require to rebuild completely the application logic); moreover, only table-cells can contain text-aling: <string>, and many useful properties are ignored for inline blocks (forcing to use floats or inline-block) Waiting for your opinions, Giovanni
Received on Tuesday, 20 January 2009 17:48:57 UTC