Hi There,
There is the default CSS for the responsive is more priori than your custom CSS:
@media (max-width: 767px){
.x-section .x-container.marginless-columns>.x-column[class*="x-"] {
display: block;
width: 100%;
vertical-align: inherit;
}
}
So you need to override this CSS with the ID, the class will not work:
@media (max-width: 767px){
#test-id-001 .x-column {
width: 48%;
float: left;
margin-right: 2%;
}
#gtest-id-001 .x-column:nth-child(2n){
margin-right: 0;
}
#test-id-001 .x-column:nth-child(2n+1) {
clear: both;
}
}
For more information, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.
I recommend you to watch following video that will help you to get started with CSS.
https://www.youtube.com/watch?v=MFR4WXiLzpc
Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.
https://developers.google.com/web/tools/chrome-devtools/css/
https://developers.google.com/web/tools/chrome-devtools/
https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s
Thanks.