I'm trying to create a page that will retain its proportions across all desktop monitor screen sizes.
To that effect, I made a flex layout in which I intend to have a small place for an image within one of its subdivisions.
The problem is that once I insert the image into the tag, the container flex element grows disproportionately breaking the whole layout. Anyone have any ideas why that is?
Here is the codepen with the CSS
.
<div id="main">
<section id="profile-page" class="container">
<div id="profile-picture-container">
<div id="profile-picture">
<img id="profile-picture-img " src="http://static.compare- imports.com/thumbs/6/2014/8/3/Pixel-Pawn-TF362-Wireless-Remote-Flash-Trigger-For-1181993.jpg"></img>
</div>
<div id="speech-bubble">
</div>
</div>
<div class="profile-details-container">
</div>
</section>
<section id="side-page">
</section>
</div>
If you remove the image, the layout is as it should be. Once you add it, the parent element grows too large disrupting the flow of everything else.