Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #654131

    hi there,

    could you guys tell me why the following media query is not working on the below page?

    @media only screen and (max-width: 480px) {
    .servicesheader1 {
    font-size: 20px !important;
    }}

    @media only screen and (max-width: 480px) {
    .services-header-2 {
    font-size: 20px !important;
    }}

    url: http://digitalfreelancer.net.au/capabilities/

    #654172

    Hey clairemartindigital!

    Please try changing your code to following one

    
    @media only screen and (max-width: 480px) {
    .servicesheader1 * {
    font-size: 20px !important;
    }}
    
    @media only screen and (max-width: 480px) {
    .services-header-2 * {
    font-size: 20px !important;
    }}

    Also, please try adding the code to style.css file of your child theme in Appearance > Editor

    Cheers!
    Yigit

    #654192

    Hi Yigit,

    seems to have worked for the first header. But not for the second header. Any other ideas?

    Thanks

    #654370

    Hi,

    For the second header, you placed dot in front of custom CSS class. Please edit your element and remove the dot :)

    Best regards,
    Yigit

    #654519

    oops…thanks. you can close this. any news on the other tickets?

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘@media only screen not working’ is closed to new replies.