$head =
'<!-- ARQUIVOS CSS -->
<link rel="stylesheet" href="css/estrutura-informacoes-BD.css" />
<link rel="stylesheet" href="css/botoes.css" />
';
echo $abreTagHead.
$head.
$fechaTagHead.
$abreTagBody.
'<div id="container">'.
$body.
'</div>'.
$fechaTagBody;
HTML
<div id="showModal"></div>
<div class="modal fade modalConteudo modal-fullscreen" tabindex="-1" role="dialog" aria-labelledby="modal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<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">Regras</h4>
</div>
<div class="modal-body" style="text-align: center;">
<span id="resultado"></span>
</div>
</div>'
</div>
</div>
That content above, in PHP, I have to start with span
with id="resultado"
.
I made this echo
just to be printed inside showmodal
(it opens a Bootstrap modal, and a content is shown). The problem is that CSS conflicts with my main page HTML (when I call the modal, the effects are applied also applied in the main HTML, and I wanted them to be applied only in modal).