Untitled

Anonymous
Plain Text
09/05/2025 6:25 PM
3.3 KB
11
Indexable
Never
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 10px;
    background-color:aqua;
    color: white;
    font-family: arial, sans-serif;
}
.header {
    display: flex;
    align-items: center;
    width: 99px;
    margin: 10px;
    margin-left: 7%;
}
.logo {
    height:auto;
    width:99px;
    margin:10px;
    margin-left: -8px;
}
.navbar {
    justify-content: space-around;
    background-color: black;
}
.navbar ul {
    display: flex;
    font-size: 19px;
    margin-left:10px;
    margin: 5px;
    padding: 8px;
    list-style: none;
}
.navbar a {
    color:white;
    display: inline-block;
    white-space: nowrap;
    background-color: #222;
    padding:8px 10px;
    text-decoration: none;
    border-right: 1px solid white;
    transition: background-color 0.3s, transform 0.2s;
    padding-right: 15px;
}

.navbar a:hover {
    background-color: darkblue;
    transform: scale(1.05);
}
.navbar input {
    padding: 5px 7px;
    border: none;
    background-color: lightgrey;
    border-radius: 4px;
    margin-left: 40px;
}
.sub-navbar ul{
    display: flex;
    list-style: none;
    margin-left: -1px;
    justify-content: space-around;
    padding: 0px;
}
.sub-navbar a{
    display:inline-block;
    white-space: nowrap;
    font-family: Courier New;
    background-color: grey;
    overflow: hidden;
    color:white;
    font-size: 15px;
    padding: 10px 1px;
    text-decoration: none;
    border:1px solid #666;
    transition: background-color 0.3s transform 0.2s;
}
.sub-navbar li {
    position: relative;
}
.sub-navbar a:hover {
    text-decoration: none;
    background-color: red;
    transform: scale(1.05);
}
.dropdown-content {
    display: none;
    position: absolute;
    padding: 0;
    margin: 0;
    z-index:1;
    top-align:left;
}
.dropdown:hover  .dropdown-content {
    display: block;
}
.banner {
    background: url('Image/solarsystem.jpg');
    height: 400px;
    width: 90%;
    margin-left:5%;
    position: relative;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-img {
    left:30%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-text {
    position: absolute;
    font-family: "verdana";
    top: 20%;
    left: 10%;
    color: white;
    background-color: skyblue;
    padding: 10px;
    font-size: 15px;
}

.banner-text2 {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    left: 10%;
    top:34%;
    padding: 10px;
    font-size: 15px;

}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
    margin: 20px;
    gap:20px;
    padding: 5px;
}

.image-grid img {
    height: 70%;
    object-fit: cover;
}
.box.blue {
    background-color: #00aaff;
    color: white;
    font-family: "georgia";
    width: 70%;
    height: 98%;
    font-size: 15px;
    margin-left: 13%;
    padding: 15px;
    text-align: left;

}
.box-1 {
    height: 140%;
    margin-left: -74px;
}
.box-2 {
    height: 140%;
    margin-left: -204px;
}
.box-3 {
    margin-left: 53px;
}
.box-4 {
    height: 69%;
    margin-left: -74px;
}
.box-5 {
    height: 69%;
    margin-left: 80px;
}
Editor is loading...
Leave a Comment