Your code:
ul#menu-menu-1 > li,a:first {
margin-left: 0px;
}
You need to apply the first-child to the list element, and not to the link. You should also not have a comma. Comma indicates a new selection.
Try this:
ul#menu-menu-1 > li:first-child a{
maegin-left:0px;
}
*first-child does not work in ie8 and earlier.
Related Posts:
- JavaScript Loading Screen while page loads
- Click button copy to clipboard
- How to make html table vertically scrollable
- How to make Bootstrap carousel slider use mobile left/right swipe
- bootstrap 3 navbar collapse button not working
- How to center image in carousel
- Can Twitter Bootstrap alerts fade in as well as out?
- Play/pause HTML 5 video using JQuery
- jQueryUI dialog width
- Random background images CSS3
- How do I remove a box-shadow effect from an element when another element is hovered?
- Slide right to left?
- Automatically decrease font size for long words
- Best approach for loading a sidebar Only if the screen max-width is >900px?
- Twitter Bootstrap Use Collapse in Custom Post Type
- Stylizing external SVG files with jQuery and CSS
- Gravity list field override and adding javascript [closed]
- Add a class to posts in increments of 2
- Override theme style with other CSS on a specific page
- How can I make this custom menu work?
- Remove WordPress scripts
- How to make an WordPress element sticky? [closed]
- Accordion scrolls page too low after clicking on the title [closed]
- show/hide div with simple jQuery script [closed]
- How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?
- What is the propre way to include jQuery UI Datepicker’s CSS in plugin?
- Superfish Menu Not Loading
- Problem Implementing parallax in header of bp-default theme
- Is it OK combined wp-include js, jquery, css? [closed]
- jQuery Drill Down iPod Menu FOUC and Selecting Current page
- jQuery Validation plugin and Bootstrap 4 CSS classes
- Getting click on item to open closest relevant element (popup) with jQuery
- How Do I change Markup of a link in WordPress
- jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser
- Lightbox scroll page down on iPhone
- jQuery function not working in WordPress but works in jsfiddle
- Site images are fixed in front of my site content [closed]
- WP Media Uploader modal conflicts with Bootstrap modal
- How to update scrollbar when using Jetpack’s Inifnite Scroller?
- Hide input field when second input field is in focus
- change the icon of a custom post type in WordPress to use twitter boostrap
- Drop Down Category Menu Not Working
- controlling the showing and hiding of the website logo
- How do I add Javascript and CSS files into WordPress?
- can’t make jQuery work (change image on time interval) [closed]
- Adding placeholder attribute using Jquery
- wait() or sleep() function in jquery?
- Use images like checkboxes
- Ajax Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- TypeError: $(…).DataTable is not a function
- Enable & Disable a Div and its elements in Javascript
- Which selector do I need to select an option by its text?
- Check if inputs are empty using jQuery
- The ‘describe’ keyword in javascript
- WordPress Ajax URL for function in functions.php
- Move WordPress native javascript to bottom of page?
- Is it worth updating WP admin to jQuery 1.5?
- Proper way to load a single post via Ajax?
- Ajax not firing properly using Firefox, but works in Chrome
- Get ACF value in external jQuery document
- Adding jQuery dependency prevents my script from enqueuing/loading
- Gravity Forms not loading under https, jQuery is not defined
- Automatic jQuery accordion from header tags
- How to deregister a jquery version for a specific page?
- Enqueuing javascript files
- How to undo deregister script and use local versions?
- Can’t load a class into WordPress post editor’s content field
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- WordPress Multiple Navigation bars
- Searching multiple tags and adding jQuery dependant script onto page template?
- TinyMCE 4 remove/add attributes for all images
- Trouble adding inline style after jQuery in the footer!
- Reload wordpress shortcodes
- I’m trying to set the cookie to my site to button on click action ,it is working on when user logged in .When user logged out it’s not working
- Ajax form submit not working, returns 0
- Invoking Jquery in a Plugin
- Why not working jquery show() function in wordpress? [closed]
- registering new jQuery after wp_deregister_script() not working
- Displaying an image’s alt title and caption inside a fancybox window. Working, but showing the same alt and caption for each image
- Required radio button does not validate in form, when clicked through Javascript/jQuery
- Need workaround for insecure XMLHttpRequest endpoint request
- jQuery don’t working
- Load different post_thumbnail for smaller window width (jQuery,WordPress)
- Duplicate “default” form with jQuery
- Checking length of string in an admin area field onblur with jQuery
- Blur.js with WordPress – Enqueued, but server not finding file
- Submitting form from input[type=file] dialog box
- Uncaught TypeError: Cannot read property ‘replace’ of undefined
- Change the version of default style.css in wordpress
- Can’t Target a Widget’s Elements using jQuery
- Additional CSS for the nav menu
- Multiple recaptcha validation
- JQuery Login Dropdown not functioning in theme
- Retrieve customizer value using ajax or customizer api and print the value in theme
- Sorting UL Listing Within the TinyMCE Visual Editor in WordPress
- My .js file is getting a 404
- Contact Form 7 submission does not complete [closed]
- how to display post in jquery slider and carousel
- Carousel Hover Image
- What is calling jquery?