RIRedinPA Posted November 11, 2008 Share Posted November 11, 2008 not sure if I phrased that correctly but if I have this css container: #frame1 { position: relative; width: 90%; padding: 0; } #frame1 table { width: 1200px; } how do I edit the table of the container frame1 in javascript? you can obviously do this: document.getElementById("frame1").style.display = "block" but how would I change the width of the table within the frame1 div? Thanks Quote Link to comment Share on other sites More sharing options...
rhodesa Posted November 11, 2008 Share Posted November 11, 2008 try var tables = document.getElementById('frame1').getElementsByTagName('TABLE'); tables[0].style.width = '300px'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.