content relative width
-
I am working on a horizontal scrolling site and am trying to have my div’s width be relative to the conent, in other words, expand in size according to content.
My CSS is this right now:
} #content-wrap { float:left; width:auto; height:500px; margin:0 auto; } #container { width:100%; height: 500px; float:left; } #content { width:200%; height: 500px; margin:0 40px 0 40px; float:left; }
You can view an example here: https://uninspirational.com/?page_id=14
As you can see the page is just twice the size of your display, but I want it to wrap to the content. I am using MNML as the theme.
Thanks in advance.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘content relative width’ is closed to new replies.