質問編集履歴
1
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -69,3 +69,163 @@
|
|
69
69
|
と書いても左によりませんでした。
|
70
70
|
|
71
71
|
どう直したら画像を左に寄せられるでしょうか?
|
72
|
+
|
73
|
+
html全体には
|
74
|
+
|
75
|
+
```ここに言語を入力
|
76
|
+
|
77
|
+
{% load static%}
|
78
|
+
|
79
|
+
<html lang="ja">
|
80
|
+
|
81
|
+
<head>
|
82
|
+
|
83
|
+
<meta charset="UTF-8">
|
84
|
+
|
85
|
+
<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
|
86
|
+
|
87
|
+
<link rel="stylesheet" href="{% static 'accounts/detail.css' %}">
|
88
|
+
|
89
|
+
<link rel="stylesheet" href="{% static 'bootflat/css/bootflat.min.css' %}">
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<title>XOXO</title>
|
90
|
+
|
91
|
+
</head>
|
92
|
+
|
93
|
+
<body>
|
94
|
+
|
95
|
+
<header class="clearfix">
|
96
|
+
|
97
|
+
<nav>
|
98
|
+
|
99
|
+
<h1 class="box title">XOXO</h1>
|
100
|
+
|
101
|
+
<div class="container">
|
102
|
+
|
103
|
+
<form name="logout" method="post" action="{% url 'accounts:logout' %}">
{% csrf_token %}
|
104
|
+
|
105
|
+
<button type="submit" class="box btn btn-primary" style="color:white">ログアウト</button>
|
106
|
+
|
107
|
+
<input name="next" type="hidden"/>
|
108
|
+
|
109
|
+
</form>
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
</nav>
|
114
|
+
|
115
|
+
</header>
|
116
|
+
|
117
|
+
<div align="left">
|
118
|
+
|
119
|
+
<img class="detailimg" src="{% static 'detail.jpg' %}" alt="詳細">
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="icon_wrapper">
|
124
|
+
|
125
|
+
<h3>I love you</h3>
|
126
|
+
|
127
|
+
<p>miss you</p>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</body>
|
132
|
+
|
133
|
+
</html>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
```
|
138
|
+
|
139
|
+
とコードをかいてcss全体には
|
140
|
+
|
141
|
+
```ここに言語を入力
|
142
|
+
|
143
|
+
*{
|
144
|
+
|
145
|
+
margin: 0;
|
146
|
+
|
147
|
+
padding: 0;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
.clearfix::after{
|
152
|
+
|
153
|
+
content: "";
|
154
|
+
|
155
|
+
clear: both;
|
156
|
+
|
157
|
+
display: block;
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
header{
|
162
|
+
|
163
|
+
width: 100%;
|
164
|
+
|
165
|
+
height: 100px;
|
166
|
+
|
167
|
+
background-color: pink;
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
nav{
|
172
|
+
|
173
|
+
width: 90%;
|
174
|
+
|
175
|
+
height: 60px;
|
176
|
+
|
177
|
+
margin: 0 auto;
|
178
|
+
|
179
|
+
text-align: left;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
.top-menu{
|
186
|
+
|
187
|
+
float: right;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
.box{
|
194
|
+
|
195
|
+
float: left;
|
196
|
+
|
197
|
+
float:left;
|
198
|
+
|
199
|
+
color:white;
|
200
|
+
|
201
|
+
margin-top:10px;
|
202
|
+
|
203
|
+
padding-top:-30px;
|
204
|
+
|
205
|
+
padding-bottom:30px;
|
206
|
+
|
207
|
+
padding-left:80px;
|
208
|
+
|
209
|
+
padding-right:80px;
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
.title{
|
216
|
+
|
217
|
+
font-size: 70px;
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
.detailimg{
|
224
|
+
|
225
|
+
float: left;
|
226
|
+
|
227
|
+
display: flex;
|
228
|
+
|
229
|
+
}
|
230
|
+
|
231
|
+
```
|