Calamier 0 Posted November 30, 2005 Report Share Posted November 30, 2005 I figured i'd post on a dif topic for this one. I'm having some trouble getting my page to center. if I just use the center tag it only moves the top section, because the rest of the pieces are on div tags. But the page needs to be centered in every resolution. Thanks for help in advance.Edit : BTW heres the site - www.rocksolidautocenter.com Quote Link to post Share on other sites
MadPotato 0 Posted November 30, 2005 Report Share Posted November 30, 2005 you're using absolute positoin in each 'layer'...thats why you cant center itprobably it's a temporary solution, i guess...try to use relative values, and put all in a 'root' div, then center only this mother divhope i helped ^^by the way, nice design, congratulations Quote Link to post Share on other sites
Calamier 0 Posted November 30, 2005 Author Report Share Posted November 30, 2005 im not really sure how i would put them all in one div... Quote Link to post Share on other sites
Calamier 0 Posted November 30, 2005 Author Report Share Posted November 30, 2005 hahah, skemcin to the rescue.....*waits impatiently while skemcin posts....* Quote Link to post Share on other sites
Calamier 0 Posted November 30, 2005 Author Report Share Posted November 30, 2005 Edit : Flawed.... Quote Link to post Share on other sites
Skemcin 13 Posted November 30, 2005 Report Share Posted November 30, 2005 Edit : Flawed.... lmfaoso you are still having the problem? I'm almost done for the day here at work, but I'll be online later on tonight - I'll come back to this post to see if you have an update.Keep up the good work. :)P.S. My signature is more directed to the people who come in and say:"how do I make a javascript slide show of pictures"When all you have to do is google "javascript slide show" and you'll two days of scripts to choose from.You, have obviously put some effort into your code - especially since you have live working examples - so I wouldn't say you fall into that category. However, I am happy to see that it got some creative juices flowing and sparked off another round of troubleshoot - just don't kill yourself over it - someone will help you find a solution. Quote Link to post Share on other sites
Calamier 0 Posted December 1, 2005 Author Report Share Posted December 1, 2005 Man, I just can't get this. I tried so dang hard, maybe i'll just let it align left and get over it. Quote Link to post Share on other sites
aspnetguy 30 Posted December 1, 2005 Report Share Posted December 1, 2005 Ok set all your positioning to relative (position:relative)then do this...<div style="width:[widthofyourpage]px;margin:auto">...your existing code....</div>This should center everything. Quote Link to post Share on other sites
Calamier 0 Posted December 1, 2005 Author Report Share Posted December 1, 2005 aspnetguy, I was just doing that, getting the instructions from THIS PAGE. It didn't work though. It's all pushed to the left. I still haven't set the positions to relative because when i do, it messes the page up.THIS is the website with the positions set as absoluteTHIS is the website with the positions set as relativeThanks for your help i appreciate it..... Quote Link to post Share on other sites
Skemcin 13 Posted December 1, 2005 Report Share Posted December 1, 2005 have you changeed: <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0> to <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=center> ? Quote Link to post Share on other sites
Calamier 0 Posted December 1, 2005 Author Report Share Posted December 1, 2005 I don't even have any tables opn the page, why would I do that? I tried adding it and it didn't work, just messed the page up more. Quote Link to post Share on other sites
aspnetguy 30 Posted December 2, 2005 Report Share Posted December 2, 2005 I don't even have any tables opn the page, why would I do that? I tried adding it and it didn't work, just messed the page up more.<{POST_SNAPBACK}> <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=13> <IMG SRC="images/rsa_01.gif" WIDTH=800 HEIGHT=108 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=108 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 ROWSPAN=5> <IMG SRC="images/rsa_02.gif" WIDTH=59 HEIGHT=447 ALT=""></TD> <TD ROWSPAN=2> <a href="index.html"><IMG SRC="images/rsa_03.gif" ALT="" WIDTH=302 HEIGHT=58 border="0"></a></TD> <TD COLSPAN=10>...... You do have tables in your code Quote Link to post Share on other sites
aspnetguy 30 Posted December 2, 2005 Report Share Posted December 2, 2005 It appears that with the extensive absolute positioning you have used that it would be a lot of work to get it to center.For this reason I try and a void absolute positioning when ever posible.I always make a <div></div> and place everything inside it and then use relative positioning to the parent div. that way no matter where i move the div everything inside stays lined up properly.sorry I couldnt be much help. Quote Link to post Share on other sites
Guest dompadidodadollidado Posted December 7, 2005 Report Share Posted December 7, 2005 I'm also trying to center my page. With aspnetguy's method I get the page to the center but at the top. How can I move it down to the centerpoint ? Quote Link to post Share on other sites
aspnetguy 30 Posted December 8, 2005 Report Share Posted December 8, 2005 I don't think you can vertically center the page but if you add <br /> tags before the mother <div> (if you used my method) then that will bump the page down. Use as many <br /> as you need to get it down to where you want it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.