Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions exercise-1/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,57 @@ body {
margin-right: auto;
max-width: 56em;
}



/* i will add media queries only below for the devices with differnt screen
600px, and 900px */

@media all and (max-width: 899px) and (min-width: 600px){

.grid__text {
grid-area: text;
padding-left: 150px;
}

.wrapper {
margin: 10px;
}

.box {
margin: var(--grid);
min-height: calc(4 * var(--grid));
padding: var(--grid);
width: 80%;
}


.grid {
grid-template-areas:
"red text"
"black text"; /* for the column arrengments */
}

}

@media screen and (min-width: 900px){

.grid {
display: grid;
grid-template-areas:
"black text red";

}
.box {
margin: var(--grid);
min-height: calc(4 * var(--grid));
padding: var(--grid);
width: auto;
}
.grid__text {
grid-area: text;
padding-left: 30px;
}

}

15 changes: 15 additions & 0 deletions exercise-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@
</head>

<body>

<h1>Identity Card</h1>

<div class="card">
<img src="./profileimage.jpg" alt="avater" />
<h1>Mr. Tom Cleverly</h1>
<div class="designation">Blogger & Content Writter</div>
<p>Contact: +32-xxxxx</p>
<div class="button"><button class="nope">NOPE</button><button class="ok">OK</button></button></div>
</div>





</body>

</html>
Binary file added exercise-2/profileimage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 52 additions & 4 deletions exercise-2/styles.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,57 @@
/* The only reset you’ll ever need */

body {
margin: 0;

body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
h1 {
text-align: center;
}
.card {
box-shadow: 0 8px 8px 10px rgba(87, 84, 84, 0.4);
max-width: 250px;
padding: 10px;
margin: auto;
text-align: center;
box-sizing: border-box;
}

img {
width: 70%;
border: 1px solid black;
border-radius: 50%;
}

.designation {
font-size: 18px;
}

.button {
margin: 20px 0;
}

.nope {
border-radius: 36px;
font-size: 18px;
width: 20%;
background-color:#eee;
color: gray;
display: inline;
position: relative;
top:100px;
left:190px;

}

* {
box-sizing: border-box;
.ok {
border-radius: 36px;
font-size: 18px;
width: 20%;
background-color: #4f50ff;;
color: white;
position: relative;
top:73px;
left:330px;
}