Re: [selectors] [css3-content] The ::inside pseudo-element

(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