Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Change mobile text size

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #281548
    JamiePattison
    Participant

    I have a page displaying some text. In a normal browser it all looks good but on a phone browser the same text is separated across 3 lines but taking up most of the image with the text. My current code is

    .dev-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    }

    .dev-centered h3{
    color:#FF1B94;
    font-size: 1.6em;
    font-weight: 800;
    }

    Here is some text in H3 being rendered here

    How could i adjust the mobile version to have the text to a particular size but remain as is on a desktop web browser?

    #281550
    Beverleyh
    Participant

    I think you might want to look in to media queries.

    #281853
    carazig
    Participant

    Thank you

    #282030
    SFlex
    Participant

    +1 Beverleyh I think Media Queries are OK for this (@media directive in CSS) :)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.