• Home
  • Knowledge Base
    • Overview of Navi+
    • Step-by-step guide
    • Frequently Asked Questions (FAQ)
  • Case studies
  • Live demo
  • Install Navi+
  • Home
  • Knowledge Base
    • Overview of Navi+
    • Step-by-step guide
    • Frequently Asked Questions (FAQ)
  • Case studies
  • Live demo
  • Install Navi+
Home/Knowledge Base/Frequently Asked Questions/How to write a correct CSS code in Navi+?

How to write a correct CSS code in Navi+?

23 views 0

Written by khoipn
September 19, 2024

CSS is the key to every problem when you need to customize deeply for Navi+. Almost all interface things on Navi+ can be solved with CSS code. In Navi+, there are 2 levels of CSS:

Level 1: Internal Stylesheet / CSS (#SF-123456789)

This is the recommended level to use in most cases. When you write code in this box, the system automatically adds a prefix that is #SF-123456789 (that is your menu ID) to the beginning of CSS tags. This will ensure there is no conflict with all other interface components.

// Your CSS code
{
  margin-bottom: 64px;
}

@media only screen and (max-width: 600px) {
  {
    margin-bottom: 164px;
  }
}
----
// The CSS code after being compiled
#SF-123456789 {
  margin-bottom: 64px;
}

@media only screen and (max-width: 600px) {
  #SF-123456789 {
    margin-bottom: 164px;
  }
}

Level 2: Global Stylesheet / CSS

Unless you have experience with CSS, avoid abusing this box because everything will be pushed straight out in the form you write CSS code without any conflict protection layer.



Was this helpful?

Yes  No
Related Articles
  • Enhancing Navi+ with Custom CSS
  • Detailed support for Navi+ multilingual functionality
  • Guide to Adding a Loading Effect for Menus Replaced by a Navi+ Menu
  • Add Navi+ menus to your website directly
  • Add walk-through with Navi+ menus
  • Tips for fixing integration themes with Navi+

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

  What is Menu depth and how to use?

Why is Navi+ menu not displayed on my website?  

  • Copyright 2025 Navi+ | AIO Navigation. All Rights Reserved