|
Posted by Luigi Donatello Asero on 05/29/05 05:28
"David Dorward" <dorward@yahoo.com> skrev i meddelandet
news:d7b543$na5$4$8302bc10@news.demon.co.uk...
> dmcconkey@yahoo.com wrote:
>
> > I suppose that's what I was asking to begin with. What's a practical
> > example of CSS tables in HTML? Examples given above were 1) for markup
> > languages lacking tabular elements, or 2) to emulate a tabular look for
> > non-tabular data.
>
> Oh, and I've just remembered a third reason.
>
> If the layout of tables is defined with CSS, then you can style a data
table
> so it doesn't look like a table. Thus you might have a table such as:
>
> <table>
> <tr> <td> <img> </td> <td> caption </td> </tr>
> <tr> <td> <img> </td> <td> caption </td> </tr>
> <tr> <td> <img> </td> <td> caption </td> </tr>
> </table>
>
> And then style it:
>
> tr {
> display: inline-block;
> border: solid black 1px;
> padding: 1ex;
> margin: 1ex;
> }
>
> td {
> display: block;
> }
>
> To have a number of images, each with a caption below, arranged side by
side
> and flowing onto new lines as needed.
That is the same as to use tables for the layout instead of using them only
for tabular data, isn΄t it? Is that allowed?
What about mixing a table with an unordered list as I tested at
https://www.scaiecat-spa-gigi.com ?
--
Luigi ( un italiano che vive in Svezia)
https://www.scaiecat-spa-gigi.com/
https://www.scaiecat-spa-gigi.com/
Navigation:
[Reply to this message]
|