Hello everybody,
I'm trying to Align <input type="search"/> to <p> but without modifiying the design already done. Here are the code portions of HTML and CSS:
I tryed to apply the display property to the input with the values: inline, block and inline-block but in vain
Help me please, thank you
I'm trying to Align <input type="search"/> to <p> but without modifiying the design already done. Here are the code portions of HTML and CSS:
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="style1.css"/>
<title>Fonctionnalités évoluées</title>
</head>
<body>
<p class="un">
RECHERCHER
</p>
<p class="deux">
INSCRIPTION / IDENTIFICATION
</p>
<p class="trois">
Parmi plus de 20 000 articles et 3 000 vidéos !
</p>
<input type="search" class="quatre"/>
</body>
</html>
Code:
.un
{
border: 4px solid black;
width: 20%;
display: inline;
}
.deux
{
display: inline-block;
width: 20%;
border: 4px solid black;
margin-left: 600px;
margin-top: -4px;
}
.trois
{
border: 4px solid black;
width : 30%;
margin-top: -20px;
}
I tryed to apply the display property to the input with the values: inline, block and inline-block but in vain
Help me please, thank you