Make image scale next to a div inside a div












-1














I am creating a webpage where I need to have a two boxes of text right next to each other as long as the other div has content, then the main text will take the width of the whole space.



However, as the text will scale fine, any image will not and will to the the bottom of the small div, leaving a huge empty space between main text and the image.



Is there a simple way to force the images to scale to the side of the inner div or do I need another solution for this?



Thank you in advance! :)






.container {
width: 600px;
}

.long-text {
overflow: hidden;
width: 100%;
background: white;
}

.long-text p {}

.long-text img {
width: auto;
max-height: 400px;
}

.right-column {
width: 200px;
float: right;
background: green;
padding: 5px 0 0 18px;
}

<div class="container">
<div class="long-text">
<div class="right-column">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>
</div>
<p>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
</p>
<img src="https://placeimg.com/640/480/any">
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
</p>
<p>
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
</div>





JS filddle:
https://jsfiddle.net/marginaalivirhe/d8yLko24/8/










share|improve this question



























    -1














    I am creating a webpage where I need to have a two boxes of text right next to each other as long as the other div has content, then the main text will take the width of the whole space.



    However, as the text will scale fine, any image will not and will to the the bottom of the small div, leaving a huge empty space between main text and the image.



    Is there a simple way to force the images to scale to the side of the inner div or do I need another solution for this?



    Thank you in advance! :)






    .container {
    width: 600px;
    }

    .long-text {
    overflow: hidden;
    width: 100%;
    background: white;
    }

    .long-text p {}

    .long-text img {
    width: auto;
    max-height: 400px;
    }

    .right-column {
    width: 200px;
    float: right;
    background: green;
    padding: 5px 0 0 18px;
    }

    <div class="container">
    <div class="long-text">
    <div class="right-column">
    <p>
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
    </p>
    <p>
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
    </p>
    </div>
    <p>
    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
    </p>
    <img src="https://placeimg.com/640/480/any">
    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
    </p>
    <p>
    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    </p>
    </div>
    </div>





    JS filddle:
    https://jsfiddle.net/marginaalivirhe/d8yLko24/8/










    share|improve this question

























      -1












      -1








      -1







      I am creating a webpage where I need to have a two boxes of text right next to each other as long as the other div has content, then the main text will take the width of the whole space.



      However, as the text will scale fine, any image will not and will to the the bottom of the small div, leaving a huge empty space between main text and the image.



      Is there a simple way to force the images to scale to the side of the inner div or do I need another solution for this?



      Thank you in advance! :)






      .container {
      width: 600px;
      }

      .long-text {
      overflow: hidden;
      width: 100%;
      background: white;
      }

      .long-text p {}

      .long-text img {
      width: auto;
      max-height: 400px;
      }

      .right-column {
      width: 200px;
      float: right;
      background: green;
      padding: 5px 0 0 18px;
      }

      <div class="container">
      <div class="long-text">
      <div class="right-column">
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      </div>
      <p>
      It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
      </p>
      <img src="https://placeimg.com/640/480/any">
      <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
      </p>
      <p>
      It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
      </p>
      </div>
      </div>





      JS filddle:
      https://jsfiddle.net/marginaalivirhe/d8yLko24/8/










      share|improve this question













      I am creating a webpage where I need to have a two boxes of text right next to each other as long as the other div has content, then the main text will take the width of the whole space.



      However, as the text will scale fine, any image will not and will to the the bottom of the small div, leaving a huge empty space between main text and the image.



      Is there a simple way to force the images to scale to the side of the inner div or do I need another solution for this?



      Thank you in advance! :)






      .container {
      width: 600px;
      }

      .long-text {
      overflow: hidden;
      width: 100%;
      background: white;
      }

      .long-text p {}

      .long-text img {
      width: auto;
      max-height: 400px;
      }

      .right-column {
      width: 200px;
      float: right;
      background: green;
      padding: 5px 0 0 18px;
      }

      <div class="container">
      <div class="long-text">
      <div class="right-column">
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      </div>
      <p>
      It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
      </p>
      <img src="https://placeimg.com/640/480/any">
      <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
      </p>
      <p>
      It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
      </p>
      </div>
      </div>





      JS filddle:
      https://jsfiddle.net/marginaalivirhe/d8yLko24/8/






      .container {
      width: 600px;
      }

      .long-text {
      overflow: hidden;
      width: 100%;
      background: white;
      }

      .long-text p {}

      .long-text img {
      width: auto;
      max-height: 400px;
      }

      .right-column {
      width: 200px;
      float: right;
      background: green;
      padding: 5px 0 0 18px;
      }

      <div class="container">
      <div class="long-text">
      <div class="right-column">
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      </div>
      <p>
      It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
      </p>
      <img src="https://placeimg.com/640/480/any">
      <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
      </p>
      <p>
      It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
      </p>
      </div>
      </div>





      .container {
      width: 600px;
      }

      .long-text {
      overflow: hidden;
      width: 100%;
      background: white;
      }

      .long-text p {}

      .long-text img {
      width: auto;
      max-height: 400px;
      }

      .right-column {
      width: 200px;
      float: right;
      background: green;
      padding: 5px 0 0 18px;
      }

      <div class="container">
      <div class="long-text">
      <div class="right-column">
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
      </p>
      </div>
      <p>
      It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
      </p>
      <img src="https://placeimg.com/640/480/any">
      <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
      </p>
      <p>
      It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
      </p>
      </div>
      </div>






      html css image






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 '18 at 13:53









      marginaalivirhe

      64




      64
























          2 Answers
          2






          active

          oldest

          votes


















          0














          You can also make a lay-out for each resolution.



          With @media in css https://www.w3schools.com/css/css3_mediaqueries.asp






          share|improve this answer





























            0














            Are you looking for this result?






            .container {
            width: 600px;
            display:flex
            }

            .long-text {
            flex-grow:1;
            background: white;
            }



            .long-text img {
            max-height: 400px;
            }

            .right-column {
            width: 200px;
            flex-shrink:0;
            background: green;
            padding: 5px 0 0 18px;
            }

            <div class="container">
            <div class="long-text">

            <p>
            It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
            </p>
            <img src="https://placeimg.com/640/480/any">
            <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
            </p>
            <p>
            It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
            </p>
            </div>
            <div class="right-column">
            <p>
            Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
            </p>
            <p>
            Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
            </p>
            </div>
            </div>








            share|improve this answer





















            • Unfortunately no. I need the right-hand side div to end when its content ends. Thank you anyway :)
              – marginaalivirhe
              Nov 20 '18 at 7:00











            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%2f53376138%2fmake-image-scale-next-to-a-div-inside-a-div%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You can also make a lay-out for each resolution.



            With @media in css https://www.w3schools.com/css/css3_mediaqueries.asp






            share|improve this answer


























              0














              You can also make a lay-out for each resolution.



              With @media in css https://www.w3schools.com/css/css3_mediaqueries.asp






              share|improve this answer
























                0












                0








                0






                You can also make a lay-out for each resolution.



                With @media in css https://www.w3schools.com/css/css3_mediaqueries.asp






                share|improve this answer












                You can also make a lay-out for each resolution.



                With @media in css https://www.w3schools.com/css/css3_mediaqueries.asp







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 '18 at 13:58









                Benjamin45

                457




                457

























                    0














                    Are you looking for this result?






                    .container {
                    width: 600px;
                    display:flex
                    }

                    .long-text {
                    flex-grow:1;
                    background: white;
                    }



                    .long-text img {
                    max-height: 400px;
                    }

                    .right-column {
                    width: 200px;
                    flex-shrink:0;
                    background: green;
                    padding: 5px 0 0 18px;
                    }

                    <div class="container">
                    <div class="long-text">

                    <p>
                    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
                    </p>
                    <img src="https://placeimg.com/640/480/any">
                    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
                    </p>
                    <p>
                    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                    </p>
                    </div>
                    <div class="right-column">
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    </div>
                    </div>








                    share|improve this answer





















                    • Unfortunately no. I need the right-hand side div to end when its content ends. Thank you anyway :)
                      – marginaalivirhe
                      Nov 20 '18 at 7:00
















                    0














                    Are you looking for this result?






                    .container {
                    width: 600px;
                    display:flex
                    }

                    .long-text {
                    flex-grow:1;
                    background: white;
                    }



                    .long-text img {
                    max-height: 400px;
                    }

                    .right-column {
                    width: 200px;
                    flex-shrink:0;
                    background: green;
                    padding: 5px 0 0 18px;
                    }

                    <div class="container">
                    <div class="long-text">

                    <p>
                    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
                    </p>
                    <img src="https://placeimg.com/640/480/any">
                    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
                    </p>
                    <p>
                    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                    </p>
                    </div>
                    <div class="right-column">
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    </div>
                    </div>








                    share|improve this answer





















                    • Unfortunately no. I need the right-hand side div to end when its content ends. Thank you anyway :)
                      – marginaalivirhe
                      Nov 20 '18 at 7:00














                    0












                    0








                    0






                    Are you looking for this result?






                    .container {
                    width: 600px;
                    display:flex
                    }

                    .long-text {
                    flex-grow:1;
                    background: white;
                    }



                    .long-text img {
                    max-height: 400px;
                    }

                    .right-column {
                    width: 200px;
                    flex-shrink:0;
                    background: green;
                    padding: 5px 0 0 18px;
                    }

                    <div class="container">
                    <div class="long-text">

                    <p>
                    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
                    </p>
                    <img src="https://placeimg.com/640/480/any">
                    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
                    </p>
                    <p>
                    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                    </p>
                    </div>
                    <div class="right-column">
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    </div>
                    </div>








                    share|improve this answer












                    Are you looking for this result?






                    .container {
                    width: 600px;
                    display:flex
                    }

                    .long-text {
                    flex-grow:1;
                    background: white;
                    }



                    .long-text img {
                    max-height: 400px;
                    }

                    .right-column {
                    width: 200px;
                    flex-shrink:0;
                    background: green;
                    padding: 5px 0 0 18px;
                    }

                    <div class="container">
                    <div class="long-text">

                    <p>
                    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
                    </p>
                    <img src="https://placeimg.com/640/480/any">
                    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
                    </p>
                    <p>
                    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                    </p>
                    </div>
                    <div class="right-column">
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    </div>
                    </div>








                    .container {
                    width: 600px;
                    display:flex
                    }

                    .long-text {
                    flex-grow:1;
                    background: white;
                    }



                    .long-text img {
                    max-height: 400px;
                    }

                    .right-column {
                    width: 200px;
                    flex-shrink:0;
                    background: green;
                    padding: 5px 0 0 18px;
                    }

                    <div class="container">
                    <div class="long-text">

                    <p>
                    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
                    </p>
                    <img src="https://placeimg.com/640/480/any">
                    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
                    </p>
                    <p>
                    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                    </p>
                    </div>
                    <div class="right-column">
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    </div>
                    </div>





                    .container {
                    width: 600px;
                    display:flex
                    }

                    .long-text {
                    flex-grow:1;
                    background: white;
                    }



                    .long-text img {
                    max-height: 400px;
                    }

                    .right-column {
                    width: 200px;
                    flex-shrink:0;
                    background: green;
                    padding: 5px 0 0 18px;
                    }

                    <div class="container">
                    <div class="long-text">

                    <p>
                    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
                    </p>
                    <img src="https://placeimg.com/640/480/any">
                    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable
                    </p>
                    <p>
                    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                    </p>
                    </div>
                    <div class="right-column">
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    <p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
                    </p>
                    </div>
                    </div>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 19 '18 at 14:08









                    Sepehr Amirkiaee

                    213




                    213












                    • Unfortunately no. I need the right-hand side div to end when its content ends. Thank you anyway :)
                      – marginaalivirhe
                      Nov 20 '18 at 7:00


















                    • Unfortunately no. I need the right-hand side div to end when its content ends. Thank you anyway :)
                      – marginaalivirhe
                      Nov 20 '18 at 7:00
















                    Unfortunately no. I need the right-hand side div to end when its content ends. Thank you anyway :)
                    – marginaalivirhe
                    Nov 20 '18 at 7:00




                    Unfortunately no. I need the right-hand side div to end when its content ends. Thank you anyway :)
                    – marginaalivirhe
                    Nov 20 '18 at 7:00


















                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f53376138%2fmake-image-scale-next-to-a-div-inside-a-div%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

                    'app-layout' is not a known element: how to share Component with different Modules

                    android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                    WPF add header to Image with URL pettitions [duplicate]