Hi,
On a HTML cell, I have the following
<div style="text-align:center">
<a href="#">User Action1</a>
<a href="#">User Action2</a>
</div>
I am expecting it to be displayed in the center of the form but they don't.
Is my html code correct?
HTML formatting question
HTML formatting question
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Re: HTML formatting question
I have tried many different ways, but it seems like Aware's system overwrites the center alignment and it becomes left justified.crisg0112 wrote:Hi,
On a HTML cell, I have the following
<div style="text-align:center">
<a href="#">User Action1</a>
<a href="#">User Action2</a>
</div>
I am expecting it to be displayed in the center of the form but they don't.
Is my html code correct?
Re: HTML formatting question
Hi Ben,BenHayat wrote:I have tried many different ways, but it seems like Aware's system overwrites the center alignment and it becomes left justified.crisg0112 wrote:Hi,
On a HTML cell, I have the following
<div style="text-align:center">
<a href="#">User Action1</a>
<a href="#">User Action2</a>
</div>
I am expecting it to be displayed in the center of the form but they don't.
Is my html code correct?
thanks. Happy that's its not me :p
Support, can you verify if this is how it should work? And why can't we use our own alignment if its an HTML cell anyway?
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Re: HTML formatting question
Stick a width on it & it'll work
It's something to do with the new responsive forms, you have to define a width in a div in pixels (percent doesnt work).
If you find a way of getting div wdith=% then let me know as I haven't cracked it yet.
Code: Select all
<div style="text-align:center;width:900px;">
<a href="#">User Action1</a>
<a href="#">User Action2</a>
</div>
If you find a way of getting div wdith=% then let me know as I haven't cracked it yet.
Rob . Aware 8.4 (build 2718), Developer Edition, using Linux, MYSQL
Re: HTML formatting question
Thanks Rob, that works!rob_h7 wrote:Stick a width on it & it'll work
It's something to do with the new responsive forms, you have to define a width in a div in pixels (percent doesnt work).Code: Select all
<div style="text-align:center;width:900px;"> <a href="#">User Action1</a> <a href="#">User Action2</a> </div>
If you find a way of getting div wdith=% then let me know as I haven't cracked it yet.
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Re: HTML formatting question
The problem is that the parent div of html cell has no specific width.
I solved overwritting the default settings whith this class:
Put this code in a css file and call it from startup.html
I solved overwritting the default settings whith this class:
Code: Select all
.x-autocontainer-form-item, .x-anchor-form-item, .x-vbox-form-item, .x-table-form-item { width:100%}
AwareIM 6.0 - build 2028 / MS SQL Server Express / Windows Server 2012R2
Re: HTML formatting question
Thanks Rafa, will give that a try as well!RafaMD wrote:The problem is that the parent div of html cell has no specific width.
I solved overwritting the default settings whith this class:Put this code in a css file and call it from startup.htmlCode: Select all
.x-autocontainer-form-item, .x-anchor-form-item, .x-vbox-form-item, .x-table-form-item { width:100%}
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme