Спасибо,дошло.
А можешь ещё подсказать как правильно задать стили что б не резало (ну и фотки адаптивные были) ?
Вот пример
http://codepen.io/anon/pen/VpMvxb
HTML5 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| <div class=" block-jumbotron container-fluid">
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="jumbotron-textBox">
<h2 class="jumbotron-textBox__mainPhrathe text-white">It's easy</h2>
<h3 class="jumbotron-textBox__article text-lightblue">Search</h3>
<p class="jumbotron-textBox__simpleText text-white">Know what you want to listen to? Just search and
hit play.</p>
<h3 class="jumbotron-textBox__article text-lightblue">Browse</h3>
<p class="jumbotron-textBox__simpleText text-white">Check out the latest charts, brand new releases
and great playlists for right now.</p>
<h3 class="jumbotron-textBox__article text-lightblue">Discover</h3>
<p class="jumbotron-textBox__simpleText text-white">Enjoy new music every Monday with your own
personal playlist. Or sit back and enjoy Radio.</p>
</div>
</div>
<div class="col-sm-8">
<div class="jumbotron-images">
<div class="row">
<div class="col-xs-4">
<div class="jumbotron-images__iphone iphone1"><img class="iphone-block__img" src="https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/mobilePhones/iphone-1a.jpg?raw=true" alt="iphone"></div>
</div>
<div class="col-xs-4">
<div class="jumbotron-images__iphone iphone2"><img class="iphone-block__img" src="https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/mobilePhones/iphone-2.jpg?raw=true" alt="iphone"></div>
<div class="jumbotron-images__iphone iphone3"><img class="iphone-block__img" src="https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/mobilePhones/iphone-3.jpg?raw=true" alt="iphone"></div>
</div>
<div class="col-xs-4">
<div class="jumbotron-images__iphone iphone4"><img class="iphone-block__img" src="https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/mobilePhones/iphone-4.jpg?raw=true" alt="iphone"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> |
|
CSS |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| .block-jumbotron{
position: relative;
width: 100%;
height: 650px;
margin-top: 3%;
box-sizing: border-box;
background: url("https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/mobilePhones/bg-albums.png?raw=true"), linear-gradient(-130deg, #8628b5 30%, #ED1E79) 50% 50% repeat;
background-attachment: fixed;
font-family: Circular,Helvetica,Arial,sans-serif;
}
.text-white{
color: #fff;
}
.text-lightblue{
color: #9bf0e1;
}
.jumbotron-textBox__mainPhrathe{
font-size: 50px;
font-weight: 700;
letter-spacing: -.04em;
line-height: 1;
margin: 0 0 .75em;
margin-top: 2em;
}
.jumbotron-textBox__article{
margin-top: 24px;
margin-bottom: 12px;
font-size: 40px;
font-weight: 700;
letter-spacing: -.04em;
}
.jumbotron-images{
width: 100%;
height: 100%;
border: 1px solid yellow;
transform: rotate(30deg);
}
.jumbotron-images__iphone{
/*width: 179px;*/
min-height: 365px;
padding: 40px 11px 0;
margin-bottom: 15px;
background: url("https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/mobilePhones/iphone-klein-purple.png?raw=true") no-repeat;
background-size: cover;
}
.iphone-block__img{
display: block;
max-width: 100%;
height: auto;
vertical-align: middle;
}
.iphone1, .iphone4{
margin-top: 50%;
} |
|
Вернуться к обсуждению:
Как сделать такой фон? HTML, CSS