katie0000 Posted August 25, 2021 Posted August 25, 2021 Site URL: http://katiecaftravel.com hi all - I added a vertical line via custom code to divide my page: /* Vertical Line */ .vertical-line { height: 5000px; /* line height */ width: .1px; /* line width */ background: #D3D3D3; /*line colour*/ margin-right: 0px; margin-left: 40px; top: 0px; bottom: 0px; } and I want it to disappear on mobile because it's just this huge line at the end of the scroll on mobile currently, so I used this: @media screen and (max-width:640px) { section[data-section-id=“#block-yui_3_17_2_1_1629838726812_40395.”] { display: none;} } this is the block code information: <div class="sqs-block code-block sqs-block-code" data-block-type="23" id="block-yui_3_17_2_1_1629838726812_40395"><div class="sqs-block-content" id="yui_3_17_2_1_1629848011465_993"><div class="vertical-line" id="yui_3_17_2_1_1629848011465_1073"></div></div></div> and it does nothing! at my wit's end here haha. any help appreciated
tuanphan Posted August 27, 2021 Posted August 27, 2021 Add to Design > Custom CSS @media screen and (max-width:767px) { .vertical-line {display: none !important;} } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.