first commit

This commit is contained in:
Harilee
2023-10-27 15:44:45 +05:30
commit ce7bdeb3e9
11 changed files with 522 additions and 0 deletions

55
css.html Normal file
View File

@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="external.css" />
</head>
<body>
<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>
<h1 class="center">Red and center-aligned heading</h1>
<p class="center">Red and center-aligned paragraph.</p>
<p id="para1">Hello World!</p>
<p>This paragraph is not affected by the style.</p>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
<h1 style="color: blue; text-align: center">This is a heading</h1>
<p style="color: red">This is a paragraph.</p>
<div id="margin_example">This div element has a top margin of 100px, a right margin of 150px, a bottom margin of 100px, and a left margin of 80px.</div>
<div id="padding_example">This div element has a top padding of 50px, a right padding of 30px, a bottom padding of 50px, and a left padding of 80px.</div>
<!--centering items from here on-->
<ol id="center_table">
<li>Table</li>
<li>Chair</li>
<li>Bed</li>
</ol>
<!--Flex box horizontal-->
<div class="center_horizontal_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>
</div>
</body>
</html>

131
external.css Normal file
View File

@@ -0,0 +1,131 @@
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
/*
class selector
*/
.center {
text-align: center;
color: red;
}
/*
id selector
*/
#para1 {
text-align: center;
color: red;
}
/*
list styling
*/
ol {
background: #ff9999;
padding: 20px;
}
ul {
background: #3399ff;
padding: 20px;
}
ol li {
background: #ffe5e5;
color: darkred;
padding: 5px;
margin-left: 35px;
}
ul li {
background: #cce5ff;
color: darkblue;
margin: 5px;
}
/*
margin example
*/
#margin_example {
border: 1px solid black;
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 80px;
background-color: lightblue;
}
/*
padding example
*/
#padding_example {
border: 1px solid black;
background-color: lightblue;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
/*
centering items using margin auto
*/
#center_table {
background: #ff9999;
padding: 20px;
margin: 50px auto;
width: 200px;
height: 100px;
}
/*
centering with flex box horizontally
*/
.center_horizontal_flex_box {
font-family: arial;
font-size: 24px;
margin: 25px;
width: 1050px;
height: 200px;
outline: dashed 1px black;
/* Center child horizontally*/
display: flex;
justify-content: center;
}
.child {
width: 50px;
height: 50px;
background-color: red;
}
.center_vertical_flex_box {
font-family: arial;
font-size: 24px;
margin: 25px;
width: 1050px;
height: 200px;
outline: dashed 1px black;
/* Center vertically */
display: flex;
align-items: center;
justify-content: center;
}

98
index.html Normal file
View File

@@ -0,0 +1,98 @@
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- Heading exampl -->
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<!-- attribute example -->
<a href="https://www.w3schools.com">Visit W3Schools</a>
<!-- paragrah example-->
<p>
This paragraph contains a lot of lines in the source code, but the browser
ignores it.
</p>
<!-- horizontal line tag (hr) tag -->
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr />
<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr />
<!-- line breaker (br) tag-->
<p>This is<br />a paragraph<br />with line breaks.</p>
<!-- styling example (Text Color)-->
<h1 style="color: blue">This is a heading</h1>
<p style="color: red">This is a paragraph.</p>
<h1 style="font-family: verdana">This is a heading</h1>
<p style="font-family: courier">This is a paragraph.</p>
<h1 style="font-size: 300%">This is a heading</h1>
<p style="font-size: 160%">This is a paragraph.</p>
<!-- HTML Table example -->
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>
<!--
unordered list
-->
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<!--
ordered list
-->
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<!--
description list
-->
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
</body>
</html>

View File

View File

BIN
nav_bar/img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

38
nav_bar/nav_bar.css Normal file
View File

@@ -0,0 +1,38 @@
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
.topnav {
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;
}

26
nav_bar/nav_bar.html Normal file
View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="nav_bar.css" />
</head>
<body>
<div class="header-container">
<div>
<img class="logo" src="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>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

113
top_header/top_header.css Normal file
View File

@@ -0,0 +1,113 @@
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 {
width: 95vw;
margin-left: 30px;
margin-right: 30px;
margin-top: 50px;
}
.title_1{
width: 250px;
margin-left: 100px;
margin-top: -400px;
font-size: 20;
}
h3 {
width: 500px;
color: rgb(181, 181, 181);
font-size: 10;
font-weight: lighter;
}
.book-appointment{
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
width: 75%;
position: absolute;
top: 110%;
left: 50%;
transform: translate(-50%, -50%);
}
h4 {
margin-left: 20px;
padding-top: 10px;
}
.rounded-input {
border: 1px solid #ccc;
border-radius: 10px; /* Adjust this value to change the radius */
padding: 5px;
width: 30%;
height: 35px; /* Set the width of each input field */
margin: 1%; /* Add some margin for spacing */
}
/* Style for the container div */
.input-container {
display: flex; /* Make the children flex items */
justify-content: space-between; /* Space the children equally */
margin-bottom: 10px; /* Add some margin for spacing */
}
/* Style for the "Book Appointment" button */
.book-appointment-button {
background-color: #17C1A3;
border-color: white;
color: white;
border-radius: 10px;
padding: 5px;
width: 30%;
height: 50px;
margin: 1%;
cursor: pointer;
outline: none;
}

View File

@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="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="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</h1>
</div>
</div>
<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>
</div>
</body>
</html>