Posterize.us: Problem with border around page contents - Posterize.us

Jump to content

Tips

When posting, be sure to include any extra info that will be helpful in diagnosing your issue. (Include link to your Posterous blog, along with any code snippets, etc.)

Also, be sure to check the official theming reference first if you're having trouble: http://posterous.com/theming/reference
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem with border around page contents

#1 User is offline   ChrisS 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 11-April 11

Posted 11 April 2011 - 04:29 PM

Hi-

I'm helping someone customize their posterous site's theme and am having a problem.

I want to have a thin border around the page contents (that is, everything but the header). I did this by wrapping the post-header contents in a div that has a 1px border and suitable margins/padding. This looks fine on the main page, but if I click on article title to see a single-article page, then the article body, sidebar, etc. are outside and below the border. What should be a frame around the whole page content is instead a squashed rectangle between the header and the page content.

Here's the main blog page, with proper border:
http://blog.tanyacollinsdesign.com/

Here's a single-article page, with content outside & below the border:
http://blog.tanyacol...nd-original-art

I can't figure this out, because in both cases the article/sidebar/footer/etc. content is inside my border-box div.

Does anyone have any suggestions as to what may be wrong?

Thanks,
Chris.
0

#2 User is offline   Cory Watilo 

  • Advanced Member
  • Group: Administrators
  • Posts: 272
  • Joined: 30-September 09
  • LocationOrange County, CA
  • Posterous URL:http://watilo.com

Posted 11 April 2011 - 07:31 PM

You need to clear the floats. Add:

<div style="clear:both;"></div>


right here: http://clip2net.cory...607342_12Kb.png
Cory Watilo
My Posterous: http://watilo.com
Twitter: http://twitter.com/corywatilo
0

#3 User is offline   ChrisS 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 11-April 11

Posted 12 April 2011 - 09:20 AM

That's great; thank you very much.

I can't say I understand what that did, but I'll figure it out!
0

#4 User is offline   Cory Watilo 

  • Advanced Member
  • Group: Administrators
  • Posts: 272
  • Joined: 30-September 09
  • LocationOrange County, CA
  • Posterous URL:http://watilo.com

Posted 12 April 2011 - 09:25 AM

When you float elements (like columns), they are taken out of the document flow. When you float an element, things float around them. So in order to place something below a floated element, you have to "clear" the floated elements. http://webdesign.abo.../a/aa010107.htm
Cory Watilo
My Posterous: http://watilo.com
Twitter: http://twitter.com/corywatilo
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users