Jump to content

Custom Tables in the description


Recommended Posts

Hi, I want to insert a "custom" table into the description of my product. I copied this code from W3schools: Unfortunately It doesn't give the same result as on W3schools. What do I do wrong? 

#customers {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;

#customers td, #customers th {
  border: 1px solid #ddd;
  padding: 8px;

#customers tr:nth-child(even){background-color: #f2f2f2;}

#customers tr:hover {background-color: #ddd;}

#customers th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4CAF50;
  color: white;

<table id="customers">
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Berglunds snabbköp</td>
    <td>Christina Berglund</td>


Link to comment
Share on other sites

Are you serious that you copied the <html>,<head> and <body> tags into your description? If so you really need to start with a basic cursus html.

Prestashop filters your description after you save it and it will remove the style part. So your style part cannot  be saved this way. Instead you should put it in a css file. It can be one of the existing ones or a new one. But in the latter case you get some complication adding it to the loaded css files.

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...