Change the rule on your <a>
element from:
.navigation ul a { color: #000; display: block; padding: 0 65px 0 0; text-decoration: none; }
to
.navigation ul a { color: #000; display: block; padding: 0 65px 0 0; text-decoration: none; width:100%; text-align:center; }
Just add two new rules (width:100%;
and text-align:center;
). You need to make the anchor expand to take up the full width of the list item and then text-align center it.
Related Posts:
- CSS text-align: center; is not centering things
- Making a
- How to change the color of an svg element?
- How to implement max-font-size?
- @Media min-width & max-width
- How do I center this form in css?
- How can I replace text with CSS?
- Bootstrap 4, How do I center-align a button?
- How do I horizontally center a span element inside a div
- What does an asterisk (*) do in a CSS selector?
- height style property doesn’t work in div elements
- Why Css text-transform capitalize not working?
- Prevent body scrolling but allow overlay scrolling
- Bootstrap change carousel height
- CSS/HTML: Create a glowing border around an Input Field
- What is the difference between Normalize.css and Reset CSS?
- CSS force image resize and keep aspect ratio
- CSS “and” and “or”
- Removing whitespace between HTML elements when using line breaks
- Why are my divs overlapping?
- Child themes CSS priority problems without using !important
- Cache busting CSS files other than style.css
- How do I add a search bar to my header?
- Sanitize User Entered CSS
- How can I test how fast or slow my wordpress website it?
- Stylesheet switching and caching
- Check and dequeue if multiple stylesheets exists using wp_style_is?
- How to Edit the Order of Global Colors in Elementor? [closed]
- plugin css is not being applied to the page?
- WordPress & W3C CSS Validation
- CSS in child theme not getting loaded
- TwentyTwelve versioning
- How to highlight all current categories when viewing a single post?
- Duplicate attribute class causing site validation error
- Assets in css dont link properly in pages other than home
- Do I have to use a WordPress specific CSS reset, or is a normal, Eric Meyer style CSS reset fine?
- How/where to add additional stylesheet to WP
- How the Css File is Linked without calling it in header.php?
- Is there a filter for editor-style.css file?
- Show enqueued CSS and Script in custom header
- How to insert html/css/javascript code to wordpress plugin
- Save changes in CSS after removing Menu from specific page
- Move the position of menu item [closed]
- Pure CSS to “float” to the right the number of children of an admin_bar child node
- WordPress adding inline style can’t remove it
- Trying to figure out why my child theme is trying to access a file that doesn’t exist
- Title has word broken when viewed in mobile [closed]
- How to edit the default icon of Add Media button?
- Advanced: understanding wp_add_inline_style function
- Hide Image On WordPress On Single Page [closed]
- WordPress code editor messed up my code!
- Ordering stylesheet above using functions.php
- How to change “““ to “““?
- How to remove parent style.css from the header
- enqueing Javascript and CSS
- Acessing HTML element with no specific tag on it [closed]
- Order of WP page load (including widgets, php, plugins, media, templates, and CSS) [duplicate]
- CSS is not loaded on mobile devices
- Fixed height of the_content()
- How can I add inline CSS for each image?
- Creating a second menu on Twenty Eleven aligned right from the first
- Customizing WP-syntax to get custom colors
- I have html form and need to make it work in text editor on template. Only problem is it has .sccs styling file
- How to insert the current user’s role into the body class in the admin backend
- underscores theme – sass folder structure vs smacss
- Unused CSS in WordPress Plugins
- I have text on a banner on my wordpress site and I am unable to get rid of it? Would appreciate any help or advice :-)
- How to change specific menu tab from left to right in My Home Theme?
- Admin bar default color scheme for nonregistered/nonlogged users
- Lines of CSS only being delivered while logged in
- Twenty Fourteen: Unsticky header after making header bigger
- How to display javascript banner in website header?
- Loading css files conditionally useful?
- Sidebar at bottom however I have completely replaced theme folder back to original code
- Site not 100% responsive
- Dropdown menu’s fighting with each other [closed]
- Customizer: CSS changes not persistent
- Move both sidebars more to their sides [closed]
- Scale An Image Thumbnail
- Which hook to use to add notification message at beginning of my
- single.php doesn’t getting style
- Theme looks ugly – FOUC – stylesheets loaded in footer
- How to make widgetized footer styles be inherited from body?
- custom css in admin panel by user id
- How to customize a theme’s navigation menu with css
- Site layout problems when logged in due to admin bar
- Add “sub-nav” class to a sub menu parent item
- Current Post/Page Ancestor, CSS
- How to target only one element if more elements share the same CSS class
- Custom css code in wordpress [closed]
- Using Easy Google Fonts correctly and Droid Sans on Max OS X [closed]
- remove white overlay [closed]
- Why doesn’t media(max-width) work on h2 title?
- How to use WordPress 3.8 back-end CSS in front-end?
- can i custom rendered content from API?
- How to include Elementor CSS in custom php file [closed]
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts