From be7e340b38e941fba1450565a528dbc8582bde85 Mon Sep 17 00:00:00 2001 From: Siddhesh Rajale <113630547+Siddheshuncodes@users.noreply.github.com> Date: Mon, 30 Oct 2023 11:07:41 +0530 Subject: [PATCH 1/2] made some changes in HTML and CSS Improved the Structure of HTML and CSS also made the display book align --- css/index.css | 20 ++++++++++++-------- index.html | 30 +++++++++++++++--------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/css/index.css b/css/index.css index a12e0f5..8b7fc38 100644 --- a/css/index.css +++ b/css/index.css @@ -16,23 +16,26 @@ .search input[type="text"] { padding: 10px; - width: 190px; + width: 250px; /* Adjusted width for better visibility */ border-radius: 10px; + border: 1px solid var(--primary-color); /* Added border for better visibility */ } .search button[type="submit"] { padding: 10px 20px; - background-color: #333; + background-color: var(--primary-color); /* Adjusted button color */ color: var(--text-color-light); border: none; cursor: pointer; border-radius: 10px; + margin-left: 10px; /* Added margin for better alignment */ } /* Featured books section styles */ .featured-books { padding: 20px; overflow: hidden; + text-align: center; /* Centered the content */ } .featured-books h2 { @@ -40,14 +43,15 @@ padding: 10px; } -.img1 { - width: 150px; - display: flex; +.img-container { + display: flex; /* Changed class name to better represent its purpose */ + justify-content: space-around; /* Adjusted to evenly distribute the images */ } -.img1 img { - width: 100%; +.img-container img { + width: 100px; /* Adjusted image width for better display */ padding: 10px; - float: left; box-sizing: border-box; + border: 1px solid #ddd; /* Added border for better separation */ + border-radius: 5px; /* Added border radius for a better look */ } diff --git a/index.html b/index.html index 7eeee58..71a62f3 100644 --- a/index.html +++ b/index.html @@ -14,11 +14,11 @@
@@ -31,15 +31,15 @@