1
Hello, and I’m creating an area on my site, where when the person clicked on "shows more" would open a window on the site itself , showing the content as in the image below, but I have no idea how to do , could help me ?
1
Hello, and I’m creating an area on my site, where when the person clicked on "shows more" would open a window on the site itself , showing the content as in the image below, but I have no idea how to do , could help me ?
1
An example of functional modal:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Mostrar mais
</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">
// Aqui você irá colocar os códigos html que vão preencher o corpo do seu modal
</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>
For css I used bootstrap because it already contains ready classes, but you can use any other class for stills.
for this code to work I need to have bootstrap installed ?
if u use the links I put, it already "installs", but vc can replace some classes that would work in thesis
can add the modal and this working , I have 5 modal , when I click on the "show but " the content is equal for all
yes, you need to change the content of each
Thanks, it is possible to change the modal size ?
is yes use width and height of css
Browser other questions tagged html css
You are not signed in. Login or sign up in order to post.
Kd the image? : p
– Sam
sorry I forgot to put, but it’s exactly like @Ulio did below
– user77295
But that’s a bootstrap modal. Vc tah using Bootstrap?
– Sam