Да показва текства във ляво

racer

Registered
Във момента показва текста централно искам да се направи да го показва във ляво ... ето кода

Код:
<a class="hui23" href="index.php"><img src="images/icons/home.png"> Начало</a><br/>
 
HTML:
<a class="hui23" href="index.php" align="left""><img src="images/icons/home.png"> Начало</a><br/>
Ако не стане дай css на този клас.
 
не стана ето ти 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;}
 
Нямаш class с това име, което не смятам да споменавам... Направи си и му задай: text-align: left;

[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; } [/css]
 
Пак не става слагам ето този код
Код:
<a class="hui23" href="index.php" align="left""><img src="images/icons/home.png"> Начало</a><br/>

Сложих и този css дето ми дава и пак същото седи във центъра
 
HTML:
<a  href="index.php" class="hui23"><img src="images/icons/home.png"> Начало</a><br/>

Това явно седи в някакъв друг div, на който му е зададено централно подравняване...
 
Не виждам причина защо да не "става".... Най-вероятно имаш някакъв див, на който му е зададено централно подравняване и този .hui23 е в него... Изкарай го извън него. Може ли демо?
 

Back
Горе