Почему текст отображается в футере?

Статус
Закрыто для дальнейших ответов.

Morris Jerald

Новичок
Регистрация
01.11.2017
Сообщения
3
Доброго времени суток, форумчане :)
При создании сайта столкнулся со следующей проблемой:
-текст, который должен быть в <section> отображается в футере.
Спасибо!
Сайт: shveypokrov.ru
Код прикреплён.

Код:
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>ШвейПокров</title>
	<link rel="stylesheet" href="css/main.css">
</head>
<body>
 	<div id="page-wrapper">
		<header class="clearfix">
			<div class="container">
				<div class="logo">
					<img src="img/logo.png" alt="ШвейПокров" class="logo">	
				</div>
				<div class="titles">
					<div class="title__first">
						"ШвейПокров"
					</div>
					<h1>Православная швейная мастерская</h1>
					<div class="title__second">
						доставка по всей России
					</div>
				</div>
				<div class="main__menu">
					<ul class="menu">
						<li>
							<a href="#" id="izdeliya">Изделия</a>
						</li>
						<li>
							<a href="#" id="Kontakty">Контакты</a>
						</li>
						<li>
							<a href="#" id="O__nas">О нас</a>
						</li>
					</ul>
				</div>
			</div>
		</header>

		<section>
			<div class="container1">
				<div class="spisok">
					<ul>
						<li><a class="text-div" href="#"><p>Облачения</p></a></li>
						<li><a class="text-div" href="#"><p>Подризники</p></a></li>
						<li><a class="text-div" href="#"><p>Стихари</p></a></li>
						<li><a class="text-div" href="#"><p>Рясы</p></a></li>
						<li><a class="text-div" href="#"><p>Подрясники</p></a></li>
						<li><a class="text-div" href="#"><p>Головные уборы</p></a></li>
						<li><a class="text-div" href="#"><p>Для монахов</p></a></li>
						<li><a class="text-div" href="#"><p>Крещальные наборы</p></a></li>
						<li><a class="text-div" href="#"><p>Венчальные наборы</p></a></li>
						<li><a class="text-div"href="#"><p>Облачения для храма</p></a></li>
						<li><a class="text-div" href="#"><p>Вышитые кресты</p></a></li>
						<li id="ugol"><a class="text-div" href="#"><p>Церковный уголь</p></a></li>
					</ul>	
				</div>
				<div class="Nashi_Tseny">
					<div>
				 		<h2>Наши цены:</h2>
					</div>
					<div>
						<p>
							<p>Облачения:<p>
							-иерейские шелковые от 8000  рублей с шикарными галунами
							-иерейские парчевые от 9000 рублей* 
							Подрясники:

							Подризники:
							Рясы:
							Стихари:
							Скуфии:от 800 рублей;
							Камилавки:от 1700
							Крещальные:
							Облачения для храма:
							Вышитые кресты:
							Кадильный уголь:

							*парчевые облачения с индийскими галунами шьются по заказу
						</p>
					</div>
				</div>
			</div>
		</section>
	
		<footer>
		<div class="container">
				
		</div>
		</footer>
	</div>
</body>
</html>
Код:
@import url('https://fonts.googleapis.com/css?family=Lobster');
@import url('https://fonts.googleapis.com/css?family=Play');
/*This is CSS RESET*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*This is the END of CSS RESET*/
/*This is the END of CSS RESET*/
/*This is the END of CSS RESET*/

body, html {
	background-color: #B63D32;
	margin: 0 auto;
	padding: 0;
	position: relative;
}
div {
	box-sizing: border-box;
}
#page-wrapper {
	width: 100%;
	font: 100%/1.4em,Helvetica,Arial,sans-serif;
    margin: 0;
    padding: 0;
 }
header{
	width: 96.1%;
	min-height: 202px;
	/*border*/
	border-top: 22px solid #000;
	border-bottom: 13px solid #000;
	border-left: 21.5px solid #000;
	border-right: 22px solid #000;
	margin: 0 auto;
	/*border ends*/
}
.container {
	max-width: 898px;
	margin: 0 auto;
}
.logo {
	width: 85px;
	height: 86px;
	margin: 0 auto;
	padding-top: 2px;
	padding-right: 11.2%;
}
.title__first {
	margin-top: 4px;
	margin-left: 0px;
	padding-right: 14px;
	font-size: 36px;
	font-family: Impact, sans-serif;
	color: #fff;
	text-shadow: 0px 4px rgba(0, 0, 0, .34);
	text-align: center;
}
h1 {
	font-size: 17px;
	font-family: Lobster, sans-serif;
	letter-spacing: 1px; 
	font-weight: normal;
	color: #fff;
	text-align: center;
	margin-top: 2px;
	margin-right: 8px;
}
.title__second {
	font-size: 18px;
	color: #000000;
	font-family: Impact, sans-serif;
	text-shadow: 1px 0.5px 3px rgba(255,255,255,0.6);
	background-color: #666666;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
	letter-spacing: -0.55px;
	text-align: center;
	margin-top: 0.5px;
	margin-left: 0px;
	padding-right: 3px;
}
.main__menu {
	height: 15px;
	float: none;
	margin-top: 2.3%;
}
.main__menu ul li > a:hover {
	color: black;
	transition: 0.4s;
}
.menu {
	padding: 0;
	margin: 0;
	display: block;
}
ul {
	padding-top: 11px;
}
.menu li {
	float: left;
	display: block;
	margin: 0 auto;
	width: 33%;
	text-align: center;
}
.menu li a {
	color: #fff;
	text-decoration: none;
	font-size: 19px;
	font-family: Courier, sans-serif;
	font-weight: bolder;
}
section {
	width: 96.1%;
	height: 598px;
	/*border*/
	border-bottom: 13px solid #000;
	border-left: 22px solid #000;
	border-right: 22px solid #000;
	margin: 0 auto;
	margin-top: -16px;

	/*border ends*/ 
}
.container1 {
	height: 598px;
	margin-left: 0px;
	margin-top: 16px;
	margin-right: 0px;
	background-color: #BFBFBF;
	background-image: url(../img/fon.png);
	-webkit-background-size: cover; /* Для хрома */
	-moz-background-size: cover;  /* Для лисы*/
	-o-background-size: cover;  /* Для оперы*/
	-ms-background-size: cover;  /* Для ИЭ*/
	background-size: cover;  /* Для закрипления*/
	background-position: 19%;
	background-repeat: no-repeat;
}
.spisok {
	height: 598px; 
	width: 230px;
	background-color: #7B2019;
	/*border*/
	border-bottom: 0px solid #000;
	border-left: 0px solid #000;
	border-right: 18px solid #000;
	/*border ends*/ 
} 
.spisok li {
	width: 195px;
	height: 45px;
	display: block;
	margin-top: 3px;
	margin-right: 10px;
	margin-left: 9px;
	background-image: url(../img/span_menu.png);	
	background-size: cover;
}
.spisok li a {
	width: 100%;
	height: 100%;
	text-decoration: none;
	font-family: Play, sans-serif;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	position: relative;
	display: list-item;
    text-align: -webkit-match-parent;
    text-align: center;
}
.spisok ul 	> li:hover {
	background-image: url(../img/span_menu_hover2.png);
	background-repeat: no-repeat;
	background-size: cover;
	transition: 0.3s;
}
.spisok ul li a p {
	padding-top: 14px;
} 

}

.text-div {
	width: 158px;
	height: 30px;
	text-align: center;
	;

}
.Nashi_Tseny {
	text-align: center;
	margin: 0 auto;
}



footer {
	width: 96.1%;
	height: 115px;
	/*border*/
	border-bottom: 15px solid #000;
	border-left: 22px solid #000;
	border-right: 22px solid #000;
	margin: 0 auto;
	/*border ends*/
}
 

Volly

Well-Known Member
Регистрация
21.03.2012
Сообщения
833
.spisok является блочным элементом, а значит по умолчанию занимает место по всей имеющейся ширине, не смотря на то, что указана у него ширина меньшая. Чтобы разрешить другим блокам или тексту занять место справа надо явно указать для .spisok обтекание: float: left;
 

Bagabas

Member
Регистрация
22.12.2017
Сообщения
17
Видимо вы его поместили в футер.
 
Статус
Закрыто для дальнейших ответов.
Верх Низ