Nexus85 Posted September 24, 2020 Share Posted September 24, 2020 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? <html> <head> <style> #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; } </style> </head> <body> <table id="customers"> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr> <tr> <td>Berglunds snabbköp</td> <td>Christina Berglund</td> <td>Sweden</td> </tr> </table> </body> </html> Link to comment Share on other sites More sharing options...
musicmaster Posted September 27, 2020 Share Posted September 27, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now