1
jieyin
A beginer's Q...
  • 2005/11/9 5:56

  • jieyin

  • Just popping in

  • Posts: 3

  • Since: 2005/11/8


I installed a theme for my (xoops)site, but the TABLE allign to LEFT, check my site:www.postloop.com, How can fix it, allign the main TABLE to the middle. thank u vey much.

Jerry

2
adrock
Re: A beginer's Q...
  • 2005/11/9 6:22

  • adrock

  • Quite a regular

  • Posts: 291

  • Since: 2004/12/7


Take a look here:
http://www.quirksmode.org/css/centering.html

The main area of your site is a defined 'layer', so you'll have to put it in a 'container' that is centered on the screen.
Affordable Web Hosting - Family - Fun!...and not always in that order!

3
jieyin
Re: A beginer's Q...
  • 2005/11/9 13:10

  • jieyin

  • Just popping in

  • Posts: 3

  • Since: 2005/11/8


Hi,I really don't know where to replace the core to centering the site,here is my style.css,pls help me:
----------------------
body {
font-family: verdana, arial, helvetica, sans-serif;
font-size:10px;
background-color:#999999;
text-align:left;
margin:5px 5px 20px 5px;
}

h1 {font-size: 200%}
h2 {font-size: 190%}
h3 {font-size: 180%}
h4 {font-size: 150%}
h5 {font-size: 120%}

a:hover {
color: #ff9900;
text-decoration: underline;
}
a {
color: #000000;
text-decoration: none;
}
hr { height: 3px; border: 1px #009933 solid; background: #009933; width: 100%;}
}


ul { margin: 1px; padding: 1px; list-style: decimal inside; text-align: left;}
li { margin-left: 1px; padding: 1px; list-style: disc inside; color: #CC0000; color: #000000; list-style-image: url(); }

table {
font-size: 10px;
width: 100%;
}
input {
font-family: Verdana, Arial, helvetica, sans-serif;
font-size:10px;
padding-right: 2px;
border:1px solid #000;
padding-left: 2px;
color: #000;
background: #e3e8e0;
}
select {
font-size:9px;
border-style: solid;
border: 1px solid #000;
padding-left: 2px;
background: #e3e8e0;
}
textarea {
border: 1px solid #000;
width: 430px;
font-size: 10px;
background: #fff;
font-family: verdana, arial, helvetica, sans-serif;
}

.maindiv {
float: left;
width: 770px;
margin-bottom: 20px;
padding-right: 0px;
border: 1px solid #000;
background-color: #e3e8e0;
}
.headerdiv {
margin: 5px 5px 10px 5px;
background: #fff url(header.jpg) no-repeat;
height: 60px;
padding: 0px;
border: 1px solid #000;
}
.leftdiv {
float: left;
background: #e3e8e0;
border: 1px solid #000;
width: 160px;
margin: 0 0 10px 5px;
padding-left: 0px;
padding-botom: 10px;
}
.contentdiv {
float: left;
margin: 0 0 20px 5px;
width: 580px;
padding: 10px 5px 10px 5px;
border: 1px solid #000;
background-color: #fff;
}
#footer {
clear: both;
margin-left: 0px;
margin-right: 0px;
text-align: center;
padding:5px;
border-top: 1px solid #000;
background: #009933;
}
.blocktitle {
margin: 0px;
color: #e3e8e0;
padding: 3px 0px 5px 10px;
font-family: verdana, arial, helvetica, sans-serif;
background: #009933 url() no-repeat;
font-size: 12px;
font-weight: bold;
}
.blockcontent {
margin: 0;
background: #e3e8e0;
}

td#mainmenu a {
color: #000;
margin: 0;
height: auto;
border-bottom: 1px solid #000;
padding: 5px 0px 3px 10px;
background: #e3e8e0 url(menubg.gif) no-repeat;
}
td#mainmenu a:hover {
color : #ff9900;
text-decoration: none;
background: #e3e8e0 url(menubg1.gif) no-repeat;
}

td#mainmenu a.menuTop {
padding-left: 25px;
border-top: 1px solid #000;
}

td#mainmenu a.menuMain {
padding-left: 25px;
}
td#mainmenu a.menuSub {
color: #ff9900;
padding-left: 35px;
/*background: #FFFFFF no-repeat; */
}


/*--.................. usermenu ..................--*/
td#usermenu a {
margin: 0;
padding: 5px 2px 2px 20px;
height: auto;
color: #000;
border-bottom: 1px solid #000;
background-color: #e3e8e0;
background-image: url(menubg.gif);
background-repeat: no-repeat;
}
td#usermenu a:hover {
color: #ff9900;
text-decoration: none;
background-color: #e3e8e0;
background-image: url(menubg1.gif);
background-repeat: no-repeat;
}
td#usermenu a.menuTop {
border-top: 1px solid #000;
}
td#usermenu a.highlight {}

.outer {
border: 1px solid #000;
background-color: #fff;
}
.head {
background-color: #BEC2BC;
padding: 3px;
font-weight: normal;
color:#676767;
font-size:10px;
}
.even {
background-color: #E3E8E0;
padding: 3px;
}
.odd {
background-color: #E3E8E0;
padding: 5px;
}
.foot {
background-color: #E3e8e0;
padding: 5px;
font-weight: normal;}

fieldset {
border: 1px solid #000;
color: #000;
width: 97%;
}

legend {
color: #000;
font-family: verdana, arial, sans-serif;
font-size: 18px;
font-weight: bold;
}
.login {
text-align: left;
width: 95%;
padding-top: 7px;
padding-left: 10px;
background: transparent;
}
-----------------

thank u again.

jerry

Login

Who's Online

309 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 309


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits