![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 |
|
WLC Member
Join Date: Jun 2012
Posts: 8
|
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 |
|
|
|
|
|
#2 | |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
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:
|
|
|
|
|
|
|
#3 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
|
|
|
|
|
|
#4 |
|
WLC Member
Join Date: Jun 2012
Posts: 8
|
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? |
|
|
|
|
|
#5 |
|
WLC Member
Join Date: Jun 2012
Posts: 8
|
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. |
|
|
|
|
|
#6 | ||
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
Quote:
Quote:
|
||
|
|
|
|
|
#7 |
|
WLC Member
Join Date: Jun 2012
Posts: 8
|
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 |
|
|
|
|
|
#8 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
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;}
|
|
|
|
|
|
#9 |
|
WLC Member
Join Date: Jun 2012
Posts: 8
|
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. |
|
|
|
|
|
#10 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
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.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|