Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="menu-main-menu-container"><ul id="menu-main-menu" class="menu"><li id="menu-item-352" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-32 current_page_item menu-item-352 active "><a href="">Home Page</a></li>
<li id="menu-item-349" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-349"><a href="">About Us</a></li>
<li id="menu-item-350" class="serv-nav menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-350"><a href="">Our Services</a><span class="btn-submenu"></span>
<ul class="sub-menu" style="display: none;">
	<li id="menu-item-353" class="quote-nav menu-item menu-item-type-post_type menu-item-object-page menu-item-353"><a href="">Quote</a></li>
	<li id="menu-item-362" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-362"><a href="">Our Work</a></li>
	<li id="menu-item-363" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-363"><a href="">Why Choose Us</a></li>
<li id="menu-item-351" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-351"><a href="">Blog</a></li>
<li id="menu-item-348" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-348"><a href="">Contact us</a></li>


                /*styling for menu on hover*/ 
.menu-main-menu-container li a:hover{
	color:#ffffff !important;

/*styling for the hover effects on all sub-menu of the current ancestor menu*/
.menu-main-menu-container li.current-menu-parent a:hover{
color:#fff !important;
text-decoration: underline;

/*styling for current sub-menu on click*/
.menu-main-menu-container .current-menu-parent li.current-menu-item a{
	color:#fff !important;

/*styling for all sub-menu of the current menu ancestor -not active*/
.menu-main-menu-container .current-menu-ancestor .menu-item a{
	color:#000 !important;

/*styling for effect on current menu and current ancestor menu item after a sub-menu has been clicked*/
.menu-main-menu-container li.current-menu-item a, .menu-main-menu-container li.current-menu-ancestor a{
    color:#fff !important;