Jump to content

créer un tableau responsive dans une page CMS


Recommended Posts

RÉSOLUE !

Pour rendre un tableau responsive , il faut effectuer deux étapes :

  • ajouter les lignes suivante au fichier themes/classic/assets/css/custom.css :
@media screen and (max-width: 640px) {
  table,
  tbody,
  tr,
  td {
    display: block;
    width: auto!important;
  }
}
  • Insérer la balise suivante dans le code source de la page CMS 
<table cellpadding="3" style="width: 90%; margin-left: auto; margin-right: auto;" border="2">

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...