So i'm using the jquery-ui accordion widget and I wanted to adjust the width. When I internally style the for it, it works. but when i do it externally it doesn't. If someone could help me understand why it doesnt work externally, that would be nice. Also, if someone could help me vertically center the widget, it'd be the best christmas ever. code is below:
HTML (with internal CSS that works):
<body>
<div class="container">
<div id="accordion" style="width: 500px; margin: 0px auto;">
..headers and divs for panels and content
</div>
</div>
</body>
external CSS that doesn't work:
#accordion {
width: 500px;
margin: 0px auto;
}
Thanks in advance for all the help!