Title: Optimize HTML Code changing menu layout
Last modified: September 2, 2016

---

# Optimize HTML Code changing menu layout

 *  Resolved [alphageekuk](https://wordpress.org/support/users/alphageekuk/)
 * (@alphageekuk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/)
 * I have a horizontal tab like menu at the top of a site I am working on. The tabs
   have some white space between them (www.rejuven.co.uk).
 * When I switch on **Optimize HTML Code** the white space is removed and the tabs
   are rendered up against each other. This happens if I just use **Optimize HTML
   Code** and leave the JS and CSS switched off (testing the options in isolation).
 * I’ve looked at the page source and the .css looks the same with **Optimize HTML
   Code** switched on and off.
 * How to troubleshoot?
    -  This topic was modified 9 years, 9 months ago by [alphageekuk](https://wordpress.org/support/users/alphageekuk/).
      Reason: typo

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/#post-8133618)
 * can you upload a screenshot of your menu with and without AO HTML optimization(
   e.g. on [http://imgur.com/](http://imgur.com/) or the public folder of your dropbox-
   account) and post the URL’s to those images here alphageekuk?
 *  Thread Starter [alphageekuk](https://wordpress.org/support/users/alphageekuk/)
 * (@alphageekuk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/#post-8133851)
 * Hi Frank, even easier
 * Live Site (no AO Options switched on) [http://www.rejuven.co.uk/](http://www.rejuven.co.uk/)
 * Staging Site (only AO HTML switched on) [http://rejuven.staging.wpengine.com/](http://rejuven.staging.wpengine.com/)
 * Thanks.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/#post-8134465)
 * had a look at the HTML and can’t seem to find a structural difference. rather
   frustrating.
 * anyways; lacking a root cause + solution, you could as workaround either
    * not
   optimize HTML (this is least important anyway, it does not cut down on number
   of HTTP requests and the reduction of HTML size is not enormous) * add this CSS-
   rule somewhere (in a style block in a text widget for example):
 *     ```
       #navigation li{
       	margin-left: -1px !important;
       }
       ```
   
 * hope this helps,
    frank
 *  Thread Starter [alphageekuk](https://wordpress.org/support/users/alphageekuk/)
 * (@alphageekuk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/#post-8134526)
 * Thanks for taking a look Frank.
 * I’ll have a play with the CSS rule and see if it helps.
 *  Thread Starter [alphageekuk](https://wordpress.org/support/users/alphageekuk/)
 * (@alphageekuk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/#post-8134576)
 * Hi Frank, that fixed it. Thank you very much.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/#post-8134737)
 * you’re welcome, have a nice weekend! 🙂

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

The topic ‘Optimize HTML Code changing menu layout’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/optimize-html-code-changing-menu-layout/#post-8134737)
 * Status: resolved