November Happy Hour will be moved to Thursday December 5th.

Table - Cell Alignment

Vote:
 

Hi,

i have a celltable with an image.

I wanto to change the alignment of the cell.

In the text editor:  

right click -> cell properties -> align right.

It's work.

But when i save and publish the alignment doesn't work. (image to left).

The generated html seems correct:

<TABLE border=0 width="100%">
<TBODY>
<TR vAlign=top>
<TD align=right><IMG style="WIDTH: 111px; HEIGHT: 110px"  src="xxx"></TD>

Suggestions?

#34083
Oct 28, 2009 11:32
Vote:
 

Anything blocking it to the right? We would need to see the rest of your code (both html and css), to be able to help.

#34109
Oct 28, 2009 18:00
Vote:
 

Hi

<TABLE border=0 width="100%" height=158>
  <TBODY>
    <TR vAlign=top>
      <TD><P align=center>Test1</P></TD>
      <TD align=right><P align=right><IMG alt="" src="/Documents/Environment/M%c3%a4rkning/EUeko.png"></P></TD></TR>
    <TR vAlign=top>
      <TD><P align=center>Test2</P></TD>
      <TD>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</TD></TR></TBODY></TABLE>

#34422
Nov 06, 2009 15:03
Vote:
 

The image gets displayed to the left of Test1? Sounds like the image has the float property set to left. To check this use a tool like Firebug to inspect the image.

#34423
Nov 06, 2009 15:07
Vote:
 
#34424
Nov 06, 2009 15:07
Vote:
 

Need to see the CSS for site (view mode), since it looked okay in the editor?

#34427
Nov 06, 2009 15:13
Vote:
 

It was the CSS file :-)

p img {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}

#34428
Nov 06, 2009 15:28
Vote:
 

Ah there you go, glad you found out of it :).

#34429
Nov 06, 2009 15:30
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.