WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > positioning and white area

Reply
  Thread Tools Display Modes
Old 26th June 12, 07:22 AM   #1
Windchaser
WLC Member
 
Join Date: Jun 2012
Posts: 8
Default positioning and white area

Hi,

I'm having problems with the gallery page on www.edenwebbdesign.se
The whole page moves to the right a bit when you click on that page on the menu, and then moves back to the left when you click on the other pages.
I also have problems with positioning the actual gallery. I can't get the bottom edge of the gallery to have the same amount of space, 20px between it and the border of the content area as I do for the top side of it. I have put margin-top and margin-bottom at 20px in the galleria container in the css file.

The final error on the page is that there is a white area underneath the copyright area which I'm guessing is overflow? I can't get this to disappear

Extremely grateful for help,

W
Windchaser is offline   Reply With Quote
Old 26th June 12, 09:09 AM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: positioning and white area

Without looking your first problem is:

A scroll bar appears in the in the viewport when the content is longer than the viewport, which takes up around 20 pixels at the right edge of the browser client window, so YOUR content has to make way for this.

Quote:
The final error on the page is that there is a white area underneath the copyright area which I'm guessing is overflow?
Or margin adding to the height of the element. What browser does this happen in?
chrishirst is offline   Reply With Quote
Old 26th June 12, 09:11 AM   #3
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: positioning and white area

Quote:
Originally Posted by chrishirst View Post
Without looking your first problem is:
Yeah, yeah I know, nobody loves a smartarse!!
chrishirst is offline   Reply With Quote
Old 26th June 12, 10:33 AM   #4
Windchaser
WLC Member
 
Join Date: Jun 2012
Posts: 8
Default Re: positioning and white area

I think it's worse with a dumbass such as myself when it comes to css

A problem with margin seems logical, though I can't figure out where that would come from. I noticed an error with a white area appearing below the copyright area on all pages as well when I checked it with Firefox. I usually do all my testing in Chrome.

When you say your content has to make way for this, what do you mean?
Windchaser is offline   Reply With Quote
Old 26th June 12, 02:17 PM   #5
Windchaser
WLC Member
 
Join Date: Jun 2012
Posts: 8
Default Re: positioning and white area

Hi chrishirst,

Just wanted to apologize in case you took my joke the wrong way. Smartarse to me means nothing if you know what you're talking about. Didn't know how to respond to your joke so wrote my own.
Windchaser is offline   Reply With Quote
Old 26th June 12, 05:58 PM   #6
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: positioning and white area

Quote:
Just wanted to apologize in case you took my joke the wrong way.
No problem I don't take any kind of offence or get annoyed at what people post in forums, life is really too short to even care about such trivialities.

Quote:
When you say your content has to make way for this, what do you mean?
The scroll bar, when it appears, the contents of the client window (your content) have to move to the left by 20/25 pixels.
chrishirst is offline   Reply With Quote
Old 27th June 12, 08:34 AM   #7
Windchaser
WLC Member
 
Join Date: Jun 2012
Posts: 8
Default Re: positioning and white area

Thanks man,

How do I sort out the problem with the margin or padding? I'm completely lost to it. The css I have should be global from what I understand. I have two css files, one layout that should cover the whole website and one for the gallery. I've checked both and can't see where the extra margin or padding would come from
Windchaser is offline   Reply With Quote
Old 27th June 12, 11:44 AM   #8
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: positioning and white area

It could be stacking up from other elements in the flow.

Add a 1px red border to all elements
Code:
html *{border:1px solid red;}
to your CSS rules so you can see the extents and the intersect/contact point of every element in relation to each other. Any anomaly should then be come fairly evident.
chrishirst is offline   Reply With Quote
Old 27th June 12, 12:21 PM   #9
Windchaser
WLC Member
 
Join Date: Jun 2012
Posts: 8
Default Re: positioning and white area

Hi,

Thanks for this, is still unclear though from the red border about the white area underneath and the right-wise movement of the page, the red line borders seem identical throughout the pages in regards to the movement to the right, and for the white area it is not encapsuled by the red border which is weird.
Windchaser is offline   Reply With Quote
Old 27th June 12, 05:05 PM   #10
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: positioning and white area

the red border debugging step is to see if any elements are extending outside of their parent and "pushing" some extra space into the viewport.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:06 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.