Text within Button Settings

Discussion in 'ClassiCraft WordPress Theme' started by M5LASTER, Jan 15, 2015.

Thread Status:
Not open for further replies.
  1. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    Hi there,

    I would like to align the text to the center within the buttons of the menu, but couldn't do it.

    Notice the button in the far right side. The text of it is aligned in the center of the button. This is good.

    but for the button in the left and the rest of the buttons, the text is aligned to the left. How can I align it to the center?

    Kindly, assist.
    Text aligned within button.png
    Thanks,
    Mike
     
  2. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello Mike,

    Paste the code given below in Custom CSS section
    (Theme Options -> Styling Options -> Custom CSS) of your dashboard.
    Code:
    #menu .ddsmoothmenu li {
    margin-right: 10px;
    margin-left: 10px;
    }
    #menu li a {
    padding-right: 5px;
    padding-left: 5px;
    }
    Thanks & Regards
    Pramod
     
  3. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    Hi Pramod,

    I added this CSS where you told me, but it didn't work. Can you please check again?

    Please note I already have the following css code

    #menu .ddsmoothmenu li {
    float: right;
    background: #8EBF17;
    }

    #menu .ddsmoothmenu li:hover {
    background: #B0E920;
    }

    Thanks,
    Mike
     
  4. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello Mike !

    Don't bother about the previous css it overwrite if exist some things. Last css code have higher priority.
    #menu .ddsmoothmenu li {
    margin-right: 10px !important;
    margin-left: 10px !important;

    }
    #menu li a {
    padding-right: 5px !important;

    padding-left: 5px !important;
    }

    Thanks & Regards
    Pramod
     
  5. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    It looks as desired now. I appreciate it.

    Thank you Pramod.

    Mike
     
Thread Status:
Not open for further replies.

Share This Page