modal werkt niet/structureren lukt niet
Ik ben bezig met een pagina. Op het moment alleen html en css. Ik gebruik bootstrap voor het design en bootstrap heeft een modal die je op je website kan zetten. Het lukt me alleen niet om die modal werkend te krijgen. Ik ben hier niet erg ervaren/handig mee dus zou iemand met kunnen helpen met dit probleem en zou iemand me willen helpen met het structuren van de pagina, want dat gaat ook niet helemaal lekker en ik loop vast als ik het zelf wil proberen.
Hier onder staat de pagina
Fabian
Code (php)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://jquerymodal.com/jquery.modal.js" type="text/javascript"></script>
<title>Lorm Ipsum dolor</title>
<style>
html{
overflow-y:scroll;
}
body {
margin:0;
padding:0;
font-size: 16px;
font-family: Open Sans, sans-serif;
color: #333333;
padding-bottom:70px;
}
.clear{
display:block;
clear:both;
}
.clear:after{
display:block;
visibility:hidden;
height:0;
clear:both;
font-size:0;
content:"";
}
#header, #container, #footer{
max-width:1250px;
margin:0 auto;
}
.navbar-right {
margin-top:10px;
}
a.bovenmenu {
color:#000;
background-color:#FFF;
margin-top:2px;
height:50px;
}
li.bovenmenu {
color:#000;
background-color:#FFF;
margin-top:2px;
height:50px;
}
li.bovenmenu:hover {
color:#27ae60;
background-color:#FFF;
}
a.bovenmenu:hover {
color:#27ae60;
}
ul h2 {
margin:0;
}
.row1 {
height:80px;
margin-bottom:10px;
color:#919191;
-webkit-box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.75);
box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.75);
}
nav ul li a {
font-size: 20px;
color: #333;
}
.right {
float:right;
}
.modal {
}
</style>
</head>
<body>
<div class="row1">
<div class="clear" id="header">
<nav class="navbar">
<div class="container-fluid">
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="bovenmenu"><a href="#"><h2>Lorum Ipsum Dolor</h2></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="bovenmenu"><a href="#">Lorum</a></li>
<li class="bovenmenu"><a href="#">Ipsum</a> </li>
<li class="bovenmenu"><a href="#">Dolor</a> </li>
<li class="bovenmenu"><a href="#">Contact</a></li>
<form action="" class="navbar-form navbar-right" role="search" maxlength="20" method="post">
<div class="form-group">
<input type="text" class="form-control" placeholder="zoeken..." name="d" value="">
</div>
<button type="submit" class="btn btn-default">Zoeken</button>
</form>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">Lorum Ipsum dolor
<div class="right"><i class="fa fa-bookmark fa-rotate-90" aria-hidden="true"></i>
<i class="fa fa-bookmark fa-rotate-90" aria-hidden="true"></i></div>
</div>
<div class="panel-body">
Lorum ipsum dolor Lorum ipsum dolor Lorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolor
Lorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolor
</div>
<div class="panel-footer">
<i class="fa fa-star-o fa-lg" aria-hidden="true"></i>
<a href="#messages" rel="modal:open"><i class="fa fa-comment-o fa-lg" aria-hidden="true"></i></a>
<div class="modal fade" id="messages" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">Lorum ipsum dolor</div>
<div class="modal-body">lorum ipsum dolor</div>
</div>
</div>
</div>
<a href="#" class="right"><i class="fa fa-angle-double-right fa-lg" aria-hidden="true"></i> Lees verder... </a>
</div>
</div>
</div>
</div>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://jquerymodal.com/jquery.modal.js" type="text/javascript"></script>
<title>Lorm Ipsum dolor</title>
<style>
html{
overflow-y:scroll;
}
body {
margin:0;
padding:0;
font-size: 16px;
font-family: Open Sans, sans-serif;
color: #333333;
padding-bottom:70px;
}
.clear{
display:block;
clear:both;
}
.clear:after{
display:block;
visibility:hidden;
height:0;
clear:both;
font-size:0;
content:"";
}
#header, #container, #footer{
max-width:1250px;
margin:0 auto;
}
.navbar-right {
margin-top:10px;
}
a.bovenmenu {
color:#000;
background-color:#FFF;
margin-top:2px;
height:50px;
}
li.bovenmenu {
color:#000;
background-color:#FFF;
margin-top:2px;
height:50px;
}
li.bovenmenu:hover {
color:#27ae60;
background-color:#FFF;
}
a.bovenmenu:hover {
color:#27ae60;
}
ul h2 {
margin:0;
}
.row1 {
height:80px;
margin-bottom:10px;
color:#919191;
-webkit-box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.75);
box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.75);
}
nav ul li a {
font-size: 20px;
color: #333;
}
.right {
float:right;
}
.modal {
}
</style>
</head>
<body>
<div class="row1">
<div class="clear" id="header">
<nav class="navbar">
<div class="container-fluid">
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="bovenmenu"><a href="#"><h2>Lorum Ipsum Dolor</h2></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="bovenmenu"><a href="#">Lorum</a></li>
<li class="bovenmenu"><a href="#">Ipsum</a> </li>
<li class="bovenmenu"><a href="#">Dolor</a> </li>
<li class="bovenmenu"><a href="#">Contact</a></li>
<form action="" class="navbar-form navbar-right" role="search" maxlength="20" method="post">
<div class="form-group">
<input type="text" class="form-control" placeholder="zoeken..." name="d" value="">
</div>
<button type="submit" class="btn btn-default">Zoeken</button>
</form>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">Lorum Ipsum dolor
<div class="right"><i class="fa fa-bookmark fa-rotate-90" aria-hidden="true"></i>
<i class="fa fa-bookmark fa-rotate-90" aria-hidden="true"></i></div>
</div>
<div class="panel-body">
Lorum ipsum dolor Lorum ipsum dolor Lorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolor
Lorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolorLorum ipsum dolor Lorum ipsum dolor
</div>
<div class="panel-footer">
<i class="fa fa-star-o fa-lg" aria-hidden="true"></i>
<a href="#messages" rel="modal:open"><i class="fa fa-comment-o fa-lg" aria-hidden="true"></i></a>
<div class="modal fade" id="messages" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">Lorum ipsum dolor</div>
<div class="modal-body">lorum ipsum dolor</div>
</div>
</div>
</div>
<a href="#" class="right"><i class="fa fa-angle-double-right fa-lg" aria-hidden="true"></i> Lees verder... </a>
</div>
</div>
</div>
</div>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Gewijzigd op 22/09/2016 21:03:05 door Fabian webstars
Er zijn nog geen reacties op dit bericht.