Ottan Posted January 29 Posted January 29 I embedded an arcgis (not designed by me) on my website here: https://pedl.tech/resource-map Password: Mert's Maps [space included] I used some CSS code to make the section the full-width of the page. However, the map seems to be pulling in narrower than the page. My partner who made the map thinks this is something that can be adjusted with web code versus the arcgis app. Any suggestions? Many thanks. <style> .embed-container { position: relative; padding-bottom: 80%; height: 0; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container iframe{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style> <div class="embed-container"> <iframe frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%" src="https://ut-austin.maps.arcgis.com/apps/instant/media/index.html?appid=0d99623c08774fe78e6cbf0f1a102623"></iframe> </div>
Solution tuanphan Posted February 1 Solution Posted February 1 You can use this code to Website > Website Tools (under Not Linked) > Custom CSS to increase width .fe-65b1968b881a407ad804001e { --sqs-site-max-width: 100% !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!)
Ottan Posted February 16 Author Posted February 16 Ugh. I accidentally deleted some CSS that I had above this code, and now it now longer works. I can't seem to recreate what I did either. Welcome any suggestions.
tuanphan Posted February 18 Posted February 18 You can move this code in to bottom of Code Block (do not add to Custom CSS) <style> .fe-65b1968b881a407ad804001e { --sqs-site-max-width: 100% !important; } </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!)
Ottan Posted March 1 Author Posted March 1 On 2/17/2024 at 11:01 PM, tuanphan said: You can move this code in to bottom of Code Block (do not add to Custom CSS) <style> .fe-65b1968b881a407ad804001e { --sqs-site-max-width: 100% !important; } </style> I'm curious, what does the fe-65b1968b881a407ad804001e refer to? It's not something I see when I use the ID viewer in Chrome.
tuanphan Posted March 3 Posted March 3 On 3/1/2024 at 11:32 PM, Ottan said: I'm curious, what does the fe-65b1968b881a407ad804001e refer to? It's not something I see when I use the ID viewer in Chrome. You can use this ID, both are same [data-section-id="...."] .fluid-engine Replace data-section-id with your id 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
Create an account or sign in to comment
You need to be a member in order to leave a comment