The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> DIV positioning
rye_ryu
post Jan 14 2010, 09:12 PM
Post #1





Group: Members
Posts: 7
Joined: 29-April 09
Member No.: 8,475



Every time I go to another page on my site, the DIV layer to the right re-positions itself!

here's a link to the site....
http://02da616.netsolhost.com/dho_site/newness.php

here's what happens when you click on the link to post a comment....
http://02da616.netsolhost.com/dho_site/new...p;ucat=1,2&

I'm going in circles trying to fix this! Anybody know how to fix this? THANK YOU!!!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 14 2010, 11:47 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



What DIV would that be?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rye_ryu
post Jan 15 2010, 12:26 AM
Post #3





Group: Members
Posts: 7
Joined: 29-April 09
Member No.: 8,475



QUOTE(pandy @ Jan 14 2010, 11:47 PM) *

What DIV would that be?


the ones named side and updates
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 15 2010, 02:38 AM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



The layout is centered, but different pages are wider/narrower than others, so the elements are different distances from the edges.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rye_ryu
post Jan 15 2010, 08:48 AM
Post #5





Group: Members
Posts: 7
Joined: 29-April 09
Member No.: 8,475



QUOTE(Darin McGrew @ Jan 15 2010, 02:38 AM) *

The layout is centered, but different pages are wider/narrower than others, so the elements are different distances from the edges.


how are they narrower and wider and how do I fix it?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 15 2010, 12:03 PM
Post #6


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I recommend that you not use a centered fixed-width layout. But if you're going to do that, then you need to make sure all your content fits, and that none of it pushes the layout wider.

Or maybe you could change the layout to use a horizontal navbar, rather than a vertical navbar.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rye_ryu
post Jan 15 2010, 12:28 PM
Post #7





Group: Members
Posts: 7
Joined: 29-April 09
Member No.: 8,475



QUOTE(Darin McGrew @ Jan 15 2010, 12:03 PM) *

I recommend that you not use a centered fixed-width layout. But if you're going to do that, then you need to make sure all your content fits, and that none of it pushes the layout wider.

Or maybe you could change the layout to use a horizontal navbar, rather than a vertical navbar.


What do I change so it's not a centered fixed-width? I feel like such a noob.....
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 15 2010, 01:08 PM
Post #8


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



You don't have a doctype declaration, which puts browsers in quirks mode. See
http://hsivonen.iki.fi/doctype/

Our online validator reports markup errors:
http://htmlhelp.com/cgi-bin/validate.cgi?u...mp;warnings=yes

The W3C CSS Validation Service reports errors in your CSS, but I had to copy-paste the style sheet. Something in your document confuses it when I pass it the URL.

The centered, fixed-width design is caused by using "margin:0 auto;width:610px" on all your div elements, but it turns out there's other positioning going on, so I'm not sure how to fix it. It seems awfully complex for a noob...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rye_ryu
post Jan 15 2010, 01:27 PM
Post #9





Group: Members
Posts: 7
Joined: 29-April 09
Member No.: 8,475



ding, ding, ding!! I fixed it!!! Not absolutely sure how I did it, but you gave me a clue when you mentioned centered fixed-width! I had to change the positioning of the DIV layers that kept dancing around from "top center" to "absolute". That made the difference!! biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 15 2010, 01:46 PM
Post #10


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



FWIW, the left column is chopped off if the browser window isn't as wide as you expect it to be.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rye_ryu
post Jan 15 2010, 01:49 PM
Post #11





Group: Members
Posts: 7
Joined: 29-April 09
Member No.: 8,475



what browser are you viewing it in? i'm using safari, it looks aligned.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 15 2010, 04:09 PM
Post #12


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I see it in FF/Linux, FF/Mac, Safari/Mac, and Chrome/Mac. Try resizing your browser window so it isn't full-screen (or use a full-screen browser on a smaller display).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 03:07 PM