Is it possible to make a flex box with with % images instead of pixels?How to align photos horizontally that was previously aligned vertically?Can I stop 100% Width Text Boxes from extending beyond their containers?Input with display:block is not a block, why not?How do I make a placeholder for a 'select' box?Flex-box: Align last row to gridCannot display HTML stringChange order of flex items when flex box width changesMaximum possible size image and div expanding to fill the spacesetting the height of an image within a flex-wrap elementFlexbox modify flex-item property to stack one item on top of the othertext not wrapping in IE using flex box

What is the meaning of word 'crack' in chapter 33 of A Game of Thrones?

Order of ingredients when making Pizza dough

How do pilots align the HUD with their eyeballs?

Can a DC brushless motor produce the same torque at different power levels?

Writing a letter of recommendation for a mediocre student

Why weren't the Death Star plans transmitted electronically?

Is it really necessary to have a four hour meeting in Sprint planning?

Are lawyers allowed to come to agreements with opposing lawyers without the client's knowledge or consent?

To change trains = cambiare treno?

Functional analysis of the Pink Panther

practicality of 30 year fix mortgage at 55 years of age

word frequency from file using partial match

Does HTTP HSTS protect a domain from a bad-actor publically-trusted-CA issing a illegitimate valid certificate?

Is it possible to encode a message in such a way that can only be read by someone or something capable of seeing into the very near future?

How can an attacker use robots.txt?

Safely hang a mirror that does not have hooks

Extruding snaps back

1, 2, 4, 8, 16, ... 33?

Why did UK NHS pay for homeopathic treatments?

Would Taiwan and China's dispute be solved if Taiwan gave up being the Republic of China?

What can a pilot do if an air traffic controller is incapacitated?

How to justify a team increase when the team is doing good?

On the meaning of 'anyways' in "What Exactly Is a Quartz Crystal, Anyways?"

Do we have any particular tonal center in mind when we are NOT listening music?



Is it possible to make a flex box with with % images instead of pixels?


How to align photos horizontally that was previously aligned vertically?Can I stop 100% Width Text Boxes from extending beyond their containers?Input with display:block is not a block, why not?How do I make a placeholder for a 'select' box?Flex-box: Align last row to gridCannot display HTML stringChange order of flex items when flex box width changesMaximum possible size image and div expanding to fill the spacesetting the height of an image within a flex-wrap elementFlexbox modify flex-item property to stack one item on top of the othertext not wrapping in IE using flex box






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















When I have the width of the images set to a % with flex-wrap: wrap;, flex wrap doesn't work. I can understand because the image stays proportional to the viewport. When I switch it to px it works.
Is there a way to keep it as a % to be fluid, but when the images get below a certain size it wraps?



I've tried using % and px. Flex wrap works for px but not %.



* 
font-family: arial, sans-serif;
box-sizing: border-box;

html, body
margin: 0;
padding: 0;


.flex-container
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: .5%;
padding-top: 100px;


.flex-container > div
text-align: center;
margin: .5%;
width: 31%;
padding: 0;


@media screen and (max-width:500px)
.column
width: 100%;







<div class="flex-container">

<div><img src="Images/Printing/Dinner Menus-01.jpg" style="max-width:100%;height:auto;" alt="Banners" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Posters" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Poster" /></div>
</div>














share|improve this question





















  • 1





    use media queries to change the width so it wraps - pretty similar to this question I just answered

    – Pete
    Mar 28 at 17:03












  • the .column in your media query is not found in your html

    – KENZiE
    Mar 29 at 15:33

















0















When I have the width of the images set to a % with flex-wrap: wrap;, flex wrap doesn't work. I can understand because the image stays proportional to the viewport. When I switch it to px it works.
Is there a way to keep it as a % to be fluid, but when the images get below a certain size it wraps?



I've tried using % and px. Flex wrap works for px but not %.



* 
font-family: arial, sans-serif;
box-sizing: border-box;

html, body
margin: 0;
padding: 0;


.flex-container
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: .5%;
padding-top: 100px;


.flex-container > div
text-align: center;
margin: .5%;
width: 31%;
padding: 0;


@media screen and (max-width:500px)
.column
width: 100%;







<div class="flex-container">

<div><img src="Images/Printing/Dinner Menus-01.jpg" style="max-width:100%;height:auto;" alt="Banners" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Posters" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Poster" /></div>
</div>














share|improve this question





















  • 1





    use media queries to change the width so it wraps - pretty similar to this question I just answered

    – Pete
    Mar 28 at 17:03












  • the .column in your media query is not found in your html

    – KENZiE
    Mar 29 at 15:33













0












0








0








When I have the width of the images set to a % with flex-wrap: wrap;, flex wrap doesn't work. I can understand because the image stays proportional to the viewport. When I switch it to px it works.
Is there a way to keep it as a % to be fluid, but when the images get below a certain size it wraps?



I've tried using % and px. Flex wrap works for px but not %.



* 
font-family: arial, sans-serif;
box-sizing: border-box;

html, body
margin: 0;
padding: 0;


.flex-container
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: .5%;
padding-top: 100px;


.flex-container > div
text-align: center;
margin: .5%;
width: 31%;
padding: 0;


@media screen and (max-width:500px)
.column
width: 100%;







<div class="flex-container">

<div><img src="Images/Printing/Dinner Menus-01.jpg" style="max-width:100%;height:auto;" alt="Banners" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Posters" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Poster" /></div>
</div>














share|improve this question
















When I have the width of the images set to a % with flex-wrap: wrap;, flex wrap doesn't work. I can understand because the image stays proportional to the viewport. When I switch it to px it works.
Is there a way to keep it as a % to be fluid, but when the images get below a certain size it wraps?



I've tried using % and px. Flex wrap works for px but not %.



* 
font-family: arial, sans-serif;
box-sizing: border-box;

html, body
margin: 0;
padding: 0;


.flex-container
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: .5%;
padding-top: 100px;


.flex-container > div
text-align: center;
margin: .5%;
width: 31%;
padding: 0;


@media screen and (max-width:500px)
.column
width: 100%;







<div class="flex-container">

<div><img src="Images/Printing/Dinner Menus-01.jpg" style="max-width:100%;height:auto;" alt="Banners" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Posters" /></div>
<div><img src="Images/Printing/Banner.jpg" style="max-width:100%;height:auto;" alt="Poster" /></div>
</div>











html css css3 flexbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 15:17









Michael_B

177k52 gold badges291 silver badges403 bronze badges




177k52 gold badges291 silver badges403 bronze badges










asked Mar 28 at 17:02









YabusaYabusa

15114 bronze badges




15114 bronze badges










  • 1





    use media queries to change the width so it wraps - pretty similar to this question I just answered

    – Pete
    Mar 28 at 17:03












  • the .column in your media query is not found in your html

    – KENZiE
    Mar 29 at 15:33












  • 1





    use media queries to change the width so it wraps - pretty similar to this question I just answered

    – Pete
    Mar 28 at 17:03












  • the .column in your media query is not found in your html

    – KENZiE
    Mar 29 at 15:33







1




1





use media queries to change the width so it wraps - pretty similar to this question I just answered

– Pete
Mar 28 at 17:03






use media queries to change the width so it wraps - pretty similar to this question I just answered

– Pete
Mar 28 at 17:03














the .column in your media query is not found in your html

– KENZiE
Mar 29 at 15:33





the .column in your media query is not found in your html

– KENZiE
Mar 29 at 15:33












0






active

oldest

votes














Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403202%2fis-it-possible-to-make-a-flex-box-with-with-images-instead-of-pixels%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403202%2fis-it-possible-to-make-a-flex-box-with-with-images-instead-of-pixels%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript