Jump to content


Photo
Projects

Width of Section



Best Answer beardedavenger , 13 March 2013 - 08:44 PM

I mean it's possible but yeah it would require a fair amount of work only because it's absolutely positioned. You can try putting a max-width on it equal to your sites width then go from there.

Go to the full post


This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1 jcritty†

jcritty

    Advanced Member

  • DMS Subscriber†
  • 86 posts

Posted 12 March 2013 - 09:38 PM

Hey Nick,

I've got projects on a fixed width page, so the section's background color go full width and it looks a bit off.  Is there any way to limit it to the 1000px wide site?



#2 beardedavenger

beardedavenger

    Unicorn Wrangler

  • Members

  • 1219 posts

Posted 12 March 2013 - 10:30 PM

Ouch. Hmm, yeah not sure about that really, as it breaks the normal content to go to 100% width by design. It's absolutely positioned as well and centering it would really require another div. :(



#3 jcritty†

jcritty

    Advanced Member

  • DMS Subscriber†
  • 86 posts

Posted 13 March 2013 - 05:10 PM

So... not an easy fix on my end?



#4 beardedavenger

beardedavenger

    Unicorn Wrangler

  • Members

  • 1219 posts

Posted 13 March 2013 - 08:44 PM   Best Answer

I mean it's possible but yeah it would require a fair amount of work only because it's absolutely positioned. You can try putting a max-width on it equal to your sites width then go from there.



#5 jcritty†

jcritty

    Advanced Member

  • DMS Subscriber†
  • 86 posts

Posted 13 March 2013 - 09:24 PM

I had tried that, and the width was correct, but it was aligned to the left side of the browser window.  Any thoughts on making it go center?



#6 jcritty†

jcritty

    Advanced Member

  • DMS Subscriber†
  • 86 posts

Posted 13 March 2013 - 09:58 PM

Did it!

Gave it a max width, set left and right margins to auto.  works perfectly



#7 NameSake†

NameSake

    Advanced Member

  • DMS Subscriber†
  • 49 posts

Posted 16 March 2013 - 03:55 AM

Sorry for the silly question. I am struggling with the same problem. How do you "give a max width, set left and right margins to auto"?