0

How to insert space between div elements without changing responsive design

https://code.sololearn.com/WpAnDh2no758/?ref=app

30th Jun 2022, 6:21 PM
Mariam Khaled
22 Réponses
+ 3
If you look at the example in lesson 24 you will notice that the divs are touching but the content is what is spaced apart
30th Jun 2022, 8:12 PM
Chris Coder
Chris Coder - avatar
+ 4
Chris Coder thank you a lot it worked and i have adjust the rest
30th Jun 2022, 8:33 PM
Mariam Khaled
+ 3
Why not add margins for the divs?
30th Jun 2022, 6:25 PM
Justice
Justice - avatar
+ 3
Mariam Khaled try margin-bottom:;
30th Jun 2022, 6:35 PM
Chris Coder
Chris Coder - avatar
+ 3
Are you not able to use an "@media and..." to add the different margins depending on the size of the screen?
30th Jun 2022, 7:04 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Mariam Khaled Nice Job! Happy Coding!
30th Jun 2022, 8:36 PM
Chris Coder
Chris Coder - avatar
+ 3
Best community ever
1st Jul 2022, 8:49 PM
StefanFocht
StefanFocht - avatar
+ 1
CSS has properties for specifying the margin for each side of an element: margin-top margin-right margin-bottom margin-left margin is the short hand margin: 0px 0px 0px 0px;
30th Jun 2022, 6:52 PM
Chris Coder
Chris Coder - avatar
+ 1
What boxes please update your code to give a visual.
30th Jun 2022, 6:53 PM
Chris Coder
Chris Coder - avatar
+ 1
Haha is this from the Coursera.org course?
30th Jun 2022, 7:00 PM
Chris Coder
Chris Coder - avatar
+ 1
Look at lecture 24 responsive design
30th Jun 2022, 7:16 PM
Chris Coder
Chris Coder - avatar
+ 1
margin-top property in css
2nd Jul 2022, 12:17 PM
Darshit
+ 1
margin-top:10px;
2nd Jul 2022, 12:28 PM
Darshit
0
If i did that With larger screen i will have the first 2 boxes instead of 3
30th Jun 2022, 6:26 PM
Mariam Khaled
0
Chris Coder it works but how about the left/right spacing?
30th Jun 2022, 6:49 PM
Mariam Khaled
0
Chris Coder it I add margins to them 2 boxes only appear next to each other in the desktop view
30th Jun 2022, 6:51 PM
Mariam Khaled
0
https://code.sololearn.com/WQrlNm3mh417/?ref=app This is supposed to be responsive So how to make the 3 boxes appear next to each other with space between them in the desktop view (>992)
30th Jun 2022, 6:57 PM
Mariam Khaled
0
Ausgrindtube it doesn’t seem to work out
30th Jun 2022, 7:10 PM
Mariam Khaled
0
Chris Coder i did that beforehand
30th Jun 2022, 7:20 PM
Mariam Khaled
2nd Jul 2022, 6:26 AM
DESHMUKH MUSAHIB
DESHMUKH MUSAHIB - avatar