Title: Custom CSS class on Mobile
Last modified: April 22, 2018

---

# Custom CSS class on Mobile

 *  [hodor007](https://wordpress.org/support/users/hodor007/)
 * (@hodor007)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/custom-css-class-on-mobile/)
 * Hello,
 * how can i set a custom class on mobile menu?
 * that mean only a class on mobile, bcos i want other colors their.
 * Or its only possbile in the pro version?
 * thank u for u answer

Viewing 1 replies (of 1 total)

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/custom-css-class-on-mobile/#post-10207189)
 * Hi hordor,
 * The HTML output by your site is the same regardless of the width of the browser
   thats ‘looking’ at your site, so you can’t apply a class to just the mobile menu(
   the mobile menu is exactly the same as your desktop menu, it’s just styled differently
   with CSS depending on the width of your screeen).
 * You’d need to write some CSS which changes the colors how you wish, then wrap
   them in a media query so that your CSS only applies to smaller screens:
 * [https://www.w3schools.com/css/css_rwd_mediaqueries.asp](https://www.w3schools.com/css/css_rwd_mediaqueries.asp)
 * Regards,
    Tom

Viewing 1 replies (of 1 total)

The topic ‘Custom CSS class on Mobile’ is closed to new replies.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [megamenu](https://wordpress.org/support/users/megamenu/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/custom-css-class-on-mobile/#post-10207189)
 * Status: not resolved