OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Font size relative to the user's screen resolution?

  • Thread starter Thread starter barakuda28
  • Start date Start date
B

barakuda28

Guest
I have a fluid website and the menu is 20% of its width. I want the font size of the menu to be measured properly so it always fits the width of the box and never wrap to the next line. I was thinking of using "em" as a unit but it is relative to the browser's font size, so when I change resolutions the font size stays the same.

Tried also pts and percentages. Nothing works as I need it...

Give me a hint of how to proceed, please.
<p>I have a fluid website and the menu is 20% of its width. I want the font size of the menu to be measured properly so it always fits the width of the box and never wrap to the next line.
I was thinking of using "em" as a unit but it is relative to the browser's font size, so when I change resolutions the font size stays the same. </p>

<p>Tried also pts and percentages. Nothing works as I need it...</p>

<p>Give me a hint of how to proceed, please.</p>
Continue reading...
 

Latest posts

Top