how to remove offset in responsive mode in bootstrap 4Reordering divs responsively with Twitter Bootstrap?Change navbar color in Twitter BootstrapWhat is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?How to get bootstrap to display more columns in landscape modeHow to get bootstrap columns to stack responsively?Bootstrap 4 img-responsive in one rowHow to vertically justify in Bootstrap 4 columnsResponsive-table does not fill the whole col in which it is nestedHow to center align a button using bootstrap?How to achieve the below layout with help of CSS for a responsive web page?

Volcanic 3D masyu

Can a Hogwarts student refuse the Sorting Hat's decision?

Write The Shortest Program to Calculate Height of a Binary Tree

Getting an entry level IT position later in life

split inside flalign

How does Geralt transport his swords?

Would the shaking of an earthquake be visible to somebody in a low-flying aircraft?

Meaning of ギャップ in the following sentence

how to change dot to underline in multiple file-names?

Is being a sunni or having sunni toughts a reason not to be reliable as a hadith narrator (shi'a hadith)?

Why is it to say 'paucis post diebus'?

Is there a command-line tool for converting html files to pdf?

Why are there yellow dot stickers on the front doors of businesses in Russia?

Why do rocket engines use nitrogen actuators to operate the fuel/oxidiser valves instead of electric servos?

What is the difference between washer and O-ring? what is their advantages over the other?

Can an Alchemist permanently have a potion buff?

What is a Written Word™?

Approximating an expression for a potential

How does Rust's 128-bit integer `i128` work on a 64-bit system?

Which one is more important between endgame studies and tactics?

Why do my fried eggs start browning very fast?

Does the problem of P vs NP come under the category of Operational Research?

On the consistency of different well-polished astronomy software

When using the Proficiency Dice optional rule, how should they be used in determining a character's Spell Save DC?



how to remove offset in responsive mode in bootstrap 4


Reordering divs responsively with Twitter Bootstrap?Change navbar color in Twitter BootstrapWhat is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?How to get bootstrap to display more columns in landscape modeHow to get bootstrap columns to stack responsively?Bootstrap 4 img-responsive in one rowHow to vertically justify in Bootstrap 4 columnsResponsive-table does not fill the whole col in which it is nestedHow to center align a button using bootstrap?How to achieve the below layout with help of CSS for a responsive web page?






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








0















I have a very simple set up in place, that looks like this:



<div class="row">
<div id="whoarewe" class="offset-2 col-lg-4 col-md-4 col-xs-12 col-sm-12"></div>
<div id="whatwedo" class="col-lg-4 col-md-4 cold-sm-12 col-xs12>
</div>
</div>


The thing is, in responsive mode, the id #whoarewe still has the 2 column offset, therefore is not lined up vertically with #whatwedo. Is there any way I can do this with simply a media query? or is there a bootstrap property that would take care of it in col-xs and col-sm?



I tried to set col-lg-offset-2 and col-sm-offset-0 but this didn't work :(



Thanks.










share|improve this question
































    0















    I have a very simple set up in place, that looks like this:



    <div class="row">
    <div id="whoarewe" class="offset-2 col-lg-4 col-md-4 col-xs-12 col-sm-12"></div>
    <div id="whatwedo" class="col-lg-4 col-md-4 cold-sm-12 col-xs12>
    </div>
    </div>


    The thing is, in responsive mode, the id #whoarewe still has the 2 column offset, therefore is not lined up vertically with #whatwedo. Is there any way I can do this with simply a media query? or is there a bootstrap property that would take care of it in col-xs and col-sm?



    I tried to set col-lg-offset-2 and col-sm-offset-0 but this didn't work :(



    Thanks.










    share|improve this question




























      0












      0








      0








      I have a very simple set up in place, that looks like this:



      <div class="row">
      <div id="whoarewe" class="offset-2 col-lg-4 col-md-4 col-xs-12 col-sm-12"></div>
      <div id="whatwedo" class="col-lg-4 col-md-4 cold-sm-12 col-xs12>
      </div>
      </div>


      The thing is, in responsive mode, the id #whoarewe still has the 2 column offset, therefore is not lined up vertically with #whatwedo. Is there any way I can do this with simply a media query? or is there a bootstrap property that would take care of it in col-xs and col-sm?



      I tried to set col-lg-offset-2 and col-sm-offset-0 but this didn't work :(



      Thanks.










      share|improve this question
















      I have a very simple set up in place, that looks like this:



      <div class="row">
      <div id="whoarewe" class="offset-2 col-lg-4 col-md-4 col-xs-12 col-sm-12"></div>
      <div id="whatwedo" class="col-lg-4 col-md-4 cold-sm-12 col-xs12>
      </div>
      </div>


      The thing is, in responsive mode, the id #whoarewe still has the 2 column offset, therefore is not lined up vertically with #whatwedo. Is there any way I can do this with simply a media query? or is there a bootstrap property that would take care of it in col-xs and col-sm?



      I tried to set col-lg-offset-2 and col-sm-offset-0 but this didn't work :(



      Thanks.







      responsive-design bootstrap-4






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 2:41







      Koosh

















      asked Mar 27 at 2:34









      KooshKoosh

      3822 silver badges11 bronze badges




      3822 silver badges11 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          1














          I came up with a solution that works in my case, basically using a row property called justify-content-around like so:



          <div class="row justify-content-around">
          <div class="col-lg-4"></div>
          <div class="col-log-4></div>
          </div>





          share|improve this answer
































            1














            <div class="row">
            <div id="whoarewe" class="col-md-4 offset-md-2"></div>
            <div id="whatwedo" class="col-md-4"></div>
            </div>


            Refer to the documentation for correct offset classes:
            https://getbootstrap.com/docs/4.0/layout/grid/#offsetting-columns



            Otherwise you can set the column width and do some flex magic by justifying content as per your need



            https://getbootstrap.com/docs/4.0/utilities/flex/#justify-content






            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%2f55368938%2fhow-to-remove-offset-in-responsive-mode-in-bootstrap-4%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









              1














              I came up with a solution that works in my case, basically using a row property called justify-content-around like so:



              <div class="row justify-content-around">
              <div class="col-lg-4"></div>
              <div class="col-log-4></div>
              </div>





              share|improve this answer





























                1














                I came up with a solution that works in my case, basically using a row property called justify-content-around like so:



                <div class="row justify-content-around">
                <div class="col-lg-4"></div>
                <div class="col-log-4></div>
                </div>





                share|improve this answer



























                  1












                  1








                  1







                  I came up with a solution that works in my case, basically using a row property called justify-content-around like so:



                  <div class="row justify-content-around">
                  <div class="col-lg-4"></div>
                  <div class="col-log-4></div>
                  </div>





                  share|improve this answer













                  I came up with a solution that works in my case, basically using a row property called justify-content-around like so:



                  <div class="row justify-content-around">
                  <div class="col-lg-4"></div>
                  <div class="col-log-4></div>
                  </div>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 27 at 2:48









                  KooshKoosh

                  3822 silver badges11 bronze badges




                  3822 silver badges11 bronze badges


























                      1














                      <div class="row">
                      <div id="whoarewe" class="col-md-4 offset-md-2"></div>
                      <div id="whatwedo" class="col-md-4"></div>
                      </div>


                      Refer to the documentation for correct offset classes:
                      https://getbootstrap.com/docs/4.0/layout/grid/#offsetting-columns



                      Otherwise you can set the column width and do some flex magic by justifying content as per your need



                      https://getbootstrap.com/docs/4.0/utilities/flex/#justify-content






                      share|improve this answer





























                        1














                        <div class="row">
                        <div id="whoarewe" class="col-md-4 offset-md-2"></div>
                        <div id="whatwedo" class="col-md-4"></div>
                        </div>


                        Refer to the documentation for correct offset classes:
                        https://getbootstrap.com/docs/4.0/layout/grid/#offsetting-columns



                        Otherwise you can set the column width and do some flex magic by justifying content as per your need



                        https://getbootstrap.com/docs/4.0/utilities/flex/#justify-content






                        share|improve this answer



























                          1












                          1








                          1







                          <div class="row">
                          <div id="whoarewe" class="col-md-4 offset-md-2"></div>
                          <div id="whatwedo" class="col-md-4"></div>
                          </div>


                          Refer to the documentation for correct offset classes:
                          https://getbootstrap.com/docs/4.0/layout/grid/#offsetting-columns



                          Otherwise you can set the column width and do some flex magic by justifying content as per your need



                          https://getbootstrap.com/docs/4.0/utilities/flex/#justify-content






                          share|improve this answer













                          <div class="row">
                          <div id="whoarewe" class="col-md-4 offset-md-2"></div>
                          <div id="whatwedo" class="col-md-4"></div>
                          </div>


                          Refer to the documentation for correct offset classes:
                          https://getbootstrap.com/docs/4.0/layout/grid/#offsetting-columns



                          Otherwise you can set the column width and do some flex magic by justifying content as per your need



                          https://getbootstrap.com/docs/4.0/utilities/flex/#justify-content







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 27 at 6:40









                          HassamHassam

                          112 bronze badges




                          112 bronze badges






























                              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%2f55368938%2fhow-to-remove-offset-in-responsive-mode-in-bootstrap-4%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

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해