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

How to make a div have a fixed size?

  • Thread starter Thread starter Mike Collins
  • Start date Start date
M

Mike Collins

Guest
I made a webpage, on which clicking the button 30px changes the font inside the div.

I have a ul inside it with the buttons. When I change the font size, the div expands and the nav buttons move with it as well.

How do I make it so it stays fixed but the fonts can still change.
<p>I made a webpage, on which clicking the button 30px changes the font inside the <code>div</code>.</p>
<p>I have a <code>ul</code> inside it with the buttons. When I change the font size, the <code>div</code> expands and the <code>nav</code> buttons move with it as well.</p>
<p>How do I make it so it stays fixed but the fonts can still change.</p>
Continue reading...
 
Top