Untitled

 avatar
unknown
plain_text
a year ago
2.9 kB
12
Indexable
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 15px;
    background-color: black;
    color: white;
}
.header {
    display: flex;
    align-items: center;
}

.logo {
    height: auto;
    width: 99px;
    margin: 10px;
}
.navbar {
    justify-content: space-around;
    background-color: black;
}
.navbar ul {
    display: flex;
    font-size: 17px;
    gap:61px;
    padding: 5px;
    list-style: none;
}
.navbar a {
    color:white;
    display: inline-block;
    white-space: nowrap;
    background-color: #222;
    padding:8px 12px;
    gap: 40px;
    text-decoration: none;
    border: 1px solid white;
    transition: background-color 0.3s, transform 0.2s;
    padding-right: 15px;
}

.navbar a:hover {
    background-color: grey;
    transform: scale(1.05);
}

.search-box {
    background-color: white;
    color: black;
    padding:5px;
}
.sub-navbar {
    justify-content: space-around;
    background-color: black;
}
.sub-navbar ul{
    display: flex;
    list-style: none;
    margin-left: -10px;
    gap:20px;
    justify-content: space-around;
    padding: 5px;
}
.sub-navbar a{
    display:inline-block;
    white-space: nowrap;
    background-color: grey;
    color:white;
    font-size: 15px;
    padding: 10px;
    text-decoration: none;
    border:1px solid #666;
    transition: background-color 0.3s transform 0.2s;
}

.sub-navbar a:hover {
    text-decoration: underline;
    background-color: #444;
    transform: scale(1.05);
}

.banner {
    background: url('Image/solarsystem.jpg');
    height: 400px;
    width: 100%;
    margin-left: -10px;
    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;
    top: 20%;
    left: 10%;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    font-size: 15px;
}

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

}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
    height: 100%;
    margin: 30px;
    gap: 10px;
    padding: 0px;
}

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

}
.box-1 {
    margin-left: -147px;
}
.box-2 {
    margin-left: -173px;
}
.box-3 {
    margin-left: -20px;
    height: 66%;
}
.box-4 {
    margin-left: -146px;
}
Editor is loading...
Leave a Comment