I'm making WWW page on display flex but when I zoom its going places. Text is scalling
I tried setting font size but it didnt help.
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width = device-width, initial-scale = 1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content = "ie=edge">
<title> Keat </title>
<link rel="stylesheet" href="style.css" type="text/css" >
<link rel="stylesheet" href="css/fontello.css" type="text/css">
</head>
<body>
<div class="container">
<div class="navigation">
<div class="navigation-l">fgfgfg</div>
<div class="navigation-r">
bbbbbb
</div>
</div>
<div class="photo-container">
<div class="aligned-center">
<i class="icon-address"></i>
<h1>Own Way</h1>
<cite>"Marzenia są tam gdzie jest wolnośc, a my osiągnielismy wolność a nie bezpieczeństwo"</cite>
<br /><br />
<cite> ~Jacek Walkiewicz</cite>
</div>
</div>
<div class="articles"></div>
</div>
</body>
</html>
CSS
@import url('https://fonts.googleapis.com/css?family=Montserrat|Raleway|Roboto&display=swap');
body
{
width: 100%;
margin: 0;
padding: 0;
overflow-x: hidden;
}
.container
{
background-image: url('wave.jpg');
width: 100vw;
margin: 0;
padding: 0;
flex-direction: column;
display: flex;
align-items: flex-start;
}
.navigation
{
width: 100vw;
background-color: coral;
height: 10vh;
display: flex;
flex-direction: row;font-size: 25px;
}
.photo-container
{
width: 100vw;
background-color: lightblue;
height: 90vh;
display: flex;
overflow: hidden;
}
.articles
{
width: 100vw;
background-color: greenyellow;
height: 20vh;
}
/* Mniejsze kafelki */
.navigation-l
{
width: 50vw;
height: inherit;
background-color: indianred;
}
.navigation-r
{
width: 50vw;
height: inherit;
background-color: lightsalmon;
}
.aligned-center
{
width: 1000px;
height: auto;
align-self: center;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.panel
button {}
Excepted : Text wont go all over the page but It take user to zoom div not scale text
Result :It scale text when It shouldnt. I have tested zoom on others pages and It make div bigger not a text.Maybe its becouse Its flex and its have 50% or 100% of page. I dont know
Aucun commentaire:
Enregistrer un commentaire