Skip to content

Commit

Permalink
Add styling to the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaisakh-RS committed Sep 4, 2023
1 parent 852bd47 commit 43a146d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 15 deletions.
15 changes: 9 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
</head>
<body>
<h1>Etch a Sketch</h1>
<div class="container"></div>
<div class="menu">
<input type="color" name="color" id="cpick">
<button id="eraser">Eraser</button>
<button id="reset">Reset</button>
<div class="main">
<div class="menu">
<input type="color" name="color" id="cpick">
<div class="buttons">
<button id="eraser">Eraser</button>
<button id="reset">Reset</button>
</div>
</div>
<div class="container"></div>
</div>

<script src="./script.js"></script>
</body>
</html>
53 changes: 44 additions & 9 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ h1{
text-align: center;
font-family: 'Luckiest Guy', cursive;
font-size: 50px;
color: rgb(71, 71, 231);

}

.main{
display: flex;
align-items: center;
gap: 10px;
}

.container{
background-color: bisque;
width: 560px;
height: 560px;
margin:auto;
display: flex;
margin-left: 900px;
margin-left: 200px;
margin-top: 100px;
flex-wrap: wrap;
box-shadow: 10px 10px 28px rgb(41, 39, 39) ;
Expand All @@ -26,20 +32,49 @@ h1{
.menu{
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
width: 200px;
margin-left:200px;
margin-bottom:100px
margin-left:400px;
font-family: 'Borel', cursive;
}

#cpick{
height: 50px;
width: 50px;
border: 500 black solid;
border-radius:1000px;
padding:10px;
height: 100px;
width: 100px;
border-radius: 50%;
border: none;
outline: none;
padding: 0;
cursor: pointer;

}

#cpick::-webkit-color-swatch{
border-radius: 50%;
}
#cpick::-moz-color-swatch{
border-radius: 50%;
}

#eraser,#reset{
padding: 5px;
font-size: 20px;
border-radius: 20px;
width: 150px;
cursor: pointer;
margin: 10px;
font-family: 'Borel', cursive;
text-align: center;
line-height: normal;

}

.buttons{
display: flex;
margin: 20px;


}


0 comments on commit 43a146d

Please sign in to comment.