<style>
* {
box-sizing: border-box;
}
/* Create two equal columns that floats next to each other */
.column {
width: 50%;
left: 50%;
margin: 5px auto;
word-break: break-all;
font-family: "Times New Roman", Times, serif;
padding: 15px;
border-radius: 15px;
height: 15%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
}
.floated {
float:left;
margin-right:5px;
}
hr {
border: none;
height: 1px;
/* Set the hr color */
color: #333; /* old IE */
background-color: #333; /* Modern Browsers */
}
</style>
Это код CSS для столбцов, внутри этих столбцов у меня отображаются некоторые значки и текст, он может выглядеть идеально на моем экране, но на экране ноутбука выглядит испорченным, что я могу сделать, чтобы он выглядел хорошона каждом экране?Я использую% вместо px, поэтому он должен устанавливать высоту в зависимости от размера экрана?
HTML-код для столбца ниже;
<div class="row">
<div class="column" style="background-color:#edeeef;">
<body>
<p style="float:left; margin: 0 auto; cursor:pointer; border-radius: 50%;" onclick="location='http://localhost/badges.php?wear=<?php echo $b_id; ?>'"><?php echo $userbadge; ?></p>
<p style="float:left; margin: 15px 20px; font-size:19px; cursor:pointer; color:black" align="center"><?php echo $badgedesc; ?></p><p></p>
</body>
</div>