Connexion
One Laptop per Child Logo
Google Search
Google

LabsSphère Catégories
Css (9)
Php (8)
Javascript (11)
Xoops (5)
Divers (1)
Design (10)

Using display:table has semantic effects in some screen readers


Auteur : Roger Johansson | 456 Berea Street.com
Date : 2011-10-11T21:51:39+02:00
Lectures : 1

Sometimes you may want the layout properties that HTML tables have, but you don't want the semantics of a table since you're not really working with tabular data. A couple of examples are creating equal height boxes and making an unknown number of items flexibly occupy all available horizontal space.



In situations like these you can use CSS to tell any HTML elements you want to behave like they were tables, table rows, and table cells by using a combination of display:table, display:table-row, and display:table-cell. You get the layout you want without littering your markup with tables that shouldn't be there. But there is a slight catch.

Read full post

Posted in , , .

Copyright © Roger Johansson






URL : http://labs.xoofoo.org/modules/planet/view.article.php/18320
Trackback : http://labs.xoofoo.org/modules/planet/trackback.php/18320

Les commentaires appartiennent à leurs auteurs. Nous ne sommes pas responsables de leur contenu.
Auteur Conversation