Да се центрират.

racer

Registered
Да се центрират защото във момента ги показва на страни

Код:
           <input type=\"text\" class=\"etc2\" name=\"username\" />
           <input type=\"password\" class=\"etc\" name=\"password\" />
        Запомни ме <input type=\"checkbox\" class=\"radio\" name=\"autologin\" />
        <input type=\"hidden\" name=\"autologin\" value=\"1\" />
       <input type=\"submit\" value=\"Влез\" class=\"etc3\" name=\"login\" />


Също така искам да добавя под този ред

Код:
echo "<h5><img src='images/ip.gif'>Твоето IP: ".$_SERVER['REMOTE_ADDR'];


да исписва здравейте аз като го напиша убикновенно ми дава бяла страница ... :D
 
Я дай една снимка , как излизат !

ЕДИТ: И , аз имах проблем с центрирането пробвай с този код:  
 
Заповядай:

PHP:
<?php 
echo" 
<input type=\"text\" class=\"etc2\" name=\"username\" />
           <input type=\"password\" class=\"etc\" name=\"password\" />
        Запомни ме <input type=\"checkbox\" class=\"radio\" name=\"autologin\" />
        <input type=\"hidden\" name=\"autologin\" value=\"1\" />
       <input type=\"submit\" value=\"Влез\" class=\"etc3\" name=\"login\" />
</form>
";
echo" <h5><img src='images/ip.gif'>Твоето IP: ".$_SERVER['REMOTE_ADDR'];	
?>
 
PHP:
echo "<table>
<form method=\"POST\" action=\"\" >
            <tr><input style=\"width:120px;\" type=\"text\" class=\"etc2\" name=\"username\"/></tr>
            <tr><input style=\"width:120px;\" type=\"password\" class=\"etc\" name=\"password\" /></tr>
            <tr><p>Запомни ме!</p><input type=\"checkbox\" class=\"radio\" name=\"autologin\" /></tr>
            <tr><input type=\"hidden\" name=\"autologin\" value=\"1\" /></tr>
            <tr><input type=\"submit\" value=\"Влез\" class=\"etc3\" name=\"login\" /></tr>
</form>
</table>
<h5><img src='images/ip.gif ' />Твоето IP: ".$_SERVER['REMOTE_ADDR']."</h5>";

едит: Валидирах формата!
едит2: @ReD_z0n3 това, което правиш няма смисъл! :)
 
Ето още един пример.

PHP:
<?php 
echo" 
<input type=\"text\" class=\"etc2\" name=\"username\" /><br /><br />
           <input type=\"password\" class=\"etc\" name=\"password\" /><br /><br />
        Запомни ме <input type=\"checkbox\" class=\"radio\" name=\"autologin\" />
        <input type=\"hidden\" name=\"autologin\" value=\"1\" />
       <input type=\"submit\" value=\"Влез\" class=\"etc3\" name=\"login\" />
</form>
";
echo" <h5><img src='images/ip.gif'>Твоето IP: ".$_SERVER['REMOTE_ADDR'];	
?>
 
Ако искаш полетата да са едно под друго ще стане така:
PHP:
<?php
echo "<table>
<form method=\"POST\" action=\"\" >
            <tr><input style=\"width:120px;\" type=\"text\" class=\"etc2\" name=\"username\"/></tr><br />
            <tr><input style=\"width:120px;\" type=\"password\" class=\"etc\" name=\"password\" /></tr>
            <tr><p>Запомни ме!</p><input type=\"checkbox\" class=\"radio\" name=\"autologin\" /></tr>
            <tr><input type=\"hidden\" name=\"autologin\" value=\"1\" /></tr>
            <tr><input type=\"submit\" value=\"Влез\" class=\"etc3\" name=\"login\" /></tr>
</form>
</table>
<h5><img src='images/ip.gif ' />Твоето IP: ".$_SERVER['REMOTE_ADDR']."</h5>";   
?>
За да има разтояние между тях можеш да добавиш margin или просто на този ред:
PHP:
<tr><input style=\"width:120px;\" type=\"text\" class=\"etc2\" name=\"username\"/></tr><br />
Да сложиш още <br /> в края и ще стане така:
PHP:
<tr><input style=\"width:120px;\" type=\"text\" class=\"etc2\" name=\"username\"/></tr><br /><br />
 
Други два проблема имам разместване горе кадето е менюто и вижте какво става като цъкне да въвежда там pass i users. ето снимки

a24384f7fe3c78b4.jpg


584cfd8831f4b7fc.jpg
 
Като гледам май ползваш моя код. Направи го така:
PHP:
<?php
echo "<table>
<form method=\"POST\" action=\"\" >
            <tr><input type=\"text\" class=\"etc2\" name=\"username\"/></tr><br />
            <tr><input type=\"password\" class=\"etc\" name=\"password\" /></tr>
            <tr><p>Запомни ме!</p><input type=\"checkbox\" class=\"radio\" name=\"autologin\" /></tr>
            <tr><input type=\"hidden\" name=\"autologin\" value=\"1\" /></tr>
            <tr><input type=\"submit\" value=\"Влез\" class=\"etc3\" name=\"login\" /></tr>
</form>
</table>
<h5><img src='images/ip.gif ' />Твоето IP: ".$_SERVER['REMOTE_ADDR']."</h5>";   
?>
 
Еми пак така като цъкнеш ти показва друго .. и горе там менюто седи разместено.ЕТО Ти кода да го погледниш



Код:
<div class="menu1"><div style="padding-top: 4px;"><b class="hui">Вход</b></div></div> 
<div class="menu11"> 
 
	

	

<?php
	If ($user->data['user_avatar'] == NULL) { $avatar = "images/no_avatar.gif"; } else {$avatar = $user->data['user_avatar']; }

    if ($user->data['user_id'] == ANONYMOUS)
        {
        echo "<table>
<form method=\"POST\" action=\"\" >
            <tr><input type=\"text\" class=\"etc2\" name=\"username\"/></tr><br />
            <tr><input type=\"password\" class=\"etc\" name=\"password\" /></tr>
            <tr><p>Запомни ме!</p><input type=\"checkbox\" class=\"radio\" name=\"autologin\" /></tr>
            <tr><input type=\"hidden\" name=\"autologin\" value=\"1\" /></tr>
            <tr><input type=\"submit\" value=\"Влез\" class=\"etc3\" name=\"login\" /></tr>
 
Ами там горе менюто дето е разместено само това прави проблем при другите не става това а тва за цъкнето е на всякаде ето ти css


Код:
body{background:url('../img/bg.jpg')}
a:link,a:active,a:visited { text-decoration: none; color : #f8c966; }
a:hover      { text-decoration: underline; color : #bf9742; }

.logo{background:url('../img/logo.png');width:283;height:54px;margin-left:-350px;margin-top:150px;}
.con-top{background:url('../img/con-top.png');width:704px;height:30px;}
.con-center{background:url('../img/con-center.png');width:704px;height:300px;}
.con-bottom{background:url('../img/con-bottom.png');width:704px;height:30px;}
#menu{width:600px;height:61px;position:relative;top:-13px;}
.button{font-weight:bold;font-family:verdana;font-size:12px;line-height:61px;color:#fff;float:left;width:136px;margin-left:-1px;height:61px;}
.left{float:left;background:url('../img/menu-left.png');width:25px;height:61px;}
.center{float:left;background:url('../img/menu-center.png');width:540px;height:61px;}
.container{background:#7f7f7f;width:400px;height:200px;border:transparent 1px solid;-moz-border-radius:15px;float:left; margin-left:20px;   }
.right{float:left;background:url('../img/menu-right.png');width:25px;height:61px;}
.description{background:#2c2c2c;border:transparent 1px solid;-moz-border-radius:15px;height:75px;position:relative;top:125px;}
.prev{float:left;width:30px;height:30px; background:#f60;margin-left:100px;margin-top:70px;}
.next{float:right;width:30px;height:30px; background:#f60;margin-right:100px;margin-top:70px;}
.hui23 { text-align: left; }
 
Я виж тук

Код:
/*Бутони*/
input{
background-color:#000;
border: 1px solid #B1B1B1;
color:#fff;
font:13px Verdana;
}

.input{
 background: #333;
 border: #000 1px solid;
 color: #ccc;
        font:13px Verdana;
        text-align: left;
}

.input:hover, input:focus{
 background: #444;
 border: #000 1px solid;
 color: #fff;
        font:13px Verdana;
        text-align: left;
}
.button{
 background: #333;
 border: #000 1px solid;
 color: #ccc;
        font:13px Verdana;
        text-align: left;
}

.button:hover, button:focus{
 background: #444;
 border: #000 1px solid;
 color: #fff;
        font:13px Verdana;
        text-align: left;
}

/*Край на бутони*/
body { font: normal normal normal 12px Helvetica; }

.etc {
    
    margin:  7px 0 0 7px;
    width: 140px;
    height: 22px;
    background-color: transparent;
    background-image: url("http://dobrich-cs.info/images/password_bg.png");
    background-repeat: no-repeat;
    background-position: -1 -2px;
    text-indent: 20px;
    color: #fff;
    border: 0;
    }
.etc2 {
    margin: 7px 0 0 0px;
    width: 140px;
    height: 22px;
    background-color: transparent;
    background-image: url("http://dobrich-cs.info/images/username_bg.png");
    background-repeat: no-repeat;
    background-position: -1 -2px;
    text-indent: 20px;
    color: #fff;
    border: 0;
    }
.etc3 {
    margin: 7px 0 0 2px;
    width: 70px;
    height: 20px;
    background-color: transparent;
    background-image: url("http://dobrich-cs.info/images/button_bg.png");
    background-repeat: no-repeat;
    text-indent: -19px;
    color: #fff;
    border: 0;
    }
.etc4 {
    margin: 7px 0 0 2px;
    width: 200px;
    height: 20px;
    background-color: transparent;
    background-image: url("http://dobrich-cs.info/images/button_bgg.png");
    background-repeat: no-repeat;
    text-indent: -0px;
    color: #fff;
    border: 0;
    }
.etc5 {
    margin: 7px 0 0 2px;
    width: 200px;
    height: 20px;
    background-color: transparent;
    background-image: url("http://dobrich-cs.info/images/server.png");
    background-repeat: no-repeat;
    text-indent: -0px;
    color: #fff;
    border: 0;
    }



.buton {
    margin: 7px 0 0 2px;
    width: 200px;
    height: 20px;
    background-color: transparent;
    background-image: url("http://dobrich-cs.info/images/button_bg.png");
    background-repeat: no-repeat;
    text-indent: -150px;
    color: #fff;
    border: 0;
    }    

div.header{
background-image:url(images/header.JPG);background-repeat: no-repeat;
width: 930px;
height: 148px;
text-align: center;
}
div.line{

width: 900px;
height: 20px;
text-align: center;


}
div.bg2{
background-color: #1c1c1c;
border: 1px solid black;
width: 908px;



}div.bg3{
background-color: #1c1c1c;
width: 900px;


}
b.hui{
color: white;
font-family: arial;
font-weight: bold;
font-size: 12px;


}
a.admin{
color:#990000;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;

}

a.mod{
color:#000099;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;

}
a.server_admin{
color:#993399;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;

}
a.admin:visited{
color:#990000;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;

}

b.users{
color: gray;
font-family: arial;
font-weight: bold;
font-size: 12px;


}
a.users{
color: gray;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;


}
a.nepro4eteno{
color:red;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;


}
a.nepro4eteno:hover{
color:green;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;


}
a.users{
color: gray;
font-family: arial;
font-weight: bold;
font-size: 12px;


}
b.hui4е{
color: black;
font-family: arial;
font-weight: bold;
font-size: 12px;


}
a.hui4e{
color: white;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;
}
a.hui4e:hover{
color: white;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: underline;
}
b.hui2{
color: #bbbbbb;
font-family: arial;
font-weight: bold;
font-size: 12px;

}

a.typ1{ 
padding-top: 2px; 
background-image:url(images/bgbuton.png);background-repeat: no-repeat; 
width: 20px; 
height: 20px; 
color: white; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: none; 
display:inline-table;


}
a.typ1:hover{ 
padding-top: 2px; 
background-image:url(images/hover...png);background-repeat: no-repeat; 
width: 20px; 
height: 20px; 
color: white; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: none; 
display:inline-table;
}


a.typ2{ 
padding-top: 2px; 
color: white; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: none; 
display:inline-table;
}
b.typ2{ 
padding-top: 2px; 
color: white; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: none; 
display:inline-table;
}
a.hui{ 
padding-top: 2px; 
background-image:url(images/Buton.png);background-repeat: no-repeat; 
width: 110px; 
height: 20px; 
color: white; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: none; 
display:inline-table;


} 
a.hui:hover{ 
color: #bbbbbb; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: underline; 

}    


a.hui2{
color: red;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: none;
}
a.hui2:hover{
color: red;
font-family: arial;
font-weight: bold;
font-size: 12px;
text-decoration: underline;

}
div.menu11{


width: 190px;
text-align: center;
background-color: #2c2c2c;

border: 1px solid black;
display:inline-table;
border-top: 0px solid black;
}

div.menu22{


width: 500px;
background-color: #2c2c2c;
text-align: center;

border: 1px solid black;
display:inline-table;
border-top: 0px solid black;
}
div.menu33{

width: 190px;
background-color: #2c2c2c;
text-align: center;
border: 1px solid black;
border-top: 0px solid black;
display:inline-table;

}

div.space{

height: 3px;
width: 10px;
}

div.menu1{
margin-top: 5px;
background-image:url(images/menu.jpg);
width: 190px;
text-align: center;
background-color: #2c2c2c;
height: 25px;

border: 1px solid black;
display:inline-table;

}
div.menu2{
height: 25px;
margin-top: 5px;
background-image:url(images/menu2.jpg);background-repeat: no-repeat;
width: 500px;
background-color: #2c2c2c;
text-align: center;
border: 1px solid black;
display:inline-table;

}
div.news{
height: 5px;
margin-top: 1px;
background-image:url(images/menu2.jpg);background-repeat: no-repeat;
width: 350px;
background-color: #2c2c2c;
text-align: center;
border: 1px solid black;
display:inline-table;


}
div.menu3{
height: 25px;
margin-top: 5px;
background-image:url(images/menu.jpg);
width: 190px;
background-color: #2c2c2c;
text-align: center;
border: 1px solid black;
display:inline-table;

}
a.hui23{ 

background-image:url(images/haha.jpg);
border: 1px solid black;
width: 183px; 
height: 14px; 
color: white; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: none; 
display:inline-table;



} 
.urbangreymenu ul{
list-style: none;

}

a.hui23:hover{ 
color: #bbbbbb; 
font-family: arial; 
font-weight: bold; 
font-size: 12px; 
text-decoration: underline; 

}  
div.haha{



background-image:url(images/banners/468x60.png);background-repeat: no-repeat;
width: 468px;
height:60px;

margin-top: 60px;
margin-left: 320px;
border: 1px solid black;

}

#menu12{
border-top:1px solid black;
border-bottom:1px solid #161616;
background-image:url(images/menu.jpg);
height: 30px; /*Height of top section*/
}
#menu12 a {
	color: #ffffff;
	display:block;
	float:left;
	border-right:1px solid #161616;
	font-size: 13px;
	font: bold 12px Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	line-height: 28px;
	text-decoration: none;
	padding: 0 25px;
}
#menu12 a:hover {
text-decoration: none;
color: olivedrab;
}
.txtprofile_1 { margin-left: 97px; }
.txtprofile_2 { margin-left: -57px; margin-top: -107px; }

{
.topi li a {
   color: #FFFFFF;
	display: block;
   font: 14px Verdana, Arial, Helvetica, sans-serif;
	background:url(images/bg.jpg);
	padding: 2px 2px 3px 2;
	text-decoration: none;
	width: 100%;
	
}                                      
.topi li a:hover {
color:#6B8E23;
text-decoration:none;
}
input {
	font-weight: normal;
	cursor: pointer;
	vertical-align: middle;
	padding: 0 3px;
	font-size: 1em;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}
 
При мен си работи в cs-dobrich .... логин полето.Може да ти е от браузера.Ама дори от там да е проблема трябва да се оправи иначи кофти за хората който имат като твоя браузер.
 
Проблема ти идав от hover или focus на някой елемент.
Все пак ти си писал CSS-а по добре трябва да знаеш кое къде е и защо :)
И все пак [css].input:hover, input:focus{
background: #444;
border: #000 1px solid;
color: #fff;
font:13px Verdana;
text-align: left;
}[/css]
Махаш и воала ;)
 
dashe стана мерси много някой знае ли за този проблем със менюто ?

tedy96 като си писал ти тези кодове знаеш ли как да искарвам статистика от форум за общо теми и т.н онлайн във момента...
 
Също така ако може да ми кажите как да напиша нещо под това.

Код:
echo "<h5><img src='images/ip.gif'>Твоето IP: ".$_SERVER['REMOTE_ADDR'];
Искам под него да напиша Здравейте но като го напиша ми се бъгва сайта.
 
Покажи как го пишеш.И това здравейте като си логнат ли да се показва или изобщо?
 

Back
Горе