Обучение/Помощь новичкам | Помогите решить проблему с <center>
Есть проблема, хочу вывести 2 кнопки по центру вроде всё правильно написано
ну не хочет ставить по центру
body{
color: white;
background:black;
}
head{
color: white;
}
h2{
color:silver;
}
a{
color:green;
}
буду благодарен за помощь
------
48184_S7073006131250.jpg (223.8 Kb)
Скачиваний: 66
ну не хочет ставить по центру
[/q]html
<html>
<head>
<meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" >
<title> Страница регистрации </title>
</head>
<body>
<center>
<p>
<h2>
Путь к вальхалу
</h2>
</p>
</center>
<center>
<img src="img/start.jpg" width = "226">
</center>
<link rel=stylesheet href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</br>
<center>
Тьма сгущается над миром . Кровь, голод и смерть уже давно стали полноправными хозяевами.Хочешь помочь? Заходи и сразись!
</center>
</br>
<form action = "user/registration.php"
<center>
<input type =
"image" src =
"img/start_game.jpeg"
name = "старт" value
= "start.php" />
</center>
</form>
<form action = "user/registration.php"
<center>
<input type =
"image" src =
"img/sign.jpeg"
name = "start " value
= "load.php" />
</center>
</form>
<a href = "index.php">Путь к вальхалу</a> © 2017
<a href = "agreement.php">Соглашение</a>
</body>
</html>
[q]
css <html>
<head>
<meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" >
<title> Страница регистрации </title>
</head>
<body>
<center>
<p>
<h2>
Путь к вальхалу
</h2>
</p>
</center>
<center>
<img src="img/start.jpg" width = "226">
</center>
<link rel=stylesheet href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</br>
<center>
Тьма сгущается над миром . Кровь, голод и смерть уже давно стали полноправными хозяевами.Хочешь помочь? Заходи и сразись!
</center>
</br>
<form action = "user/registration.php"
<center>
<input type =
"image" src =
"img/start_game.jpeg"
name = "старт" value
= "start.php" />
</center>
</form>
<form action = "user/registration.php"
<center>
<input type =
"image" src =
"img/sign.jpeg"
name = "start " value
= "load.php" />
</center>
</form>
<a href = "index.php">Путь к вальхалу</a> © 2017
<a href = "agreement.php">Соглашение</a>
</body>
</html>
[q]
body{
color: white;
background:black;
}
head{
color: white;
}
h2{
color:silver;
}
a{
color:green;
}
буду благодарен за помощь
------
Скачиваний: 66
blackheard , а без <div> никак?
251948503 , а чем див неустраивает. Откривай перед первым форм и закрывай после второго закрытого
blackheard , попробувал с div тоже самое
Выставь для ссылок ширину и пропиши для них margin: 0 auto;
ds[sms] , Примерчик в студию, я начинающий
ds[sms] , Примерчик в студию, я начинающий
251948503 ,
a {
display: block;
min-width: 300px;
margin: 0 auto;
}
ds[sms] , не помогло
