Like
Like
Like
DOCTYPE html>
<html>
<head>
<style>
body {
.poem {
padding: 20px;
margin-bottom: 30px;
border-radius: 10px;
max-width: 600px;
margin: auto;
.poem h2 {
text-align: center;
margin-bottom: 15px;
font-size: 24px;
.poem img {
display: block;
max-width: 100%;
height: auto;
.poem p {
text-align: justify;
font-size: 18px;
line-height: 1.6;
color: #555;
.like-dislike {
text-align: center;
margin-top: 20px;
.like-dislike button {
background-color: #4CAF50;
color: white;
border: none;
font-size: 16px;
margin: 5px;
cursor: pointer;
border-radius: 5px;
.like-dislike button:hover {
background-color: #45a049;
.dislike-btn {
background-color: #f44336;
.dislike-btn:hover {
background-color: #e53935;
.poem-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 30px;
</style>
</head>
<body>
<div class="poem-container">
<?php
$result = $con->query($sql);
if ($result->num_rows > 0) {
echo "
<div class='like-dislike'>
</form>
</div>";
echo "</div>";
} else {
?>
</div>
</body>
</html>