Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

Mobile width view not rendering correctly

$
0
0

For some reason I cannot display in mobile version my div as 100% width. Here is my JSX code:

<div>
      <div expand="lg" className="login-header">
        <h1>logo</h1>
        <h1>Welcome to Wealth Analytica</h1>
        <h1>Back to site</h1>
      </div>
          /******HERE IS SOME OTHER CODE THAT IS NOT RELATED*******/
</div>

And my css is:

  .login-header {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  text-align: center;
  background-color: #343a40;
  width:100%;
}

Mobile view is not as expected:

enter image description here

The ordinary view is OK. My meta tag is:

<meta name="viewport" content="width=device-width, initial-scale=1" />

Can someone give advice? I tried several different things but without success.


Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>