code PHP :
function display_comparison_table() {
return ‘
<div class= »comparison-container »>
<h2 class= »glowing-title »>Why Stretch Ceilings?</h2>
<table>
<thead>
<tr>
<th>Features</th>
<th class= »highlight »>Stretch Ceiling</th>
<th>Drywall (Classic)</th>
</tr>
</thead>
<tbody>
<tr><td>Installation Time</td><td class= »highlight »>Few hours</td><td>Days / Weeks</td></tr>
<tr><td>Dust & Debris</td><td class= »highlight »>None</td><td>Significant</td></tr>
<tr><td>Humidity & Mold</td><td class= »highlight »>Resistant</td><td>High risk</td></tr>
<tr><td>Recyclable</td><td class= »highlight »>100%</td><td>No</td></tr>
<tr><td>Moving Furniture</td><td class= »highlight »>Not required</td><td>Full move needed</td></tr>
<tr><td>Durability</td><td class= »highlight »>High (Resistant)</td><td>Can crack</td></tr>
</tbody>
</table>
</div>’;
}
add_shortcode(‘comparison_table’, ‘display_comparison_table’);
Code CSS :
/* — STRUCTURE DU TABLEAU (votre design préféré) — */
.comparison-container { overflow-x: auto; margin: 30px 0; font-family: sans-serif; }
.comparison-container table { width: 100%; border-collapse: collapse; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.comparison-container th, .comparison-container td { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.comparison-container thead { background: #f8f9fa; }
.comparison-container th { font-size: 1.1rem; color: #333; }
/* La colonne mise en avant */
.comparison-container .highlight {
background: #e3f2fd;
color: #1976d2;
font-weight: bold;
border-left: 2px solid #1976d2;
border-right: 2px solid #1976d2;
}
/* — TITRE ANIMÉ NAVY BLUE VERS ORANGE — */
.glowing-title {
text-align: center;
font-size: 2.5rem;
font-weight: 800;
text-transform: uppercase;
/* Dégradé fluide */
background: linear-gradient(90deg, #000080, #FFA500, #000080);
background-size: 200% 100%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: shine 4s linear infinite;
margin-bottom: 30px;
}
@keyframes shine {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* Effet au survol des lignes pour plus de professionnalisme */
.comparison-container tr:hover { background: #fdfdfd; }
ne pas oublier le code court :
Why Stretch Ceilings?
Features
Stretch Ceiling
Drywall (Classic)
Installation Time Few hours Days / Weeks Dust & Debris None Significant Humidity & Mold Resistant High risk Recyclable 100% No Moving Furniture Not required Full move needed Durability High (Resistant) Can crack
Why Stretch Ceilings?
| Features | Stretch Ceiling | Drywall (Classic) |
|---|---|---|
| Installation Time | Few hours | Days / Weeks |
| Dust & Debris | None | Significant |
| Humidity & Mold | Resistant | High risk |
| Recyclable | 100% | No |
| Moving Furniture | Not required | Full move needed |
| Durability | High (Resistant) | Can crack |