I have a simple file which is included in my main file to just display the PHP parameters
<div class="ann-flex">
<div class="ann-item" onclick="modal1f()">
<div class="ann-item" id="modal1t">
<h2><?php echo $akt1n;?></h2>
<h5><?php echo $akt1t;?></h5>
</div>
<div id="modal1" class="modal">
<div class="modal-content">
<div id="ann1pdf"></div>
</div>
</div>
</div>
</div>
CSS file:
#ann-flex {
overflow: hidden;
text-align: center;
margin: 0 auto;
position: static;
-ms-user-select: none;
user-select: none;
margin-top: 20px;
}
.ann-item {
width: 17em;
background-color: white;
border-radius: 20px;
text-align: center;
display: inline-block;
padding-right: 5px;
}
.ann-item > h2 {
text-align: center;
font-size: larger;
font-weight: normal;
}
.ann-item > h5 {
text-align: center;
font-weight: normal;
}
#ann1pdf,#ann2pdf,#ann3pdf {
height: 400px;
width: 100%;
}
The problem is, it won't center on a website
and it really destroys the visual side of it, the function is the same