Все очень просто. Горизонтальной полосы нету, потому что сайт у вас отображается на весь экран мобильного. Приходится пальцами зумировать.
С шрифтом беда, потому что в пикселях указан.
Спасибо!
А это особенность json строк?
Было:
[{"id":"3","color":"20","quantity":"13"},{"id":"1","color":"613","quantity":"18"},{"id":"2","color":"27H","quantity":"13"},{"id":"1","color":"27H","quantity":"33"}]
После того как удалил массив, стало:
{"0":{"id":"3","color":"20","quantity":"13"},"2":{"id":"2","color":"27H","quantity":"13"},"3":{"id":"1","color":"27H","quantity":"33"}}
То есть вначале новых массивов появились {"0",.. "2",.. "3"..
Это номер массива? Я правильно понимаю? )
Зато потом если добавляю новый массив, эти номера пропадают.
У меня назрел вопрос. А если делать резиновый сайт, и тянуть за уголок браузера, логично предположить что 3 блок станет вторым или если расширяем - четвертым, то выходит уже nth:of-type не отделаешься. Верно?
Как быть в этом случае?? : D
@media ? )
А чего это всех на якоря потянуло? :D
Спасибо за инфу )
.class_name:last-of-type {margin-right: none;}
В папке images?
У вас все идет сплошняком - стили не подключены.
Проверьте имя и путь до стилевого файла.
<head>
<link rel="stylesheet" href="style.css">
</head>
<style>
.grid:after {
content: " ";
display: table;
clear: both;
}
[class*='col-'] {
float: left;
*, *:after, *:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
.col-1 {width: 8.33333333%;}
.col-2 {width: 16.66666667%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33333333%;}
.col-5 {width: 41.66666667%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33333333%;}
.col-8 {width: 66.66666667%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33333333%;}
.col-11 {width: 91.66666667%;}
.col-12 {width: 100%;}
.block_one {background-color: red;}
.block_two {background-color: blue;}
.block_three {background-color: green;}
</style>
<div class="container">
<div class="grid">
<div class="col-9">
<div class="block_one">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
<div class="block_two">
<div class="block_three">
<div class="col-3">
А как менять свойство в <body> при клике по ссылке?