Jump to content

Edit History

anluce45

anluce45


add information

J'ai ajouté ce code à mon css :

@media screen and (max-width: 640px) {
	.cms-id-23 table, tbody, tr, td {
		display: block;
		width: auto!important;
	}
}

Afin d'appliquer ce css seulement à mon cms qui porte l'id 23, mais ça ne prend pas en compte ma condition, et donc tous mes tableaux du site sont impactés.

Ai-je fait une erreur dans la syntaxe ?

 

anluce45

anluce45

Bonjour,

Problème résolu :

ajouter les lignes suivantes au fichier global.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 style="width: 90%; margin-left: auto; margin-right: auto;">

 

×
×
  • Create New...