This topic is locked
[SOLVED]

 Centering all elements in table not working

1/27/2016 9:27:06 AM
PHPRunner General questions
B
bioman author

Hi,

I am trying to center all headings and text in cells for an entire table but can't seem to get it to work. I tried the following css in the head of the page:

<STYLE>

td {

text-align: center;

}

th {

text-align: center;

}

</STYLE>

When I switch back to the visual view of the visual editor, everything is centered as I'd expect, but when I build the project, everything shows up as right-aligned. What is going on here? I can't think of any reason why this would occur. Any insight on how to center everything in a table would be much appreciated as I do not want to have to center each cell individually. Thanks,

Brett

HJB 1/27/2016

Brett,
don't do this: "When I switch back to the visual view of the visual editor", but generate the projet code from inside the HTML page view section and you'r done.

Sergey Kornilov admin 1/27/2016

Not enough info. If you need someone to take a closer look post it to Demo Account and contact support directly.

B
bioman author 1/27/2016

OK, I uploaded to Demo Account and am contacting support.



Not enough info. If you need someone to take a closer look post it to Demo Account and contact support directly.

Sergey Kornilov admin 1/28/2016

Here is the answer.
You can change the grid alignment by creating a custom style for it.

To do this open the "Style Editor" tab and press "Styles: modify ..." button.

Open "Custom CSS" tab and use the following code:

.rnr-b-grid *[class*="rnr-field-"]{

text-align: center;

}