PDA

View Full Version : سوال: مشکل در سایتم دارم کمک



ramtin-w
یک شنبه 07 شهریور 1389, 18:55 عصر
دوستان یه مشکلی دارم توی سایتم ببینید من می خوام نوشته های توی منو هام وسط بیاد
ولی انگار فقط بعضی هاش میان
الان یه نگاهی بندازید
این کدشه



<div class="side_header"><strong>تنظيمات </strong></div>
<div class="side_content_menu">
<ul class="list_side">
<li>
<div align="center"><span class="style1"><a class="login" href="../../clanlist.php"><b> ليست </b></a> </span></div>
</li>
<div align="center">
<span class="style1">
<?
if($data->clanlevel == 0) {
print " <li><a class=\"login\" href=\"../../clann.php?p=join\"><b> پيوستن </b></a> </li>\n";
if($data->clanlevel == 0)
print " <li><a class=\"login\" href=\"../../clan.php?p=new\"><b> افتتاح جديد</b></a> </li>\n";
}
else {
print " <li><a class=\"login\" href=\"../../clan.php?x={$data->clan}\"><b> پروفايل </b></a> </li>\n";
print " <li><a class=\"login\" href=\"../../clanforum.php\"><b> انجمن باند</b></a> </li>\n

خوب ببینید الان قسمت لیست center هست ولی قسمت های پیوستن و اقتتاح و بقیه
left هست با css خود کشی کردم درست نمی شه به نظر شما چاره کار توی خود
صفحه هست یا نه؟

ramtin-w
یک شنبه 07 شهریور 1389, 19:31 عصر
الو یکی به داد ما برسه

Hell Lord
یک شنبه 07 شهریور 1389, 20:24 عصر
مشکل به احتما زیاد از کلاسهای css هست.چون من این کد را بدون کلاس ها تست کردم، همه وسط بودند.:لبخندساده:
فایل css را هم بگذارید اینجا...

ramtin-w
یک شنبه 07 شهریور 1389, 20:56 عصر
مشکل به احتما زیاد از کلاسهای css هست.چون من این کد را بدون کلاس ها تست کردم، همه وسط بودند.:لبخندساده:
فایل css را هم بگذارید اینجا...
چشم بفرمایید


.gb {
background-color:#FFFFFF;
border:1px solid #000000;
color:#000000;
width:100%;
}

.gb td, .gb tr, .gb p, .gb div {
background-color:#DDE6EB;
color:#000000;
font-family:Verdana;
font-size:11px;
padding-bottom:2px;
}

.gbinfo {
background:#000000
border-bottom:1px solid #000000;
color:#FFFFFF;
font-size:11px;
font-weight:bold;
height:42px;
text-align:center;
text-transform:uppercase;
width:100%;
}

.nav_left
{
width: 3px;
height: 45px;
background: url(nav_left.gif) no-repeat;
float: left;
}
.nav_holder
{
width: 958px;
height: 45px;
background: url(nav_bg.gif) repeat-x;
float: left;
}

#navigation
{
font-size: 13px;
font-weight: bold;
text-transform: uppercase;
list-style: none;
margin: 0; padding: 0;
}
#navigation li
{
float: left;
}
#navigation li a
{
color: #fff;
line-height: 45px;
padding: 0 20px 0 20px;
display: block;
text-align: center;
}
#navigation li a:hover
{
background: url(nav_bg.gif) repeat-x 0 -45px;
color: #fff;
text-decoration: none;
}


@import 'nav.css'; /* This imports the navigation for the top of the template, DO NOT remove this! /*

/* layout
----------------------------------------------- */

body
{
font-family: Verdana;
font-size: 10px;
color: #000;
background: #190000 repeat-x;
margin: 0; padding: 15px 0 0 0;
}
divC#‎ontainer
{
width: 1000px;
margin: 0 auto;
overflow: auto;
background-color: #fffff;
}
div#banner
{
width: 950px;
height: 252px;
padding: 5px 5px 5px 5px;
background: url(header.jpg) no-repeat;
margin: 0 auto;
clear: both;
}
divC#‎ontent
{
width: 954px;
margin: 0 auto;
padding: 5px 0 0 0;
clear: both;
}
div#left
{
width: 160px;
float: left;
}
divC#‎enter
{
width: 550px;
float: left;
margin: 0 0 0 5px;
}
div#right
{
width: 160px;
float: right;
}
.side_header
{
font-size: 13px;
text-transform: uppercase;
color: #fff;
font-weight: bold;
width: 150px;
height: 48px;
line-height: 42px;
padding: 0 0 0 10px;
background: url(side_header_bg.jpg) no-repeat;
}
.side_content_menu
{
width: 158px;
border-left: 1px solid #666666;
border-right: 1px solid #666666;
border-top: 1px solid #666666;
background: #282828;
margin: 0 0 10px 0;
}
.side_content_menu img
{
padding-left: 5px;
padding-top: 2px;
}
.side_content
{
width: 150px;
padding: 10px;
border: 1px solid #666666;
background: #282828;
margin: 0 0 10px 0;
overflow: auto;
}
.search_input_left
{
width: 4px;
height: 25px;
background: url(search_input_left.gif) no-repeat;
float: left;
}
.search_input
{
font-family: Verdana;
width: 107px;
height: 21px;
padding: 4px 3px 0 0;
background: url(search_input.gif) repeat-x;
border: 0;
float: left;
}
.search_submit
{
cursor: pointer;
width: 50px;
height: 25px;
background: url(search_button.gif) no-repeat;
border: 0;
float: left;
}
.center_header
{
font-size: 13px;
color: #fff;
text-transform: uppercase;
font-weight: bold;
width: 530px;
height: 42px;
line-height: 42px;
padding: 0 0 0 10px;

}
.center_content
{
width: 538px;
background: #282828;
border: 1px solid #666666;
margin: 0 0 10px 0;
}
.center_post_img
{
width: 533px;
border-top: 1px solid #fff;
border-bottom: 1px solid #749eae;
padding: 4px 0 4px 5px;
}
.center_post_img img
{
display: block;
}
.news_post
{
width: 531px;
padding: 7px 0 0 7px;
background: url(content_post_bg.gif) top repeat-x;
line-height: 14px;
}
.news_post p
{
margin: 0; padding: 8px 0 8px 0;
}
div#site_footer
{
text-align: center;
width: 954px;
height: 20px;
padding: 0 10px 0 0;
background: url(site_footer.gif) no-repeat;
clear: both;
}
div#site_footer a
{
text-decoration: underline;
}
div#site_footer a:hover
{
text-decoration: none;
}
div#footer
{
width: 880px;
height: 47px;
padding: 0 0 0 80px;
margin: 0 auto;
}
div#footer a
{
margin: 0 75px 0 0;
float: left;
}
.heightfix
{
height: 1%;
width: 1%;
display: none;
}

/* side lists
----------------------------------------------- */

.list_side
{
text-align: center;
list-style: none;
margin: 0; padding: 0;
}
.list_side li
{
text-align: center;
border-bottom: 1px solid #666666;
background: url(side_list_bg.gif) repeat-x;
line-height: 22px;
height: 22px;
}
.list_side a
{
text-align: center;
color: #FFFFFF;
padding: 0 0 0 6px;
text-decoration: none;
}
.list_side a:hover
{
text-align: center;
color: #FFD700;
text-decoration: underline;
}

#nobg {
height: 100%;
}

/* colours, typography & links
----------------------------------------------- */

a
{
color: #000;
text-decoration: none;
}
a:hover
{
color: #000;
text-decoration: underline;
}
span.posted
{
font-size: 11px;
}

/* misc
----------------------------------------------- */

form, input, textarea, h1
{
margin: 0; padding: 0;
}
a img
{
border: 0;
}
<meta http-equiv="content-type" content="text/html; charset=utf-8">

Hell Lord
یک شنبه 07 شهریور 1389, 21:26 عصر
اینجا درست بود !؟ :متفکر:

mojtaba_apadana
دوشنبه 08 شهریور 1389, 00:48 صبح
سلام .

شما یه چیز دیگه رو هم امتحان کنید :

کل مواردی که کی خواید داخل DIVهاتون وسط نمایش داده بشه رو داخل تگ Center بزارین

<center>
<div>

...

</div>

</center>

امیدوارم مشکلتون حل بشه