problem with firefox table alignment

i got this web page i am trying to write and i got a problem when viewing it via firefox i.e works fine,
it seems that the text box in the table cause the alignment of the previous rows to go crazy.
if i remove the <INPUT TYPE=text name="day"> line it works fine.
attached is my HTML
please take in mind that i am a newbe regarding HTML and web scripting
thanks
ask.html
RadwareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ronan1979Commented:
<tr> is not a block but a table row

So you need to replace every 'block' by 'table-row' such as
  dayTr.style.display = 'table-row';


0
HicanCommented:
Add the following code and it looks a lot better already :) It has to do with the display property you set with your javascript code. The code below 'solves' it for now, but you might want to look at it to fit it to your needs:

</SCRIPT>
<style>
td
{
 display: inline-block;
 width: 200px;
}
</style>

</HEAD>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HicanCommented:
And like ronan said, you shouldn't use block on table rows, but the fix above (inline-block) is a fix 'for now'. Try to read more about the properties on the common sites like W3C:
http://www.w3schools.com/css/pr_class_display.asp

Sorry for spam btw :)
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ronan1979Commented:
sorry it doesnt work with IE

Better fix (tested FF and IE) :   dayTr.style.display = ''; //  reset it rather than 'block' or 'table-row'

0
ronan1979Commented:
2 solutions:

a) dayTr.style.display = ''; // set to inherited style
b) dayTr.style.display = 'auto'; // set to default
0
RadwareAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.