Thursday, 27 May 2021

nth or pseudo

 


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>nth or pseudo</title>
</head>
<style>
.container{
border2px solid black;
width:50%;
displayblock;
marginauto;
background-colorblack;


}
input{
    displayblock;
    marginauto;
}
.item{

displayblock;
margin2px 250px;
}
input[type="text"]{
padding5px 5px;
border-radius10px;
margin5px auto;
colorred;
backgroundblack;
}
input[type="Email"]{
padding5px 5px;
border-radius10px;
margin5px auto;
colorred;
backgroundblack;
}
input[type="password"]{
padding5px 5px;
border-radius10px;
margin5px auto;
colorred;
backgroundblack;
}
input[type="button"]{
border-radius10px;
margin8px auto;
    padding5px 15px;
background-color:red;
font-size20px;
}
a[target="_blank"]{
displayblock;
margin5px 250px;
font-size30px;
font-weightbold;
colorred;
}
a[target="_post"]{
displayblock;

}

/* .item:nth-child(4n+2){
    color: blue;
    
    text-decoration:underline ;
    font-weight: bold;
} */
li:nth-child(odd){

    colorcrimson;
    font-weightbolder;
}
li:nth-child(even){
    colorwhite;
    font-weightbolder;
}
input:hover{
cursorpointer;
background-colordarkblue;

}
li:hover:nth-child(even){
cursorpointer;
    colorred;
}
li:hover:nth-child(odd){

    cursor:pointer;
    color:blue;
}
</style>
<body>
    <div class="container">
<a href="http://Google.com" target="_blank">Go to the Google </a>




<form action="noaction.php" class="form-inp">
    <input type="text" placeholder="Enter Your Name">
    <input type="Email" placeholder="Enter Your Email">
    <input type="password" placeholder="Enter Your password">
    <input type="button" value="Submit">
</form>
<ul>
<li class="item" id="item1">Item1</li>
<li class="item" id="item2">Item2</li>
<li class="item" id="item3">Item3</li>
<li class="item" id="item4">Item4</li>
<li class="item" id="item5">Item5</li>
<li class="item" id="item6">Item6</li>
<li class="item" id="item7">Item7</li>
<li class="item" id="item8">Item8</li>
<li class="item" id="item9">Item9</li>
<li class="item" id="item10">Item10</li>



</ul>

    </div>
    
</body>
</html>

No comments:

Python if / else

 Python if / else a1 = int ( input (" Enter the number: \n ")) a2 = int ( input (" Enter the number: \n ")) a3 = int ( i...