in media query 480px-769.999px I want both side to be equal with margin(opening)
-
hello,
I want to have those 2 rows equal on both side with margin-left and right 4% ( flexbox) in the :
@media (min-width: 480px) and (max-width: 679.9999px)
this is my code :
.box { border:0.01 solid #4b5054; background-color:red; box-sizing:inherit; width:100%; height:100px; display:flex; flex-direction:row; } .box-item1{ width:78%; justify-content:flex-start; float:left; padding-top:15px; margin-left:4%; } .box-item1 h4{ font-size:1rem; font-weight:bold; color:#ffd978; } .box-item1 p { margin-top:-1.75rem; font-size:14px; line-height:1.2; color:white; } .box-item2{ display:none; } .box-item3{ width:22%; justify-content:flex-end; padding-top:12.5px; float:right; margin-right:4%; } .box-item3 h4 { font-size:1rem; font-weight:bold; color:#ffd978; } .box-item3 p { color:white; font-size:14px; margin-top:-1.75rem; line-height:1.2; }
when you go to my url and open inspect element in chrome or firefox and go to the range 480px and try to go up to 679 the margins on the left and the right are coming unequal while I want those 2 boxes-item to be 4% on the both side in the range of 480px to 679px.
I mean I want both side the openings to be equal.
can some one correct my code or give me some advice?
I tried in other width for 2 boxes but the problem is the same.
actually I know when 3 items (rows) are they have to be 33.333% eache item in flexbox.
thanks
The page I need help with: [log in to see the link]
- The topic ‘in media query 480px-769.999px I want both side to be equal with margin(opening)’ is closed to new replies.