WebSite X5Help Center

 
Steen P.
Steen P.
User

Table Attributs I Html Object  en

Autor: Steen P.
Visitado 1011, Seguidores 1, Compartilhado 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?

Publicado em
3 RESPOSTAS - 1 CORRIGIR
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

Ler mais
Publicado em de Steve J.
Steen P.
Steen P.
User
Autor

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?

Ler mais
Publicado em de 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}

Ler mais
Publicado em de Steve J.