質問編集履歴
1
失礼致しました。すべてのHTML,CSSを載せました。#sei,#meiのinputを横並びにしたいです。
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,7 +2,45 @@
|
|
2
2
|
display:inlineをしても改行されています。
|
3
3
|
|
4
4
|
```html
|
5
|
-
<
|
5
|
+
<!doctype html>
|
6
|
+
<html lang="ja">
|
7
|
+
<head>
|
8
|
+
<!-- Required meta tags -->
|
9
|
+
<meta charset="utf-8">
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
11
|
+
|
12
|
+
<!-- Bootstrap CSS -->
|
13
|
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
|
14
|
+
<link rel="stylesheet" href="css/custom.css">
|
15
|
+
|
16
|
+
<!--webawesomeのスクリプト-->
|
17
|
+
<script src="https://kit.fontawesome.com/5136400a27.js" crossorigin="anonymous"></script>
|
18
|
+
|
19
|
+
<!-- bootstrap-datepicker(カレンダー機能)を読み込む -->
|
20
|
+
<link rel="stylesheet" type="text/css" href="../bootstrap-datepicker-1.6.4-dist/css/bootstrap-datepicker.min.css">
|
21
|
+
<script type="text/javascript" src="../bootstrap-datepicker-1.9.0-dist/js/bootstrap-datepicker.min.js"></script>
|
22
|
+
<script type="text/javascript" src="../bootstrap-datepicker-1.9.0-dist/locales/bootstrap-datepicker.ja.min.js"></script>
|
23
|
+
|
24
|
+
<title>ホームページリスト1</title>
|
25
|
+
</head>
|
26
|
+
<body>
|
27
|
+
<header>
|
28
|
+
<a href="#"><i class="fas fa-campground fa-2x"></i></a>
|
29
|
+
</header>
|
30
|
+
<div class="container">
|
31
|
+
<div class="row">
|
32
|
+
<div class="col-md-6 left-con">
|
33
|
+
<h3>魅力的な会社の情報をチェック!</h3>
|
34
|
+
<h2>
|
35
|
+
東京にある仮想の魅力的な会社に
|
36
|
+
オファーして月の売り上げを<span id="hyaku-color">100万円</span>達成しよう。
|
37
|
+
</h2>
|
38
|
+
<div id="left-con-p">
|
39
|
+
<a href="#">売上を劇的にアップする方法</a>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
<div class="col-md-6">
|
43
|
+
<form class="right-form">
|
6
44
|
<div class="mb-3">
|
7
45
|
<label for="exampleInputEmail1" class="form-label">開催日</label>
|
8
46
|
<input type="date" class="form-control" id="exampleInputEmail1 date_sample" aria-describedby="emailHelp">
|
@@ -12,9 +50,99 @@
|
|
12
50
|
<input type="text" class="form-control" id="sei" placeholder="姓">
|
13
51
|
<input type="text" class="form-control" id="mei" placeholder="名">
|
14
52
|
</div>
|
53
|
+
<div class="top-submit">
|
54
|
+
<button type="submit" class="btn btn-primary top-submit-in">売上アップ講座に申し込む</button>
|
55
|
+
</div>
|
56
|
+
</form>
|
15
57
|
|
16
|
-
|
17
|
-
|
58
|
+
</div>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Optional JavaScript; choose one of the two! -->
|
64
|
+
|
65
|
+
<!-- Option 1: Bootstrap Bundle with Popper -->
|
66
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
|
67
|
+
|
68
|
+
<!-- Option 2: Separate Popper and Bootstrap JS -->
|
69
|
+
<!--
|
70
|
+
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
|
71
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
|
72
|
+
-->
|
73
|
+
</div>
|
74
|
+
</body>
|
75
|
+
</html>
|
18
76
|
```
|
77
|
+
```CSS
|
78
|
+
body{
|
79
|
+
font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif;
|
80
|
+
font-size: 20x;
|
81
|
+
line-height: 1.43;
|
82
|
+
color: #484848;
|
83
|
+
background-color: rgb(245, 238, 238);
|
84
|
+
margin: 0px;
|
85
|
+
/*fontをスムーズに表示させる*/
|
86
|
+
-webkit-font-smoothing: antialiased;
|
19
87
|
|
88
|
+
}
|
89
|
+
|
90
|
+
header{
|
91
|
+
padding-left:10px;
|
92
|
+
padding-top:20px;
|
93
|
+
}
|
94
|
+
|
95
|
+
header i {
|
96
|
+
color:#888;
|
97
|
+
}
|
98
|
+
|
99
|
+
.container h3{
|
100
|
+
font-size:22px;
|
101
|
+
/*太文字にする*/
|
102
|
+
font-weight: bold;
|
103
|
+
}
|
104
|
+
|
105
|
+
.container h2{
|
106
|
+
font-size:40px;
|
107
|
+
font-weight: bold;
|
108
|
+
margin: 30px 0;
|
109
|
+
}
|
110
|
+
|
111
|
+
#hyaku-color{
|
112
|
+
color: rgb(231, 89, 118);
|
113
|
+
}
|
114
|
+
|
115
|
+
.left-con{
|
116
|
+
padding-top:40px;
|
117
|
+
}
|
118
|
+
|
119
|
+
#left-con-p a{
|
120
|
+
color: #484848;
|
121
|
+
}
|
122
|
+
|
123
|
+
#sei{
|
124
|
+
width: 200px;
|
125
|
+
}
|
126
|
+
|
127
|
+
#mei{
|
128
|
+
width: 200px;
|
129
|
+
}
|
130
|
+
|
131
|
+
form.right-form{
|
132
|
+
background-color: white;
|
133
|
+
padding: 20px;
|
134
|
+
/*角を丸くする*/
|
135
|
+
border-radius: 20px;
|
136
|
+
}
|
137
|
+
|
138
|
+
.top-submit{
|
139
|
+
text-align: center;
|
140
|
+
}
|
141
|
+
|
142
|
+
.top-submit-in{
|
143
|
+
background-color: black;
|
144
|
+
color: white;
|
145
|
+
}
|
146
|
+
```
|
147
|
+
|
20
148
|
idがseiとmeiが横並びにするには、CSSでどうすればいいでしょうか?
|