- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Remove shadow of an element in Bootstrap 4
Use the .shadow-none class in Bootstrap to remove shadow.
You can try to run the following code to remove an element’s shadow −
Example
<!DOCTYPE html> <html lang = "en"> <head> <title>Bootstrap Example</title> <meta charset = "utf-8"> <meta name = "viewport" content="width = device-width, initial-scale = 1"> <link rel = "stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <h1>Learning</h1> <p>Learn Tutorials for free</p> <div class = "shadow-none p-4 mb-4 bg-light">Play Quiz and check your knowledge</div> </div> </body> </html>
- Related Articles
- Add large shadow to an element in Bootstrap 4
- Add small shadow to an element in Bootstrap 4
- Add a shadow to an element with Bootstrap 4
- Remove the top border from an element in Bootstrap 4
- Remove the left border from an element in Bootstrap 4
- Remove borders from an element in Bootstrap
- Remove float from an element in Bootstrap
- Remove the right border from an element in Bootstrap
- Place an element in the middle of the parent element in Bootstrap 4
- Set the width of an element to 50% in Bootstrap 4
- Add top rounded corners to an element in Bootstrap 4
- Add bottom rounded corners to an element in Bootstrap 4
- Set a grey border to an element in Bootstrap 4
- Align an element with the baseline of the parent in Bootstrap 4
- Align an element with the lowest element on the line in Bootstrap 4

Advertisements