new changes

This commit is contained in:
Harilee
2023-10-30 14:00:03 +05:30
parent ce7bdeb3e9
commit 9031b176da
10 changed files with 284 additions and 45 deletions

View File

@@ -1,14 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="stylesheet" href="external.css" /> <link rel="stylesheet" href="external.css"/>
</head> </head>
<body> <body>
<h1>My First CSS Example</h1> <h1>My First CSS Example</h1>
<p>This is a paragraph.</p> <p>This is a paragraph.</p>
<h1 class="center">Red and center-aligned heading</h1> <div class="center">
<p class="center">Red and center-aligned paragraph.</p> <h1 >Red and center-aligned heading</h1>
<p >Red and center-aligned paragraph.</p>
</div>
<p id="para1">Hello World!</p> <p id="para1">Hello World!</p>
<p>This paragraph is not affected by the style.</p> <p>This paragraph is not affected by the style.</p>
@@ -44,7 +47,7 @@
<!--Flex box horizontal--> <!--Flex box horizontal-->
<div class="center_horizontal_flex_box"> <div class="center_vertical_flex_box">
<h1 style="color: blue;">This is a heading</h1> <h1 style="color: blue;">This is a heading</h1>
<h1 style="color: blue; "">This is a heading</h1> <h1 style="color: blue; "">This is a heading</h1>

View File

@@ -94,5 +94,8 @@
<dt>Milk</dt> <dt>Milk</dt>
<dd>- white cold drink</dd> <dd>- white cold drink</dd>
</dl> </dl>
<p>This would add five &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blank spaces.</p>
</body> </body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 B

View File

@@ -0,0 +1,91 @@
.department-section {
position: absolute;
top: 130%;
}
.department-title{
margin-left: 60px;
}
/* Style for the container of card items */
.department-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-right: 30px;
margin-left: 30px;
}
/* Style for each card */
.department-card {
width: 30%; /* 33.33% width for three cards with spacing */
margin-bottom: 20px;
padding: 5px;
}
.department-card img {
max-width: 100%;
}
.department-card h3 {
margin-left: 30px;
}
.department-card p {
margin-left: 30px;
}
.why-gg-section {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Full viewport height */
position: absolute;
top: 220%;
background-color: #EAF2FF;
margin-left: 60px;
margin-right: 60px;
margin-bottom: 100px;
}
/* Style for the card */
.card {
position: relative;
max-width: 100%;
}
/* Style for the image */
.card img {
width: 100%;
height: auto;
}
/* Style for the text on top of the image */
.card-text {
position: absolute;
top: 20px; /* Adjust the top position as needed */
left: 70%; /* Adjust the left position as needed */
color: black;
font-size: 24px;
font-weight: bold;
padding: 10px;
}
ul.custom-bullet {
list-style-image: url('img/tick_icon.png');
padding-left: 20px;
/* Add padding to adjust the distance between the bullet image and text */
}
/* Style for list items */
li {
margin: 10px 0; /* Adjust margin as needed */
}
.why-gg-list{
position:absolute;
left: 70%;
top: 80px;
}

View File

@@ -0,0 +1,141 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="middle_part.css" />
<link rel="stylesheet" href="/nav_bar/nav_bar.css" />
<link rel="stylesheet" href="/top_header/top_header.css" />
</head>
<body>
<div>
<div class="header-container">
<div>
<img class="logo" src="/nav_bar/img/logo.png" alt="logo image" />
</div>
<!--This is the top nav bar-->
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#aboutus">About Us</a>
<a href="#doctors">Doctors</a>
<a href="#department">Department</a>
<a href="#newsandmedia">New and Media</a>
<a href="#career">Career</a>
<a href="#contactus">Contact Us</a>
</div>
<!--Ending of top nav bar-->
</div>
<!--starting of the rest of the header code-->
<div class="top-header-container">
<div class="img_container">
<img
class="doctor_img"
src="/top_header/img/doctor_img.png"
alt="doc image"
/>
</div>
<div class="title_1">
<h1>Love & Care to Humanity</h1>
<h3>Fastest-Growing Multi Speciality Hospital in South Kerala</h3>
</div>
</div>
<!--ending of the doctor image code-->
<!--starting of the book appointment tab code-->
<div class="book-appointment">
<h4>Book an Appoinment</h4>
<div class="input-container">
<input type="text" placeholder="Full name" class="rounded-input" />
<input type="text" placeholder="Phone number" class="rounded-input" />
<input type="text" placeholder="Select Date" class="rounded-input" />
</div>
<div class="input-container">
<input
type="text"
placeholder="Select Department"
class="rounded-input"
/>
<input
type="text"
placeholder="Select Doctor"
class="rounded-input"
/>
<button class="book-appointment-button">Book Appointment</button>
</div>
</div>
<!--ending of book apointment section-->
<!--starting of middle section with department list-->
<div class="department-section">
<div class="department-title">
<h1>Our Departments</h1>
</div>
<div class="department-container">
<div class="department-card">
<!-- Card 1 Content -->
<img
class="doctor_img"
src="img/department_1.png"
alt="doc image"
/>
<h3>Hepatobiliary Surgery</h3>
<p>
The Hepatobiliary and Transplantology Unit of GG Hospital offers a
comprehensive...
</p>
</div>
<div class="department-card">
<!-- Card 2 Content -->
<img
class="doctor_img"
src="img/department_1.png"
alt="doc image"
/>
<h3>Medical Oncology</h3>
<p>
GG Hospital is the best affordable hospital in South Kerala which
is NABH accredited hospital...
</p>
</div>
<div class="department-card">
<!-- Card 3 Content -->
<img
class="doctor_img"
src="img/department_1.png"
alt="doc image"
/>
<h3>ENT, Head & Neck Skull Surgery</h3>
<p>
The ENT Department in GG Hospital provides a wide range of
treatment modalities including...
</p>
</div>
</div>
</div>
<!--ending of the department list-->
<div class="why-gg-section">
<div class="card">
<img src="img/doctors_img.png" alt="Image" />
<div class="card-text">Why GG Hospital?</div>
<div class="why-gg-list">
<ul class="custom-bullet">
<li>Multi-super specialty hospital in South Kerala.</li>
<li>Achieved the unique reputation</li>
<li>Multi-super specialty hospital in South Kerala.</li>
<li>Multi-super specialty hospital in South Kerala.</li>
<li>Achieved the unique reputation</li>
<li>Multi-super specialty hospital in South Kerala.</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>

40
split_screen.html Normal file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<style>
/* Create a two-column layout */
.container {
display: flex;
width: 100%;
}
/* Style for the left column (half) */
.left-column {
flex: 1;
padding: 20px;
background-color: #f0f0f0;
}
/* Style for the right column (half) */
.right-column {
flex: 2;
padding: 20px;
background-color: #e0e0e0;
}
</style>
</head>
<body>
<div class="container">
<div class="left-column">
<!-- Items for the left half of the screen -->
<h2>Left Half</h2>
<p>This is the left half of the screen.</p>
</div>
<div class="right-column">
<!-- Items for the right half of the screen -->
<h2>Right Half</h2>
<p>This is the right half of the screen.</p>
</div>
</div>
</body>
</html>

View File

@@ -1,43 +1,3 @@
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
.topnav {
margin-top: 30px;
overflow: hidden;
background-color: #FFFF;
}
.topnav a {
float: left;
color: black;
text-align: end;
padding: 14px 16px;
text-decoration: none;
font-size: 15px;
}
.topnav a:hover {
color: red;
}
.topnav a.active {
color: red;
}
.logo {
width: 200px;
height: 50px;
padding-right: 480px;
padding-left: 30px;
}
.header-container{
display: flex;
align-items: center;
}
.doctor_img { .doctor_img {
width: 95vw; width: 95vw;

View File

@@ -3,6 +3,7 @@
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="top_header.css" /> <link rel="stylesheet" href="top_header.css" />
<link rel="stylesheet" href="/nav_bar/nav_bar.css"/>
</head> </head>
<body> <body>
<div> <div>