Olá! Esses dias comecei a criar um layout para teste/treinamento, um bem simples com 2 colunas. Porém quando eu diminuo o zoom as colunas ficam bem pequenas e vão para o canto e quando dou um zoom elas se bagunçam, não sei se é pq eu n fiz ele responsivo.
Alguém poderia me ajudar e me mostrar o que falta?
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Carros!</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/carros.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Dancing+Script">
</head>
<body>
<div class="area-total">
<ul>
<li class="conteudo-esquerda"></li>
<li class="conteudo-direita">
<form onsubmit="return tagSearch(this)">
<input type="text" name="tag" value="Faça sua Busca..." onfocus="if (this.value == '{text:Search Label}') {this.value=''}" onblur="if (this.value == '') {this.value='{text:Search Label}'}" />
<input type="submit" value="Buscar" /></form>
<h2>Modelo de Carro</h2>
<p>
Texto aqui só tem texto. Puro texto....
</p>
</li>
<div class="linha-vertical"></div>
<div>
<img class="carro" src="img/carro.png" alt="carro">
</div>
</ul>
</div>
</body>
</html>
CSS
body {
background-color: rgba(16, 33, 36, 0.95);
position: absolute;
top: 5%;
left: 6%;
line-height: 1.5;
}
.conteudo-esquerda {
width: 600px;
height: 600px;
float: left;
background: #34595d;
margin: 0;
}
.conteudo-direita {
width: 600px;
height: 600px;
float: right;
background: #03dab6;
margin: 0;
}
.conteudo-direita h2 {
font-size: 20px;
font-weight: bold;
font-family: "Oswald";
text-transform: uppercase;
position: relative;
top: 11%;
left: 8.5%;
opacity: 0.65;
}
.conteudo-direita p {
font-size: 18px;
font-family: "Dancing Script";
position: relative;
top: 12.7%;
left: 52px;
opacity: 0.65;
}
.linha-vertical {
background-color: #000;
height: 82px;
width: 3px;
position: absolute;
right: 47%;
top: 14%;
opacity: 0.65;
}
.carro {
position: absolute;
height: 40%;
bottom: 20%;
right: 08%;
opacity: 0.65;
}
Reset
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}