Hello -
I have one javascript issue and I hope someone can help me. I need to add javascript code to the code below so that the table table1 (red table) takes whole area of the cell cell1. Also Table table1 should resize itself to take all space of cell1 when we resize browser window.
Here is the html code:
Thanks for your answer .
Well, I need to do those things using javascript, that's why I posted here.
And I am not really good in JS so every help is appreciated.
Thanks for your answer .
Well, I need to do those things using javascript, that's why I posted here.
And I am not really good in JS so every help is appreciated.
What things?
You'll have to be more specific for us to help.
Hello -
I have one javascript issue and I hope someone can help me. I need to add javascript code to the code below so that the table table1 (red table) takes whole area of the cell cell1. Also Table table1 should resize itself to take all space of cell1 when we resize browser window.
It appears you are using tables, and nested tables at that, for page layout.
That is a huge NO-NO.
For one thing, your code will end up bloated. Just look at how much code you have already in the <body> and you still haven't displayed any content in it.
You should be using semantically correct elements for markup and css for styling. You shouldn't need javascript at all for what you want to do. Plus what's your plan B for browsers with javascript disabled in them?
Using tables for layout will result in cumbersome, bloated and difficult to maintain code. Life is so much easier with semantically correct elements styled with css.
Bookmarks