Jun 10, 2016, 4:33 PM
[CLOSED] Strange Layout Problem
Hi all
I need to display a litte HTML Message in a Window...
This is the Window
How can I center the Content in this Window ?
An Answer before Sunday would be great, because we work this Sunday...
Thanks a lot
Peter
I need to display a litte HTML Message in a Window...
This is the Window
<ext:Window runat="server" ID="winLockDialog" Title="LockWarningTitle" BodyCls="lockMessage" Width="450" Height="185" Modal="True" Closable="False" Resizable="False" Hidden="True" ButtonAlign="Center" Layout="fit">
<Items>
<ext:Container runat="server" ID="taMessage" Border="false" MarginSpec="10 0 10 0" />
</Items>
<Buttons>
<ext:Button runat="server" ID="cmdLockCancel" Text="Cancel" Icon="Decline">
<Listeners>
<Click Handler="#{winLockDialog}.hide()"></Click>
</Listeners>
</ext:Button>
<ext:Button runat="server" ID="cmdLockAccept" Text="OpenReadOnly>" Icon="LockGo">
</ext:Button>
<ext:Button runat="server" ID="cmdLockTake" Text="LockBreak" Icon="LockBreak">
</ext:Button>
</Buttons>
</ext:Window>
The Message HTML looks like that <div style="width:400px; margin:0 auto;background-color:white;">
<table style="background-color:white">
<tr>
<td><div style="text-align: center"><b>Order is Locked</b><br />since<br />6/6/2016 9:04 AM<br />by</div></td>
</tr>
<tr>
<td><div style="text-align: center"><b>Christina X<br /></b>Phone +41611234567</div ></td>
</tr>
</table>
</div>
and I use this CSS for the White Window Background.lockMessage{
background-color: white;
}
The Message appears not Centered -> Attached Image...How can I center the Content in this Window ?
An Answer before Sunday would be great, because we work this Sunday...
Thanks a lot
Peter
Last edited by fabricio.murta; Jun 13, 2016 at 6:51 PM.