Feuille de style css : exemples intéressants

Rédigé par Admin Aucun commentaire
Classé dans : Informatique Mots clés : aucun

 

 

<style>
body {
font-family: Arial, sans-serif;
padding: 2rem;
background: #f0f0f0;
}
form {
margin-bottom: 2rem;
}
input[type="text"] {
width: 60%;
padding: 0.5rem;
font-size: 1rem;
}
input[type="submit"] {
padding: 0.5rem 1rem;
font-size: 1rem;
background-color: #008000;
color: white;
border: none;
cursor: pointer;
}
.link-preview {
border: 1px solid #ccc;
display: flex;
max-width: 600px;
background-color: white;
border-radius: 5px;
overflow: hidden;
}
.link-preview img {
width: 150px;
object-fit: cover;
}
.link-preview-content {
padding: 10px;
flex: 1;
}
.link-preview-content h3 {
margin: 0;
font-size: 1.1em;
}
.link-preview-content p {
margin: 8px 0 0;
font-size: 0.95em;
color: #555;
}
.error {
color: red;
margin-bottom: 1rem;
}
</style>

Je peux ajouter ceci pour des tableaux et des positionnements 

p {
font-family: Verdana, sans-serif;
font-size: 12px;
}
 
a:link {
color: green;
text-decoration: underline;
}
a:visited {
color: gray;
}
a:hover {
color: red;
text-decoration: none;
}
a:active, a:focus {
color: red;
}
 
 
.haut {
position: absolute;
top: 0px;
width: 100%;
height: 60px;
left: 0px;
background-color: #68b1td;
font-family: Arial Black;
font-style: italic;
font-weight: bold;
font-size: 25px;
text-align: center;
z-index: 3;
}
.milieu{
position: absolute;
top: 60px;
background-color: #ffffff;
font-family: Arial;
font-size: 18px;
width: 90%;
height: 2900px;
left: 0px;
margin: 1em;
z-index: 1;
}

 

Écrire un commentaire

Quelle est le dernier caractère du mot tsj31 ?

Fil RSS des commentaires de cet article