Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #156 (Add Hover Effect on Blogs to lift them slightly) : Modified the code and added hover effect #161

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="./css/navbar.css">
<link rel="stylesheet" href="./css/blog.css">
<script>
function toggleTheme() {
var navbar = document.getElementById("navbar");
Expand Down
12 changes: 12 additions & 0 deletions css/desktop_9.css
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,18 @@ nav {
}


/*Addling hover effect in blogs */
.blog:hover{
box-shadow: 0 0 30px rgba(0, 0, 0, 0.596);
}

/*Adding hover effect on .blog img*/
.blog img:hover{
transform: scale(1.1);
border: 5px solid #7D41E2;
border-radius: 10%;
}

.profile_section {
display: flex;
}
Expand Down
10 changes: 5 additions & 5 deletions css/sec3.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@
/* border: 2px solid red; */
height: 62vw;
display: flex;
justify-content: center;
justify-content:center;
}
.s3boxes{
/* border: 1px solid black; */
height: 26vw;
width: 90vw;
display: flex;
margin-left: 6vw;
margin-left: 5vw;
margin-bottom: 3vw;
}
.mainContainer{
display: flex;
flex-wrap: wrap;
flex-grow: 1;
align-items: center;
justify-content: center;
align-items:center;
justify-content:center;

}
.box1{
/* border: 1px solid green; */
padding-bottom: 2vw;
height: 27vw;
width: 25vw;
width: 25vw;
margin: 0 2vw;
display: flex;
flex-direction: column;
Expand Down