• Hi,

    I am a beginner in WordPress so I apologize for a dummy question in advance.

    I would like to fix the same issue as mentioned in “Center the slider text” discussion.

    I am using Mambo theme and I have not purchased the PRO version. I have a single static main banner in Home page.

    I would like to center the text in the banner. I have tried to add this code to my CSS custom:

    .slider_con {
    text-align: center;
    }

    but it did not work. Then I have tried to add this code:

    .banner_con {
    text-align: center;
    }

    and the title and description effectively got center-aligned but still remained on the left side of the main banner.

    Could you please advise which code should I use to place it in the middle of the banner?

    https://producirenchina.com/

    Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @alenahr.

    This css should work.
    Replace .banner_con styles with the following.

    .banner_con {
      position: absolute;
      top: 15%;
      left: 0;
      right: 0;
      margin: auto;
      width: 450px;
      z-index: 0;
      padding: 20px;
    }

    Thread Starter alenahr

    (@alenahr)

    Thank you very much for your prompt response, Ikarin!

    I added:

    text-align: center

    to your code. It’s much better but still not center-aligned. Could you please check again.

    https://producirenchina.com/

    Thanks a lot!

    Where did you put the css?
    In the style.css of your theme ( rambo theme ), there is left: 12%; and that has a priority.
    If you can’t touch style.css, then change css a bit like so:

    .banner .banner_con {
      position: absolute;
      top: 15%;
      left: 0;
      right: 0;
      margin: auto;
      width: 450px;
      z-index: 0;
      padding: 20px;
      text-align: center;
      float: none;
    }

    BTW, I think padding: 0; would be better.

    Thread Starter alenahr

    (@alenahr)

    Ikarin, thank you so much!

    It works perfectly.

    Great support! Very helpful!

    You are welcome^^

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Center the slider text, Mambo’ is closed to new replies.