DannyBoy97 Posted February 20 Share Posted February 20 I want to apply this code on multiple pages, is there a way I can do that without keep looking for the page ID? CODE: @media only screen and (min-width: 641px) { #item-65d4d12a2e7bde1fca6600c6 { #page .page-section:nth-of-type(1) { width: 40%; min-height: 0vh; align-items: center; float: left; } #page .page-section:nth-of-type(2) { width: 60%; min-height: 100vh; align-items: center; float: right; } #page .page-section:nth-of-type(3) { width: 40%; min-height: 0vh; align-items: center; float: left; } } } Link to comment
Solution tuanphan Posted February 24 Solution Share Posted February 24 Edit that page > Add a Code Block (any where on page) > use this code <style> @media only screen and (min-width: 768px) { #page .page-section:nth-of-type(1) { width: 40%; min-height: 0vh; align-items: center; float: left; } #page .page-section:nth-of-type(2) { width: 60%; min-height: 100vh; align-items: center; float: right; } #page .page-section:nth-of-type(3) { width: 40%; min-height: 0vh; align-items: center; float: left; } } </style> 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!) Link to comment
DannyBoy97 Posted February 27 Author Share Posted February 27 On 2/23/2024 at 5:22 PM, tuanphan said: Edit that page > Add a Code Block (any where on page) > use this code <style> @media only screen and (min-width: 768px) { #page .page-section:nth-of-type(1) { width: 40%; min-height: 0vh; align-items: center; float: left; } #page .page-section:nth-of-type(2) { width: 60%; min-height: 100vh; align-items: center; float: right; } #page .page-section:nth-of-type(3) { width: 40%; min-height: 0vh; align-items: center; float: left; } } </style> Thank you so much! it works! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment