HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap" rel="stylesheet">
<title>dfd</title>
<style>
* {
margin: 0px;
font-family: 'Work Sans', sans-serif;
font-weight: lighter;
}
body {
background-color: #2F3036;
}
nav {
display: flex;
position: sticky;
background-color: #2F3036;
opacity: 0.8;
height: 40px;
text-align: center;
align-items: center;
justify-content: center;
}
article {
color: ghostwhite;
margin-left: 100px;
margin-right: 100px;
}
ul li a {
display: block;
text-decoration: none;
color: #d6d6d6;
font-family: 'Palanquin', sans-serif;
font-weight: lighter;
word-spacing: 5px;
min-width: 150px;
text-align: center;
}
ul li a:hover {
color: white;
transition: 500ms;
}
ul li {
list-style: none;
display: inline-block;
margin-right: 1px;
padding: 0px 20px;
}
#HeadImage {
background-image: url(img/AnimatedMicrochip2.gif);
background-size: cover;
background-position: center;
width: 100%;
height: 940px;
}
#HeadTitle {
color: ghostwhite;
font-family: 'Major Mono Display', monospace;
font-size: 100px;
display: inline-block;
position: relative;
font-weight: lighter;
margin: 20px;
}
#Logo {
text-align: left;
color: #d6d6d6;
font-family: 'Major Mono Display', monospace;
font-weight: bold;
text-decoration: none;
font-size: 20px;
}
#Logo:hover {
color: white;
transition: 500ms;
}
.Flex {
display: flex;
}
.ArticleHeader {
display: inline-block;
margin-top: 80px;
margin-bottom: 40px;
font-size: 70px;
font-weight: lighter;
word-spacing: 50px;
}
.ArticleText {
font-size: 24px;
}
.FirstInArticle {
width: 40%;
}
.SecondInArticle {
width: 40%;
}
</style>
</head>
<body>
<header>
<div id="HeadImage">
<p id="HeadTitle">
sddf
</p>
</div>
</header>
<nav>
<span><a id="Logo" href="">C</a></span>
<ul>
<li><a href="">Deneme 1</a></li>
<li><a href="">Deneme 2</a></li>
<li><a href="">Deneme 3</a></li>
<li><a href="">Deneme 4</a></li>
</ul>
</nav>
<article>
<div class="Flex">
<div class="FirstInArticle">
<div class="ArticleHeader">
sdf
</div>
<div class="ArticleText">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus dolore impedit quis incidunt
aspernatur iusto repellat est? Iure aliquid, aspernatur ullam, reprehenderit earum accusantium quod
quae, voluptatibus inventore asperiores quibusdam.
<div class="SecondInArticle">
<img style="height: 600px; width: 800px;" src="img/anakart.gif" alt="Anakart">
</div>
</div>
</div>
</article>
</body>
</html>
Normalde şu GIF'in koduma göre Flex özelliğinden dolayı yazının sağına gelmesi gerekiyor ama gelmiyor. Sebebi nedir ve nasıl çözebilirim? @Berkay Davas
Son düzenleyen: Moderatör: