How to set mat-card-image height to 100%? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceAngular Material: How do you specify spacing between two columns in a layout?md-card-image with overflow:hidden + max-height kills 100% widthResponsive list of Material Cards With Angular 4How to Center the Content inside Mat-Card Component - Angular 6Setting the rowHeight of a single tile in mat-grid-list (Angular 6)Align mat-cards content (image, text and buttons)Highlighting a newly added mat-cardMultiple images in mat-cardmat-card, how to change default paddingLast Mat Card does not resize component height

Limit for e and 1/e

What to do with post with dry rot?

Can a monk deflect thrown melee weapons?

What is the electric potential inside a point charge?

How can I make names more distinctive without making them longer?

Is there folklore associating late breastfeeding with low intelligence and/or gullibility?

How is simplicity better than precision and clarity in prose?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

Slither Like a Snake

Why does tar appear to skip file contents when output file is /dev/null?

What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?

How to colour the US map with Yellow, Green, Red and Blue to minimize the number of states with the colour of Green

Why is "Captain Marvel" translated as male in Portugal?

Stars Make Stars

Cold is to Refrigerator as warm is to?

How to retrograde a note sequence in Finale?

Did the new image of black hole confirm the general theory of relativity?

Working around an AWS network ACL rule limit

Who can trigger ship-wide alerts in Star Trek?

Losing the Initialization Vector in Cipher Block Chaining

Keep going mode for require-package

What would be Julian Assange's expected punishment, on the current English criminal law?

Estimate capacitor parameters

Windows 10: How to Lock (not sleep) laptop on lid close?



How to set mat-card-image height to 100%?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceAngular Material: How do you specify spacing between two columns in a layout?md-card-image with overflow:hidden + max-height kills 100% widthResponsive list of Material Cards With Angular 4How to Center the Content inside Mat-Card Component - Angular 6Setting the rowHeight of a single tile in mat-grid-list (Angular 6)Align mat-cards content (image, text and buttons)Highlighting a newly added mat-cardMultiple images in mat-cardmat-card, how to change default paddingLast Mat Card does not resize component height



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I'm facing a weird problem..I have a card and it leaves space at the bottomimage output



This is the code:
app.component.html



<div fxLayout="row">
<mat-card fxLayout="row" fxFlex="80%" class="center space-top">
<mat-card-content fxLayout.gt-sm="row">
<div fxLayout.gt-sm="column" fxFlex.gt-sm="40%">
<img mat-card-image src="../../../assets/background.jpg" alt="background image">
</div>
<div fxLayout.gt-sm="column" fxFlex.gt-sm="50%" class="gutter">
<router-outlet></router-outlet>
</div>
</mat-card-content>
</mat-card>
</div>


css part:



.center 
margin-left: auto;
margin-right: auto;


.space-top
margin-top: 5%;


@media only screen and (min-width: 799px)
.gutter
margin-left: 32px;











share|improve this question




























    0















    I'm facing a weird problem..I have a card and it leaves space at the bottomimage output



    This is the code:
    app.component.html



    <div fxLayout="row">
    <mat-card fxLayout="row" fxFlex="80%" class="center space-top">
    <mat-card-content fxLayout.gt-sm="row">
    <div fxLayout.gt-sm="column" fxFlex.gt-sm="40%">
    <img mat-card-image src="../../../assets/background.jpg" alt="background image">
    </div>
    <div fxLayout.gt-sm="column" fxFlex.gt-sm="50%" class="gutter">
    <router-outlet></router-outlet>
    </div>
    </mat-card-content>
    </mat-card>
    </div>


    css part:



    .center 
    margin-left: auto;
    margin-right: auto;


    .space-top
    margin-top: 5%;


    @media only screen and (min-width: 799px)
    .gutter
    margin-left: 32px;











    share|improve this question
























      0












      0








      0








      I'm facing a weird problem..I have a card and it leaves space at the bottomimage output



      This is the code:
      app.component.html



      <div fxLayout="row">
      <mat-card fxLayout="row" fxFlex="80%" class="center space-top">
      <mat-card-content fxLayout.gt-sm="row">
      <div fxLayout.gt-sm="column" fxFlex.gt-sm="40%">
      <img mat-card-image src="../../../assets/background.jpg" alt="background image">
      </div>
      <div fxLayout.gt-sm="column" fxFlex.gt-sm="50%" class="gutter">
      <router-outlet></router-outlet>
      </div>
      </mat-card-content>
      </mat-card>
      </div>


      css part:



      .center 
      margin-left: auto;
      margin-right: auto;


      .space-top
      margin-top: 5%;


      @media only screen and (min-width: 799px)
      .gutter
      margin-left: 32px;











      share|improve this question














      I'm facing a weird problem..I have a card and it leaves space at the bottomimage output



      This is the code:
      app.component.html



      <div fxLayout="row">
      <mat-card fxLayout="row" fxFlex="80%" class="center space-top">
      <mat-card-content fxLayout.gt-sm="row">
      <div fxLayout.gt-sm="column" fxFlex.gt-sm="40%">
      <img mat-card-image src="../../../assets/background.jpg" alt="background image">
      </div>
      <div fxLayout.gt-sm="column" fxFlex.gt-sm="50%" class="gutter">
      <router-outlet></router-outlet>
      </div>
      </mat-card-content>
      </mat-card>
      </div>


      css part:



      .center 
      margin-left: auto;
      margin-right: auto;


      .space-top
      margin-top: 5%;


      @media only screen and (min-width: 799px)
      .gutter
      margin-left: 32px;








      angular angular-material






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 15:01









      Goutam B SeerviGoutam B Seervi

      457




      457






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Ok so what actually happened is, the height of my form was greater than height of the image on left. So i had to add a few css properties to the image



          img 
          height: fit-content; //so that it takes up full space
          max-height: 500px !important; // this prevents the image from being extremely big
          object-fit: cover;
          object-position: center; /* this centers and crops the image so that it doesn't break the aspect ratio */






          share|improve this answer























            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/3.0/"u003ecc by-sa 3.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%2f55065864%2fhow-to-set-mat-card-image-height-to-100%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Ok so what actually happened is, the height of my form was greater than height of the image on left. So i had to add a few css properties to the image



            img 
            height: fit-content; //so that it takes up full space
            max-height: 500px !important; // this prevents the image from being extremely big
            object-fit: cover;
            object-position: center; /* this centers and crops the image so that it doesn't break the aspect ratio */






            share|improve this answer



























              0














              Ok so what actually happened is, the height of my form was greater than height of the image on left. So i had to add a few css properties to the image



              img 
              height: fit-content; //so that it takes up full space
              max-height: 500px !important; // this prevents the image from being extremely big
              object-fit: cover;
              object-position: center; /* this centers and crops the image so that it doesn't break the aspect ratio */






              share|improve this answer

























                0












                0








                0







                Ok so what actually happened is, the height of my form was greater than height of the image on left. So i had to add a few css properties to the image



                img 
                height: fit-content; //so that it takes up full space
                max-height: 500px !important; // this prevents the image from being extremely big
                object-fit: cover;
                object-position: center; /* this centers and crops the image so that it doesn't break the aspect ratio */






                share|improve this answer













                Ok so what actually happened is, the height of my form was greater than height of the image on left. So i had to add a few css properties to the image



                img 
                height: fit-content; //so that it takes up full space
                max-height: 500px !important; // this prevents the image from being extremely big
                object-fit: cover;
                object-position: center; /* this centers and crops the image so that it doesn't break the aspect ratio */







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 8 at 15:39









                Goutam B SeerviGoutam B Seervi

                457




                457





























                    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%2f55065864%2fhow-to-set-mat-card-image-height-to-100%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

                    AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

                    Алба-Юлія

                    Захаров Федір Захарович