centering a text on navigation button (3 posts)

  1. Ozil
    Posted 2 years ago #

    Hello guys!

    I'm trying to convert a theme from ltr to rtl, I'm doing a good job till now since I'm not good at css, but I've encountered some problems that I couldn't fix, one of those is trying to center a text on the navigation bar like this one in the image below :


    but it keeps on showing in the right, I mean the text, like the home text on the image above. this is the nav bar part in the css main file :

    /*==== navigation ====*/
    	nav#omc-main-navigation {margin-bottom:30px; margin-top:20px; position:relative;}
    		nav#omc-main-navigation ul li {display:block; float:right; position:relative;}
    		nav#omc-main-navigation ul li a {display:block; padding:4px 24px 0px 0px; border-left:1px; font-size:1.5em; color:#333;   -moz-transition:  .03s linear; -webkit-transition:  .03s linear; transition:  .030s linear; }
    		nav#omc-main-navigation ul li small {display:none;}
    			nav#omc-main-navigation ul li a:hover {text-shadow:none; float: left; background:#aaa; color:#FFF; -moz-transition:  .03s linear; -webkit-transition:  .03s linear; transition:  .030s linear; }
    		nav#omc-main-navigation ul li.current-menu-item a, nav#omc-main-navigation ul li.current-category-ancestor a, nav#omc-main-navigation ul li.current-menu-parent a, nav#omc-main-navigation ul li.current-post-ancestor a {background:#f9ba00; color:#FFF; text-shadow:none; }

    I hope you could help me with that!

    Thanks a lot

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    please post a live link to the problem, to get any suggestions.

    what theme are you using?

    as this is a pure formatting issue, possibly try asking at a css forum like http://csscreator.com/forum

  3. Ozil
    Posted 2 years ago #

    Hello there

    I don't have one, I'm working on it on a localhost server.

    The Theme is Gonzo : http://www.olliemccarthy.com/themes/gonzo/

    ok sir, I'll try to post there, thanks a lot

Topic Closed

This topic has been closed to new replies.

About this Topic