Element Size Based on Monitor Width

后端 未结 1 516
悲&欢浪女
悲&欢浪女 2021-01-24 17:15

I am creating my own personal website as a test for what I have learned so far in HTML and JavaScript. I made the toolbar, and it looks nice on my monitor, which has quite a lar

相关标签:
1条回答
  • 2021-01-24 17:58

    If you need a CSS only solution you could play with min-width:

    #toolbar{
      width:70%;
      margin-left:15%;
      margin-right:15%;
      min-width:1200px;
    }
    

    Fiddle

    0 讨论(0)
提交回复
热议问题