Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 27th, 2003, 09:06 PM
saadahmed saadahmed is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 saadahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Auto Center

Any Scripts that auto center a page.. what i mean by automatic center is dat.. the page be will centered on any resolution. any scripts for me guys?? thx..

Reply With Quote
  #2  
Old October 28th, 2003, 01:28 AM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
heheh simple html and css will do this for you.

if you prefer the table structure just create an outer table and set it to width,height = 100%

__________________
-- Jason

Reply With Quote
  #3  
Old October 28th, 2003, 08:00 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Apply this CSS code to your file.
Code:
body {
   text-align : center;
   padding : 0px;
   margin : 0px auto;
   height : 100%; /* for vertical alignment - optional */
}
That will center align any data below the body parent.

Reply With Quote
  #4  
Old October 28th, 2003, 04:54 PM
saadahmed saadahmed is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 saadahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
kk.. wow!! thanks i will try this, hopfeully it will work

Reply With Quote
  #5  
Old November 4th, 2003, 06:16 PM
saadahmed saadahmed is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 saadahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
well i didnt use that method.. but i centered the page in dreamweaver.. but now here is a prob... i have made a drop down box in another layer (in dreamweaver) My page is centered and the drop down box has an absolute value... so.. i cant have the drop down box centered , please help

Reply With Quote
  #6  
Old November 5th, 2003, 01:50 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Have you got the page posted live somewhere, so we can take a look at it?

Reply With Quote
  #7  
Old April 20th, 2006, 12:43 PM
gnagey gnagey is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 1 gnagey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 39 sec
Reputation Power: 0
Quote:
Originally Posted by saadahmed
well i didnt use that method.. but i centered the page in dreamweaver.. but now here is a prob... i have made a drop down box in another layer (in dreamweaver) My page is centered and the drop down box has an absolute value... so.. i cant have the drop down box centered , please help


I think what you are looking for is

<div style="position:absolute;">
<div style="position:relative; left:10px; top:100px;">content</div>
</div>

You need both of them because if you just do relative the div still takes up space in your layout, and you use the relative to actually position the content.

Reply With Quote
  #8  
Old April 20th, 2006, 10:13 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
gnagey, you got the absolute and relative backwards.
http://www.stopdesign.com/articles/absolute/
http://www.autisticcuckoo.net/archi...tively-absolute

P.S. Why did you respond to a thread that's about 2.5 years old?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Auto Center


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT