Skip to content

Commit

Permalink
Merge pull request #1800 from PrityanshuSingh/fixes/Button
Browse files Browse the repository at this point in the history
Fixed Save and Cancel Button UI
  • Loading branch information
hiteashgupta1 authored Nov 9, 2024
2 parents 4d586d7 + 63d4f6f commit 461d11d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
8 changes: 4 additions & 4 deletions profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ <h3>Recent Activity</h3>
<a href="#">
<button class="edit-profile-btn">View</button>
</a>
main
</div>
<button type="submit">Save</button>
<button type="button" id="cancelButton">Cancel</button>
</form>
</div>
<div class="button-container">
<button type="submit" id="saveButton">Save</button>
<button type="button" id="cancelButton">Cancel</button>
</div>

edit
<section class="content-section">
<h2>Notifications</h2>
<div class="card">
Expand Down
27 changes: 27 additions & 0 deletions testp.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,34 @@ body {

}

.button-container {

display: flex;
justify-content: right;
gap: 15px;
margin-top: 15px;

}

#saveButton, #cancelButton {

background: rgb(51 51 51);
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
transition: background 0.3s, transform 0.3s;
position: relative;
height: 40px;
}

#saveButton:hover, #cancelButton:hover {

background-color: #000000;
transform: scale(1.05);

}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
Expand Down

1 comment on commit 461d11d

@vercel
Copy link

@vercel vercel bot commented on 461d11d Nov 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.