Trouble centering rotating word on breakpoint

  • Posted in : cvCard WP
  • uxer55
    Participant

    Hi. I have been playing with the css for like an hour and can’t seem to center my rotating words on mobile screen size. Basically, I have a sentence that looks great on a single line, but when it comes to a smaller screen size, the last part of the sentence (the rotating words part) drops to the next line. The problem is, it drops to the left, which looks ugly to me.

    I tried to fix it myself before asking for help, but it didn’t work. This is what I tried:

    .rotatingintro {
    display: inline-block;
    }

    @media (min-width: 480px) { .rotatingintro {
    display: block;
    text-align: center !important;
    }
    }

    Please help. Thank you. (imakestuff.online is the website)

    serkan
    Moderator

    Hi, You can try to use this custom css code;

    @media screen and (max-width: 767px) { .rotate-words { min-width: 114px; } }

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register