• Hi!

    I’ve looked up how to set the min-width for the WordPress body / content body, but all solutions people have posted don’t seem to work for me. I don’t understand why.

    I have a child-theme of a twentytwelve theme.

    Basically, when making the window smaller, I want the body of the page to stay fixed. I don’t want it to get resized – at all. So I thought setting a “min-width” to the width of the page.

    But maybe I was doing something wrong and min-width is not the correct thing to choose?

    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • kittythompson

    (@kittythompson)

    Hi Default,

    Do you have a link you could post or the code that you’re trying to use to set the min-width? How are you currently including it?

    Thread Starter Foliferous

    (@revs)

    Hi Kitty,

    at the moment I’m not including it at all since it wasn’t working. So I deleted it. I thought I wasn’t going to include a piece of code that does not work. I can’t give you the code as I can’t remember where I’ve got it from. It was many different codes, most from this forum. I never saved the codes anywhere, just tried them, and removed them again after seeing they didn’t work.

    But is min-width the right thing to use at all? And how would you implement it? Maybe I can try again if someone gives me a piece of code. I think it was something like “min-width: 800px;” applied to “.wrapper” but I may be wrong. There was so many different ones.

    Thread Starter Foliferous

    (@revs)

    I managed to do it by doing this:

    #page {
    max-width: 960px;
    min-width: 960px;
    }

    Most solution I had seen didn’t have the max-width attribute, so apparently that made the difference.

    My only problem now is that when I resize the page, and make it super-narrow, my widgets drop to the bottom (below the text of my page basically) and the menu turns into a drop-down menu.

    Is there a way to avoid this as well? I can’t believe there’s no simple solution for a fixed width page out there, this is WordPress after all! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't set min-width for page’ is closed to new replies.