Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Верстка в опере поехала, почему?


Recommended Posts

Я имел ввиду блоки поехали в тексте)) 

За меню спасипотому что, сгделаю))

А вот блоки почему едут? В хроме все ровно 

Link to comment
Share on other sites


1 час назад, qvaro сказал:

А вот блоки почему едут? В хроме все ровно 

Ничего в хроме не ровно. У вас никаких шагов не предпринято по поводу выравнивания данных блоков.

Вот в чём прилина, блоки 1, 2 и 3 разной высоты:

Спойлер

image.png.b1d99fe3ae8fda23dcd82411d9066736.png

 

Надо или гделать блоки одинаковой высоты.

Или решать это стилями. Например, как сгделано в гдефолтной теме:

@media (min-width: 1200px) {
	#content .col-lg-2:nth-child(6n+1),
	#content .col-lg-3:nth-child(4n+1),
	#content .col-lg-4:nth-child(3n+1),
	#content .col-lg-6:nth-child(2n+1) {
		clear:left;
	}
}
@media (min-width: 992px) and (max-width: 1199px) {
	#content .col-md-2:nth-child(6n+1),
	#content .col-md-3:nth-child(4n+1),
	#content .col-md-4:nth-child(3n+1),
	#content .col-md-6:nth-child(2n+1) {
		clear:left;
	}
}
@media (min-width: 768px) and (max-width: 991px) {
	#content .col-sm-2:nth-child(6n+1),
	#content .col-sm-3:nth-child(4n+1),
	#content .col-sm-4:nth-child(3n+1),
	#content .col-sm-6:nth-child(2n+1) {
		clear:left;
	}
}

 

 

А ещё у вас левые элементы в BS сетке, которые не являются элеменими этот сетки:

Спойлер

 

  • +1 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.