HI Team
I want to create a spaces in between div class container, below is my css style and div class.
/css file
CSS
img {
display: block;
max-width: 100%;
height: auto;
margin-bottom: 20px; /* add margin to create space between images */
}
@media (min-width: 768px) {
picture {
width: 100%;
height: 100%;
}
}// div classes
Code
Discounted Deals
Abhishek ChadhaRank #402 · 6.2K reputationPosted Apr 11, 2023, 10:16 AM EDT
You can use the Margin or padding whichever suited to your requirement
Deepak RawatRank #646 · 3.7K reputationPosted Apr 18, 2023, 2:53 PM EDT
I use this method try if it can resolve your issue.
.container { margin-bottom: 20px; /* Adds a 20px space below each container */ }Tuhin PaulRank #7 · 71.9K reputationPosted Apr 18, 2023, 10:11 PM EDT
To add space between the images inside the container, you can add a margin-bottom property to the "col-md-6" class.
Tuhin PaulRank #7 · 71.9K reputationPosted Apr 18, 2023, 10:12 PM EDT
Sample Code:
This will add a 20px margin-bottom to all the columns with the class "col-md-6", creating space between the images.