HyperHacker Posted May 17, 2005 Posted May 17, 2005 I need to get the width of a particular cell of a table in Javascript. The problem is, the cell doesn't have a width specified; I just set the table to 90% of the page's width. Is there a way to do this? (Don't care if it doesn't work in IE...)
HyperHacker Posted May 17, 2005 Author Posted May 17, 2005 Basically just this:HTML:<table class="navbar" width=90%><tr><td><a href="main.php">Home</a></td>CSS:table.navbar {text-align: center;border-collapse: collapse;}.navbar td {border: 4px #204080 ridge;}.navbar a {display: block;text-decoration: none;}
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now