For this specific element, I am unable to utilize CSS for styling due to constraints within the Google Maps API map. Therefore, I must resort to using inline styling to achieve my desired layout. My goal is to have an image and text displayed side by side, but I am encountering difficulties implementing display flex. Any assistance on this matter would be greatly appreciated!
Inline Styling Attempt for Display: Flex
content.push('<div style={{display: flex}}><img id="legend-icon" width="25" height="25" src="' + lights + '"><p>Lights in Sky</p></div>');
Code Sample
var content = [];
content.push('<h1>Icon Legend</h1>');
content.push('<img id="legend-icon" widht="25" height="25" src="' + lights + '"><p>Lights in Sky</p>');
content.push('<img id="legend-icon" width="25" height="25" src="' + alien + '"><p>Alien Sighting</p>');
content.push('<img id="legend-icon" width="25" height="25" src="' + ufo + '"><p>Abduction</p>');
content.push('<img id="legend-icon" width="25" height="25" src="' + redBlur + '"><p>Sighting within last week</p>');
content.push('<img id="legend-icon" width="25" height="25" src="' + greenBlur + '"><p>Sighting within last month</p>');
content.push('<img id="legend-icon" width="25" height="25" src="' + blueBlur + '"><p>Sightings over a month</p>');