@Vikki777

Блоки идут лесенкой, как исправить?

5f9160e8058cd431971461.jpeg

Добрый день, такая вот проблема: выставляю float:left и блоки идут лесенкой. С чем связана проблема?

spoiler
<div class="full-news-left">
	
		<div class="full-news-content">
			{full-story}
		</div>
		<div style="clear: both;height: 50px;"></div>
		{comments}
		<div class="hidden-comment">
		
			<div class="hidden-comment-form">
				{addcomments}
			</div>
		</div>
	</div>


/* Полная новость */		
.full-news {
	padding: 30px 320px 30px 20px;
	background: #232323;
	
}

.full-rel {
	position: relative;
	padding: 50px 0 0 0;
}

.full-rel2 {
	position: relative;
	left: -20px;
	width: 1020px;
}

.full-news-left {
		position: relative;
}

.full-news-right {
	position: absolute;
	right: 20px;
	width: 250px;
	min-height: 100px;
	top: 30px;
}

	.full-news-right2 {
		background: #232323;
		padding: 15px 25px 25px 25px;
		margin: 0 0 20px 0;
	}
	
		.full-news-banner {
			margin: 0 0 20px 0;
		}
	
		.full-news-right2-title {
			font-size: 18px;
			color: #B4AD9A;
			font-family: "Ubuntu Condensed", sans-serif;
			padding: 0 0 10px 0;
		}
		
		.full-news-line {
		    border-bottom: 1px dotted #a1987f;
			height: 24px;
			line-height: 24px;
			font-size: 14px;
			padding: 0 0 0 5px;
			position: relative;
			margin: 0 0 15px 0;
			color: #B4AD9A;
			clear: both;
		}
		
			.full-news-line img {
				position: absolute;
				left: 0;
				top: 0;
				
			}
			
			.full-news-line a {
				color: #B4AD9A;
			}
			
			.full-news-line .rating {
				padding: 5px 0 0 0;
			}

	.full-news h1 {
		font-size: 24px;
		color: #d35400;
		line-height: 30px;
		font-family: "Ubuntu Condensed", sans-serif;
		margin: 0 0 20px 0;
	}
	
	.full-news-content {
	  
		color: #B4AD9A;
		line-height: 17px;
		font-size: 14px;
}
	
		.full-news-content img {
		
	   float:left;
	   width:200px;
       height:200px;
	}
  • Вопрос задан
  • 233 просмотра
Пригласить эксперта
Ответы на вопрос 1
Mecitan
@Mecitan
Уверенный пользователь клавиатуры
Используйте Flex-box. Будет проще и удобней выставлять блоки.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы