0% found this document useful (0 votes)
74 views5 pages

Piyush

The document contains CSS code to style a portfolio website. It includes CSS selectors for the main container, navigation bar, content sections, image, and social media icons. Styles are defined for layout, typography, colors, positioning of elements, and hover effects. The CSS is formatted with proper indentation to enhance readability.

Uploaded by

nagpalakshit99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views5 pages

Piyush

The document contains CSS code to style a portfolio website. It includes CSS selectors for the main container, navigation bar, content sections, image, and social media icons. Styles are defined for layout, typography, colors, positioning of elements, and hover effects. The CSS is formatted with proper indentation to enhance readability.

Uploaded by

nagpalakshit99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Css

<!DOCTYPE html>
<html lang="en">
<head>
<title>My Portfolio</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>

<div class="main">
<div class="navbar">
<img src="pic/logo.png" class="logo">

<ul>
<li><a href="#">HOME</a></li>
<li><a href="#">ABOUT</a></li>
<li><a href="#">SKILLS</a></li>
<li><a href="#">MY WORKS</a></li>
<li><a href="#">CONTACT</a></li>
</ul>
</div>

<div class="info">
<h3>Hi, I'm <span>Ariana</span>.</h3>
<h1><span>W</span>EB <span>D</span>ESIGNER</h1>
<h3>Web designer and developer from UTTRAKHAND,INDIA.
I create <br> websites to do businesses do better <br>
online.</h3>
<a href="#">Hire Me</a>
</div>

<div class="image">
<img src="pic/girl.png" class="girl">
</div>

<div class="icons">
<a href="#"><ion-icon name="logo-facebook"></ion-icon></a>
<a href="#"><ion-icon name="logo-instagram"></ion-icon></a>
<a href="#"><ion-icon name="logo-twitter"></ion-icon></a>
</div>
</div>

<script src="https://unpkg.com/[email protected]/dist/ionicons.js"></script>
</body>
</html>

Css
*{
margin: 0;
padding: 0;
}

.main{
width: 100%;
background: url(pic/bg.jpg);
background-position: center;
background-size: cover;
height: 100vh;
position: relative;
font-family: sans-serif;
}

.navbar{
width: 86%;
display: flex;
margin: auto;
padding: 15px 0;
align-items: center;
justify-content: space-between;
}

.navbar .logo{
width: 160px;
cursor: pointer;
margin-top: -3%;
margin-left: -2%;
}
ul{
margin-top: -4%;
}

ul li{
list-style: none;
display: inline-block;
padding: 10px 16px;
}

ul li a{
font-size: 16px;
font-weight: bold;
text-decoration: none;
color: darkslategray;
margin-top: -3%;
transition: .4s ease;

ul li a:hover{
color: rgb(230,104,59);
}

.info{
margin-left: 7%;
margin-top: 6%;
}

.info h1{
font-size: 65px;
color: rgb(36,32,30);
}

.info h3{
font-size: 18px;
letter-spacing: 1px;
line-height: 24px;
}

.info span{
color: rgb(230,104,59);
}

.info a{
text-decoration: none;
color: #fff;
background: rgb(36,32,30);
margin: 26px 0;
padding: 10px 18px;
border-radius: 10px;
display: inline-block;
transition: .4s ease;
}

.info a:hover{
background: rgb(59,174,209);
}

.image{
width: 30%;
height: 60%;
position: absolute;
right: 100px;
bottom: 0;
}

.image img{
position: absolute;
height: 140%;
left: 40%;
transform: translate(-55%);
bottom: 0;
transition: left 2s ease;
}

.image:hover .girl{
left: 55%;
}

.icons a{
text-decoration: none;
color: #000;
}

.icons ion-icon{
margin-left: 7%;
color: #000;
margin-right: -60px;
font-size: 40px;
transition: .4s ease;

.icons ion-icon:hover{
color: rgb(59,174,209);
}

You might also like