Jump to content

(SOLVED) cellpadding not supported in HTML 5


Recommended Posts

The productinfo is a table:

it looks like this :

<center><span style="color: #ffffff;">Italiaanse droge mousserende wijn<br />Thalia Sparkling zero</span></center>

<table border="3" cellspacing="5" cellpadding="5" align="center">

<body> ..."

 

</table>

 

I use the attributes cellspacing and cellpading , but the latter is no more supported:

"Note: The cellpadding attribute is not supported in HTML5. Use CSS instead.

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_table_cellpadding"

 

How do I do that in the product-description (catolog-products description-section)?

 

 see for more info : http://test.italiaansewijnkopen.be/index.php

 

Tx

Edited by pat123 (see edit history)
Link to comment
Share on other sites

The productinfo is a table:

it looks like this :

<center><span style="color: #ffffff;">Italiaanse droge mousserende wijn<br />Thalia Sparkling zero</span></center>

<table border="3" cellspacing="5" cellpadding="5" align="center">

<body> ..."

 

</table>

 

I use the attributes cellspacing and cellpading , but the latter is no more supported:

"Note: The cellpadding attribute is not supported in HTML5. Use CSS instead.

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_table_cellpadding"

 

How do I do that in the product-description (catolog-products description-section)?

 

 see for more info : http://test.italiaansewijnkopen.be/index.php

 

Tx

What is quite strange is :

I use the syntax <table border="3" cellpadding="10" align="center">

so cellpadding 10px

it shows alright in the preview

But is not correctly interpreted in HTML (see screenshots in http://imgur.com/a/ekYf2)

 

I know this  is perhaps een heavy topic to solve , so maybe someone from prestashop-support can help me.

the cell-padding should be in an external file (CSS according to W3schools.com)and then somehow takrn into account when the productdescription is used. (internal css does nor work : all html-code ouside body is discarded)

Edited by pat123 (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

What is quite strange is :

I use the syntax <table border="3" cellpadding="10" align="center">

so cellpadding 10px

it shows alright in the preview

But is not correctly interpreted in HTML (see screenshots in http://imgur.com/a/ekYf2)

 

I know this  is perhaps een heavy topic to solve , so maybe someone from prestashop-support can help me.

the cell-padding should be in an external file (CSS according to W3schools.com)and then somehow takrn into account when the productdescription is used. (internal css does nor work : all html-code ouside body is discarded)

solved with defining in global.css a class "padded-table" :

}

/* table-css : celpadding in plain-HTML not valid */

table.padded-table td {padding:10px; }

}

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