center div w/ variable width
center div w/ variable width
Out of context: Reply #11
- Started
- Last post
- 15 Responses
- insomnie0
Try this.
<script type="text/javascript">
window.onload=function() {
setWidth();
}function setWidth() {
var mywidth = document.getElementById('menu...
//alert(mywidth); //This would be the width of the menu.
document.getElementsByClassName... = mywidth; //Set the width for your wrap div to the width of the menu.
}
</script>