Getting CSS to automatically adjust to content

Discussion in 'Web Design' started by Glenn, Apr 3, 2018.

to remove all ads.
  1. Glenn

    Glenn Member

    Messages:
    202
    I have a menu bar at the top of my page that is set to 800px. I need it to adjust to the amount of content that is in it. I know I have done this before but for the life of me i can't get it to work. If I set width:auto, it goes to the width of the page. I want it to fit just to the margin of the outer text within it. What could I be doing wrong?
     
  2. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,662
  3. Nadine Carlson

    Nadine Carlson New Member

    Messages:
    11

Share This Page