WebSite X5Help Center

 
Steen P.
Steen P.
User

Table Attributs I Html Object  en

Author: Steen P.
Visited 991, Followers 1, Shared 41  

If I put a table in the html-object, attributs like 'align', cellpadding' and 'cellspacing' dosn't work at all.

I can't use the special danish letters too in the table (i html object). V8 had not those problems.

I would like to set text in a cell horizontal aligned in the center of the cell.

Any idea?

Posted on the
3 ANSWERS - 1 CORRECT
Incomedia
Steve J.
Incomedia

Hi Steen,

Please note that v9 uses HTML5 so some tags are not supported (ie: FONT FACE, ALIGN, ...). Let me know  if it solves

Read more
Posted on the from Steve J.
Steen P.
Steen P.
User
Author

Hi Steve

Thanks for your answer. It tells me what the problem is. But then I have to write some css. But must I put it in the html-objects: expert/css code or make a css-file and link to that file in the objects: expert/Files linked to html code?

If I must use the last option I must of course make the css-file. But how much must I write in the expert/css code? Can I use only:

text-align : center;

or is all the css-code: 'Style Type . . . . . . ' etc. necessary?

Read more
Posted on the from Steen P.
Incomedia
Steve J.
Incomedia

You can create a CSS file to link or you can add the CSS code directly into the HTML Code Object. You can choose what you prefer. It is the same you did in version 8. The only difference is that now it is HTML5 and not XHTML 1.0. 

So, instead of using ALIGN tag, you need to add a CSS code text-align: left defining the ID. Here are some examples:

body {text-align: left}

.myClass {text-align: left}

Read more
Posted on the from Steve J.