Assignment + Lecture

 Assignment:



Neumorphism Style



Index.html:


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
    <!--
    <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet cupiditate unde eligendi porro esse! Dolores ipsa
        placeat veritatis! Corporis veniam nam saepe nulla amet velit dolorum iure suscipit ullam unde?</p>


    <div class="line"></div>


    <table border="1" cellpadding="20" cellspacing="0" align="center">
        <tr>
            <th>Name</th>
            <th>Email</th>
            <th>Address</th>
        </tr>
        <tr>
            <td>Ali</td>
            <td>ali@gmail.com</td>
            <td>Karachi</td>
        </tr>
        <tr>
            <td>Hassan</td>
            <td>example@example.com</td>
            <td>Bawa chawk</td>
        </tr>
        <tr>
            <td>Dummy</td>
            <td>dummy@gmail.com</td>
            <td>FSD</td>
        </tr>
        <tr>
            <td>Dummy</td>
            <td>dummy@gmail.com</td>
            <td>FSD</td>
        </tr>
        <tr>
            <td>Dummy</td>
            <td>dummy@gmail.com</td>
            <td>FSD</td>
        </tr>
        <tr>
            <td>Dummy</td>
            <td>dummy@gmail.com</td>
            <td>FSD</td>
        </tr>


    </table> -->

    <p>Bilal Javed</p>
</body>

</html>

Style.css

/* p {
  background-color: black;
  color: white;
  padding: 20;
  margin: 30px;
}

p::first-line {
  color: rebeccapurple;
  font-size: 40px;
}

.line {
  height: 2px;
  width: 400px;
  background-color: blueviolet;
  margin: auto;
  margin-bottom: 50px;
}

tr:nth-child(1),
tr:nth-child(4) {
  background-color: black;
  color: white;
} */

p {
  text-align: center;
}

p::before {
  content: "Hello ";
  color: royalblue;
  font-size: 50px;
}

p::after {
  content: "! ";
  color: royalblue;
  font-size: 50px;
}


flex.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/flex.css">
</head>

<!-- <div class="rec">
    <div class="item" style="order: 3; align-self: center;">
        1
    </div>
    <div class="item" style="order: 4;">
        2
    </div>
    <div class="item" style="order: 2;">
        3
    </div>
    <div class="item" style="order: 1s;">
        4
    </div>
</div> -->



<div class="rec1">
    <div class="rec2">
        <div class="rec3">
            <div class="rec4">
                <div class="rec5"></div>
            </div>
        </div>
    </div>
</div>




<body>

</body>

</html>

flex.css:

/* .rec {
  display: flex;
  background-color: black;
  height: 600px;
  flex-direction: column;
  flex-wrap: wrap; */
/* justify-content: space-evenly;
  align-items: center; */
/* align-content: center; */
/* } */

/* .item {
  height: 250px;
  width: 250px;
  background-color: rebeccapurple;
  font-size: 40px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bolder;
} */
body {
  background-color: rgb(214, 210, 210);
}

.rec1 {
  /* height: 500px;
  width: 500px; */
  height: 100px;
  width: 100px;
  margin: auto;
  /* background-color: rgb(214, 210, 210); */
  /* background-color: black;    */
  border-radius: 20px;
  border: rgb(214, 210, 210) 1px solid;
  box-shadow: -15px -15px 30px #fff, 15px 15px 30px #adadbe7b;
}

/* .rec2 {
  height: 400px;
  width: 400px;
  background-color: red;
}

.rec3 {
  height: 300px;
  width: 300px;
  background-color: blue;
}

.rec4 {
  height: 200px;
  width: 200px;
  background-color: green;
}
.rec5 {
  height: 100px;
  width: 100px;
  background-color: yellow;
}

.rec1,
.rec2,
.rec3,
.rec4,
.rec5 {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
} */


Comments