Skip to content

Commit

Permalink
home page made responsive with bootstrap
Browse files Browse the repository at this point in the history
* home page is responsive now

* final commit after rechecking

* make bg image responsive
  • Loading branch information
arpit456jain authored Apr 29, 2021
1 parent 21c277c commit 29f0349
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<!DOCTYPE html>
<html lang="en">


<!-- for bootstrap css -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<style>

body{
/* background-image: url("https://images.pexels.com/photos/48604/pexels-photo-48604.jpeg?cs=srgb&dl=pexels-negative-space-48604.jpg&fm=jpg"); */
background-image: url("https://wallpaper-mania.com/wp-content/uploads/2018/09/High_resolution_wallpaper_background_ID_77701388996.jpg" );
background-size: cover;
background-repeat: no-repeat;
}

/* .header-img{
background-image: url("https://images.pexels.com/photos/48604/pexels-photo-48604.jpeg?cs=srgb&dl=pexels-negative-space-48604.jpg&fm=jpg");
background-size: cover;
Expand All @@ -18,7 +19,22 @@
min-height: 480px;
} */


/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 992px) {
.content p
{
font-size:1.2rem;
}
.content h1 {
font-size:2.5rem;
}
body{
background-image: url("https://wallpaper-mania.com/wp-content/uploads/2018/09/High_resolution_wallpaper_background_ID_77701388996.jpg" );
background-size: cover;
height:100vh;
background-repeat: no-repeat;
}
}
</style>

<?php include("templates/header.php") ?>
Expand Down

0 comments on commit 29f0349

Please sign in to comment.