Skip to main content
Known Participant
October 25, 2022
Question

I cannot change the font-size anymore for mobile devices

  • October 25, 2022
  • 2 replies
  • 1112 views

Guys, I have a big problem,

 

I'm designing a website in Dreamweaver, and for some unkown reason I cannot change the font size of my h1-head anymore. This is really necessary of course, for I cannot have a the same size for desktop as for a mobile phone. Maybe it has something to do with using a grid-layout?

I've unistalled en re-installed Dreamweaver, but that did not solve the problem.

Can someone take a look at my stylesheet and html-source file and maybe find a solution? Thanks!

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    October 25, 2022

    Try this working example.

     

     

    Hope that helps.

     

    Nancy O'Shea— Product User & Community Expert
    Known Participant
    October 25, 2022

    Thanks.

    BenPleysier
    Community Expert
    Community Expert
    October 25, 2022

    Instead of using media queries (which in your case are wrong) try this for the global style:

     

     

    h1 {
        font-size: 5.9vw;
    }
    

     

     

    Adjust the value to suit.

     

    A better method is to use Bootstrap 5 which does this automatically.

     

    Ik gebruik Wappler gevestigd in Enschede.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Known Participant
    October 25, 2022

    Hallo BenPeysier,

     

    Dank voor je antwoord,  kunnen we verder in het Nederlands communiceren?

    Ik neem aan dat ik de fontsize in mijn stylesheet moet zetten onder 'General'? Of direct op mijn html-code pagina? Zoals je kunt zien gebruik ik al Bootstrap. Hoe gebruik ik dat voor de font-size?

    Graag hoor ik ook van je waarom in mijn geval het gebruik van media-queries fout is, en wat ik dan moet doen om te zorgen dat  de site er goed uitziet op mobiele apparatuur.

    Hartelijk dank alvast.

     

    vriendelijke groet,

    Edina

     

     

    Known Participant
    October 25, 2022

    follow-up:

    Ik heb je advies gevolgd, en nu ziet het er inderdaad beter uit. Alleen wordt de tekst op smartphone apparatuur wat klein. Kan ik nog wat spelen met de vw?