Title: If centered, everything should stack
Last modified: June 13, 2021

---

# If centered, everything should stack

 *  Resolved [katieingram](https://wordpress.org/support/users/katieingram/)
 * (@katieingram)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/if-centered-everything-should-stack/)
 * If the logo and text are centered, how can I then center the buttons and “remember
   me” checkbox so everything stacks?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fif-centered-everything-should-stack%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/if-centered-everything-should-stack/#post-14555200)
 * Hi [@katieingram](https://wordpress.org/support/users/katieingram/),
 * Looks like your theme css has all buttons floating left, this css should sort
   it:
 *     ```
       .age-gate input[type="submit"] {
           float: none;
       }
       ```
   
 * Hope that helps
 * Thanks
    Phil
 *  Thread Starter [katieingram](https://wordpress.org/support/users/katieingram/)
 * (@katieingram)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/if-centered-everything-should-stack/#post-14557144)
 * Hmmm, gives me an error message when I add this to Custom CSS in the Advanced
   section.
 * “There are errors in your CSS. You can save your changes, but there may be display
   issues.”
 * And, nothing changes on the front end.
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/if-centered-everything-should-stack/#post-14563836)
 * Hi [@katieingram](https://wordpress.org/support/users/katieingram/),
 * The “error” is probably because the css editor doesn’t like things like `input[
   type="submit"]`. But it turns out, that css really just doesn’t work!
 * Give this a go instead, I have tested it with a css injector:
 *     ```
       .age-gate-submit-yes,
       .age-gate-submit-no {
           float: none;
       }
       ```
   
 * If it’s still not playing ball, put an `!important` after it:
 *     ```
       .age-gate-submit-yes,
       .age-gate-submit-no {
           float: none !important;
       }
       ```
   
 * Make sure you clear any caches if you have them after making the change too.
 * Thanks
    Phil
 *  Thread Starter [katieingram](https://wordpress.org/support/users/katieingram/)
 * (@katieingram)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/if-centered-everything-should-stack/#post-14575942)
 * You’re a genius! I used the first example without the important. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘If centered, everything should stack’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [katieingram](https://wordpress.org/support/users/katieingram/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/if-centered-everything-should-stack/#post-14575942)
 * Status: resolved