简体   繁体   English

我的页面右侧奇怪的空白区域 - CSS

[英]Strange blank space in the right of my page - CSS

From 2 hours I'm looking for what error is on my page because I have a huge blank space...the width is too big and I don't want to have that space.从 2 小时开始,我正在寻找页面上的错误,因为我有一个巨大的空白空间……宽度太大,我不想有那个空间。 Could you help me to fix my code ?你能帮我修复我的代码吗?

Here is my website where you can check : https://andrei-my-codepen.000webhostapp.com/这是我的网站,您可以在其中查看: https : //andrei-my-codepen.000webhostapp.com/

I don't know if it's because of an unclosed tag, or from CSS.我不知道是因为未关闭的标签,还是来自 CSS。 But, when I wanted to fix this problem, I saw that, at some divs with class row , if I cancel margin-left: -15px , that space disappear, maybe is because I have too much row class?但是,当我想解决这个问题时,我看到,在一些具有row类的 div 中,如果我取消margin-left: -15px ,那个空间就会消失,也许是因为我的row类太多了?

在此处输入图片说明

Use below code as using row as a child of class="reservation1" should resolve your problem.使用下面的代码,因为使用 row 作为 class="reservation1" 的子级应该可以解决您的问题。

  <div class="reservation1">
    <div class="row">
      <div class="col-md-4">
           <p class="menu-reservation">you want to stand here?</p>
      </div>
    <div class="col-sm-6 reservation-div">
      <div class="button-reservation ">
        <p class="reservation-text1 text-center">seat reservation</p>
        <p class="reservation-text2 text-center">Reserve a place in "Good Food" restaurant</p>
      </div>
    </div>
   </div>
  </div>

It looks like your header is set to a specific width. 您的标头似乎设置为特定宽度。 try to use width:auto; 尝试使用width:auto; for body too and also don't forget to add media queries for responsiveness. 同样适合身体,也不要忘记添加媒体查询以提高响应速度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM