html - 我必须在页面的顶部中心对齐图像。我已经尝试了几乎所有我知道的可能的事情

标签 html css bootstrap-4

<div class="limiter">
  <div class="container-login100">
    <img width="500" height="40" src="../plugins/images/Electronic Document Management System.png">
    <div class="wrap-login100">
      <form class="login100-form validate-form">
        <p style="color: #1A0D44" class="login100-form-title p-b-10">
          Login
        </p>
        </br>
        <div class="wrap-input100 validate-input" data-validate="Valid email is: a@b.c">
          <input class="input100" type="text" name="email">
          <span class="focus-input100" data-placeholder="Email"></span>
        </div>

        <div class="wrap-input100 validate-input" data-validate="Enter password">
          <span class="btn-show-pass">
    							<i class="zmdi zmdi-eye"></i>
    						</span>
          <input class="input100" type="password" name="pass">
          <span class="focus-input100" data-placeholder="Password"></span>
        </div>
        <div style="margin:auto 0; text-align: center;">
          <button type="button" href="">Forgot Password?</button>
        </div>
        </br>
        <div style="margin:auto 0; text-align: center;">
          <button type="button" style=" background-color: #1A0D44; color: white;  padding: 5px 15px;
    							border-radius: 60px; border: 1px solid #1A0D44 ;" data-toggle="modal">Login</button>
        </div>


      </form>
    </div>
  </div>
</div>

Layout

最佳答案

你试过给它一个柔性显示器吗?

https://www.w3schools.com/css/css3_flexbox.asp

关于html - 我必须在页面的顶部中心对齐图像。我已经尝试了几乎所有我知道的可能的事情,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59377651/

相关文章:

Php Session和登录页面post问题

javascript - 如何将 "id="标题“”中存在的数据解析为占位符?

html - Flask 渲染模板

javascript - 我需要帮助来识别和解决淡入文本问题

html - Bootstrap 4 导航栏理解

html - 使用 flex 网格系统引导此 header 的最佳方法是什么?

javascript - 如何制作 Canvas 动画比例(HTML5)

javascript - Jquery Modal 点击添加类然后删除

php - 在不刷新 jquery 的情况下附加一个 div

html - bootstrap 4 Accordion 不关闭