teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

言語名追加

2018/04/18 07:53

投稿

garter
garter

スコア8

title CHANGED
File without changes
body CHANGED
@@ -20,8 +20,7 @@
20
20
  <meta name="viewport" content="width=device-width,initial-scale=1">
21
21
  ```ここに言語を入力
22
22
  コード
23
- ```
23
+ ```html
24
-
25
24
  <!DOCTYPE html>
26
25
  <html>
27
26
  <head>
@@ -59,8 +58,7 @@
59
58
 
60
59
 
61
60
  ``````ここに言語を入力
62
- コード
63
- ```
61
+ ```css
64
62
 
65
63
  body {
66
64
  margin: 0;

2

コード分けしました

2018/04/18 07:53

投稿

garter
garter

スコア8

title CHANGED
File without changes
body CHANGED
@@ -18,8 +18,10 @@
18
18
 
19
19
  ```ここに言語名を入力
20
20
  <meta name="viewport" content="width=device-width,initial-scale=1">
21
+ ```ここに言語を入力
22
+ コード
23
+ ```
21
24
 
22
- HTML
23
25
  <!DOCTYPE html>
24
26
  <html>
25
27
  <head>
@@ -27,7 +29,6 @@
27
29
     <meta name="viewport" content="width=device-width,initial-scale=1">
28
30
  <title>--</title>
29
31
  <link rel="stylesheet" href="stylesheet.css">
30
-    <link rel="stylesheet" href="stylesheet-responsive.css" >
31
32
   </head>
32
33
   <body>
33
34
  <div class="main-wrapper">
@@ -55,7 +56,12 @@
55
56
  <body>
56
57
  </html>
57
58
 
59
+
60
+
61
+ ``````ここに言語を入力
58
- css
62
+ コード
63
+ ```
64
+
59
65
  body {
60
66
  margin: 0;
61
67
  font-family: "Hiragino Kaku Gothic ProN";

1

HTMLとCSSを追記しました

2018/04/18 07:51

投稿

garter
garter

スコア8

title CHANGED
File without changes
body CHANGED
@@ -18,7 +18,142 @@
18
18
 
19
19
  ```ここに言語名を入力
20
20
  <meta name="viewport" content="width=device-width,initial-scale=1">
21
+
22
+ HTML
23
+ <!DOCTYPE html>
24
+ <html>
25
+ <head>
26
+ <meta charset="utf-8">
27
+    <meta name="viewport" content="width=device-width,initial-scale=1">
28
+ <title>--</title>
29
+ <link rel="stylesheet" href="stylesheet.css">
30
+    <link rel="stylesheet" href="stylesheet-responsive.css" >
31
+  </head>
32
+  <body>
33
+ <div class="main-wrapper">
34
+ <div class="container">
35
+ <div class="copy">
36
+ <h1>ーー</h1>
37
+ </div>
38
+ <img src="aa.png" class="aa">
39
+ <div class="points">
40
+ <div class="point">
41
+ <span class="sircle"></span>
42
+ <h2 class="sircle-po">ーー</h2>
43
+ </div>
44
+ <div class="point">
45
+ <span class="sircle"></span>
46
+ <h2 class="sircle-po">ーー</h2>
47
+ </div>
48
+ <div class="point">
49
+ <span class="sircle"></span>
50
+ <h2 class="sircle-po">ーー</h2>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ <body>
56
+ </html>
57
+
58
+ css
59
+ body {
60
+ margin: 0;
61
+ font-family: "Hiragino Kaku Gothic ProN";
62
+ }
63
+
64
+ html,body{
65
+ width: 100%;
66
+ }
67
+
68
+ .img {
69
+ vertical-align:bottom;
70
+ }
71
+
72
+
73
+ h1 {
74
+ font-size: 80px;
75
+ color: #111e3e;
76
+ }
77
+
78
+ p {
79
+ font-size: 16px;
80
+ color: #111e3e;
81
+ }
82
+
83
+
84
+ .container {
85
+ width: 100%;
86
+ max-width: 1040px;
87
+ padding: 0 15px;
88
+ margin: 0 auto;
89
+ }
90
+
91
+ * {
92
+ box-sizing: border-box;
93
+ }
94
+
95
+ .main-wrapper {
96
+ margin-top: 60px;
97
+ background-color: green;
98
+ background-size: cover;
99
+ position: relative;
100
+ vertical-align: bottom;
101
+ width: 100%;
102
+ }
103
+
104
+ .aa {
105
+ display: inline-block;
106
+ height: 100%;
107
+ position: absolute;
108
+ bottom: 0%;
109
+ left: 50%;
110
+ }
111
+
112
+ .span {
113
+ display: block;
114
+ }
115
+
116
+ .copy h1 {
117
+ font-size: 46px;
118
+ color: #111e3e;
119
+ padding-top: 100px;
120
+ }
121
+
122
+ .copy span {
123
+ font-size:80px;
124
+ }
125
+
126
+ .sircle {
127
+ display: inline-block;
128
+ width: 185px;
129
+ height: 185px;
130
+ border-radius: 50%;
131
+ background-color: #111e3e;
132
+ }
133
+
134
+ .sircle-po {
135
+ position: absolute;
136
+ text-align: center;
137
+ color: white;
138
+ display: inline-block;
139
+ left: 0;
140
+ top: 0;
141
+ width: 185px;
142
+ font-weight: normal;
143
+ }
144
+
145
+ .points {
146
+ padding: 130px 0 300px 0;
147
+ }
148
+
149
+ .point {
150
+ float: left;
151
+ margin: 0 30px;
152
+ position: relative;
153
+ }
154
+
21
155
  ```
156
+ ![イメージ説明](aa3e4936bb826f4a9be5e5f0692bce08.png)
22
157
 
23
158
  ### 試したこと
24
159
  ・width=device-widthを消す