Board Logo

Table Alignment
bfraser4070 - 10/20/2006 at 08:06 AM

I have include your calendar in a web page.

It is in a table cell.

There is a large space to the left of the input box.

Tried <TD align="left">

Any idea why this may be occurring?


tigra - 10/20/2006 at 10:42 AM

we'll need to see the live code to suggest the approach. please submit the support ticket attaching the zip package with all the files needed to reproduce the problem.

j_haus22 - 11/24/2008 at 05:00 PM

has there been a solution posted to this problem? if not, i am having the same issue and need a hand.

my code says:

Contact Date:(mm/dd/yyyy)<br><script language="JavaScript">new calendar(CAL_INIT1, CAL_TPL);</script>

there is large white space to the left of the calendar. i need it aligned left in this cell.

tigra - 11/25/2008 at 03:44 AM

see previous answer.
alternatively you can use DOM inspector (my favorite is firefox's firebug add-on) to determine where the gap comes from.

j_haus22 - 11/25/2008 at 03:56 PM

for future reference to anyone looking for a solution to this problem:

in tigra calendar pro, the input text box is written to the page inside a table in the file calendar.js as below.

document.write('<table border="0" cellpadding="3" cellspacing="0" align="center"><tr><td>'....

you may have to edit this to make the control fit into your own table style. to make it work in my table i changed align="center" to 'left' and the space that appeared before the control was gone (obviously).

as suggested by the admin you can use a DOM Inspector for Firefox(not usable with the newest version) or IE Inspector for IE to see the elements in your page.

Back to forum: