OsakaWebbie
Programmer
Can someone see why a couple of buttons on my page are not appearing centered? The real site is password protected, but I made a super-simplified HTML file of only the relevent parts of the page for you: (Yes, it looks useless, but trust me, there is a lot more on the real one!)
It seems so straightforward - there is this markup:
And in (which is called in contacts.css) there is this CSS:
I have verified that the "body#index #buttonsection" selector in that file does operate on the right element (I added a gaudy border temporarily to test), so that's not the problem. Anybody see what I'm missing?
It seems so straightforward - there is this markup:
Code:
<div id="buttonsection">
<button class="simpleonly" id="showadvanced" type="button">Advanced Search Options</button>
<button id="search" type="submit">Search!</button>
</div>
Code:
body#index #buttonsection { text-align:center; }