Go to Post This is what happens when Engineers try to design a sport. - Jim Zondag [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-02-2008, 11:34
TeAm270RoCkS's Avatar
TeAm270RoCkS TeAm270RoCkS is offline
Team 270 Member
AKA: Omair Ahmed
FRC #0270 (Team 270 Falconators)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 31
TeAm270RoCkS is an unknown quantity at this point
Send a message via AIM to TeAm270RoCkS Send a message via MSN to TeAm270RoCkS
Need Help Centering Page

Hi. I Need help centering my page for http://team270.org. I think it may be a css problem, but I am not that good with it. I need help. In the next post, I will post css.
  #2   Spotlight this post!  
Unread 10-02-2008, 11:35
TeAm270RoCkS's Avatar
TeAm270RoCkS TeAm270RoCkS is offline
Team 270 Member
AKA: Omair Ahmed
FRC #0270 (Team 270 Falconators)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 31
TeAm270RoCkS is an unknown quantity at this point
Send a message via AIM to TeAm270RoCkS Send a message via MSN to TeAm270RoCkS
Re: Need Help Centering Page

#nav a:link, #servicemenu a:link {color:#fff;text-decoration: none;}
#nav a:active, #servicemenu a:active {color:#fff;text-decoration: none;}
#nav a:visited, #servicemenu a:visited {color:#fff;text-decoration: none;}
#nav a:hover, #servicemenu a:hover {color:#C97D7D;text-decoration: none;}

.wrapback a, .wrapback a:visited {color:#993333;}
.wrapback a:hover {color:#414968;}

body {

height:100%;
margin-top:0px;
font:normal 12px "times new roman";
background-color:#efefef;
}

.wrapper {
position: relative;
background: url(theme_images/back2.gif);
width:744px;

}

.wrapper2 {
margin-top:-11px!important;
margin-top:0px;
height:23px;
background-color:#585851;
}

#title {
font: bold 21px "britannic bold", "lucida sans unicode", arial, sans-serif;
color:#fff;
background: url(theme_images/titleback.gif) no-repeat top left;
height:60px;
line-height:40px;
text-indent:60px;
}

/* SLOGAN SLOGAN SLOGAN SLOGAN SLOGAN SLOGAN SLOGAN SLOGAN SLOGAN SLOGAN SLOGAN */

.slogan {
position:absolute;
color:#fff;
text-indent:60px;
font: italic 13px "century gothic", "lucida sans unicode", arial, sans-serif;
top:40px;
}

/* Service Menu Service Menu Service Menu Service Menu Service Menu Service Menu */

li#leftnav {
width:101px;
height:38px;
background: url(theme_images/end.gif) right top no-repeat;
list-style-type:none;
}

ul#nav {
background:#585851 url(theme_images/navback.gif) repeat-x;
float:right;
margin-top:0px;
font: bold 11px "lucida sans unicode", arial, sans-serif;
padding-left:0px;
list-style-type:none;
}

#nav li{
line-height:19px;
float: left;
text-indent:10px;
list-style-type:none;}

li#leftserve {
width:38px;
height:23px;
background: url(theme_images/leftserve.gif) left top no-repeat;
list-style-type:none;
}

#servicemenu {
margin-left:0px;
font: normal 11px "lucida sans unicode", arial, sans-serif;
list-style-type:none;
}

#servicemenu li{
background-color:#585851;
height: 14px;
padding-right:10px;
padding-top:4px;
padding-bottom:5px!important;
padding-bottom:4px;
text-align:center;
float: left;
list-style-type:none;
}

ul#servicemenu {margin-right:0px;margin-top:0px;padding:0;}

/* Content Content Content Content Content Content Content Content Content Content */

.shadowleft1 {
float:left;
height:28px;
width:36px;
background: url(theme_images/gradientshadow.gif) no-repeat left top;
}

.btitlel, .btitlem, .btitles {
font: bold 18px "britannic bold", "lucida sans unicode", arial, sans-serif;
background: url(theme_images/gradient.gif) repeat-x;
height:28px;
text-indent:10px;
color:#000;
}

.texts, .textm, .textl {
clear: both;
overflow:auto;
color:#000;
padding-top:30px;
padding-left:5px;
padding-bottom:10px;
vertical-align:text-top;
}

.texts {
width:240px!important;
width:235px;
padding: 10px 0px 10px 10px!important;
padding: 10px 10px 10px 10px;
border-left:1px solid black;
}

.textm {
width:437px!important;
width:435px;
margin-left:45px!important;
margin-left:36px;
padding: 10px 5px 10px 0px!important;
padding: 10px 10px 10px 3px;

}

.textl {
width:692px!important;
width:687px;
margin-left:45px;
padding: 10px 5px 10px 0px!important;
padding: 10px 10px 10px 0px;
}

.cwrapper {

float:left;

}

.cwrapper2 {

margin-left:-1px;
float:right;

}

.wrapback { width:743px;
background: #fff url(theme_images/mainback.gif) repeat-y left;
background-color:#efefef;
border-right:1px solid black;
border-bottom:1px solid black;
background-color:white;
color:#585851;
}

.twrap {border-right:1px solid black;background-color:white;}

.btitlel {
float: left;
width:707px;
}

.btitlem {
float: left;
width:451px;
}

.btitles {
position:static!important;
position:absolute;
width:255px;
border-left:1px solid black;}

.none {line-height:0px;}

.foot {
width:743px;
text-align:right;
padding-top:5px;
}

#brand {
width:743px;
margin-bottom: 20px;
padding-top: 10px;
text-align:center;
}
  #3   Spotlight this post!  
Unread 10-02-2008, 14:11
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Need Help Centering Page

Add in

margin:0px auto;

into the .wrapper in the CSS.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #4   Spotlight this post!  
Unread 10-02-2008, 14:58
TeAm270RoCkS's Avatar
TeAm270RoCkS TeAm270RoCkS is offline
Team 270 Member
AKA: Omair Ahmed
FRC #0270 (Team 270 Falconators)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 31
TeAm270RoCkS is an unknown quantity at this point
Send a message via AIM to TeAm270RoCkS Send a message via MSN to TeAm270RoCkS
Re: Need Help Centering Page

Quote:
Originally Posted by artdutra04 View Post
Add in

margin:0px auto;

into the .wrapper in the CSS.
Sorry, Didn't Work. Sorry
  #5   Spotlight this post!  
Unread 10-02-2008, 15:20
swaknight's Avatar
swaknight swaknight is offline
computer guy
AKA: AJ
no team
Team Role: Alumni
 
Join Date: May 2007
Rookie Year: 2005
Location: Flint
Posts: 56
swaknight is on a distinguished road
Send a message via AIM to swaknight Send a message via Yahoo to swaknight
Re: Need Help Centering Page

this may seem overly simple, but cant you just add a <center> tag before the start of your page and end it after you footer.??

<body>
<center>
......
......
......
</center>
</body>

like i said, it might be too simple, but it should work.
OR you could add a center align attribute to your <div> tags
<div align="center">.
  #6   Spotlight this post!  
Unread 10-02-2008, 16:18
Nightfall831 Nightfall831 is offline
Registered User
AKA: Paul
FRC #0888 (Robotiators)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Maryland
Posts: 29
Nightfall831 will become famous soon enoughNightfall831 will become famous soon enough
Send a message via AIM to Nightfall831
Re: Need Help Centering Page

try putting the page in a <p> and write css for that <p>

Code:
p.blah
{
  text-align: center;
}
or,

something like...

Code:
div.body
{
    width: 1000px;
    margin: 0 auto 0 auto;
}


where the body is in a div w/ class "body"
^^^my site uses the latter...
__________________


That's a PEBKAC problem. (Problem Exists Between Keyboard And Chair)
^Yea, I never run into those...

  #7   Spotlight this post!  
Unread 10-02-2008, 18:10
TeAm270RoCkS's Avatar
TeAm270RoCkS TeAm270RoCkS is offline
Team 270 Member
AKA: Omair Ahmed
FRC #0270 (Team 270 Falconators)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 31
TeAm270RoCkS is an unknown quantity at this point
Send a message via AIM to TeAm270RoCkS Send a message via MSN to TeAm270RoCkS
Re: Need Help Centering Page

Got it to work W00T!!!!!! I just changed the border settings. Thanks for all the suggestions!!!! BTW, Do you guys like the left and right sides of the page (Colors)?
Closed Thread


Thread Tools
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering, and other tools, in Inventor? LBK Rules Inventor 6 15-01-2004 00:31
yearbook page help Formula2000 General Forum 1 18-02-2003 17:29
Web Page Help mpking Chit-Chat 8 27-07-2001 10:48
How about a Drivers/Operators page and a Human Players page Anthony S. CD Forum Support 4 02-06-2001 22:47


All times are GMT -5. The time now is 16:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi