在导航栏和横幅之间添加颜色(前端)

时间:2018-08-04 12:31:31

标签: html css bootstrap-4 frontend web-frontend

我对前端有些陌生。我正在尝试使用psd为项目编码。但是我很难理解。我渴望学习。我使用引导程序4。横幅广告和导航栏之间存在白色。旗帜下还有绿色植物。我知道,我有很多错误。我从示例主题获得了帮助。你可以帮我这个项目吗?

<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="#"><img src="img/logo.png" style="max-width: 170px; margin-top: -7px;"></a>
  </div>
  <div class="collapse navbar-collapse" id="myNavbar">
    <ul class="nav navbar-nav navbar-right">
      <li><a href="#feature">Features</a></li>
      <li><a href="#organisations">Organisations</a></li>
      <li><a href="#courses">Courses</a></li>
      <li><a href="#pricing">Pricing</a></li>
      <li><a href="#" data-target="#login" data-toggle="modal">Sign in</a></li>
      <li class="btn-trial"><a href="#footer">Free Trail</a></li>
    </ul>
  </div>
</div>

 <div class="banner">
<div class="bg-color">
  <div class="container">
    <div class="row">
      <div class="banner-text text-center">
        <div class="text-border">
          <h1 class="text-dec">PARAN PUL OLMASIN</h1>
        </div>
        <div class="intro-para text-center quote">
          <h2 class="big-text">ARSAM OLSUN</h2>
          <div>
            <form class="mc-trial row">
              <div class="form-group col-md-3 col-md-offset-2 col-sm-4">
                <div class=" controls">
                  <input name="name" placeholder="Enter Your Name" class="form-control" type="text">
                </div>
              </div>
              <!-- End email input -->
              <div class="form-group col-md-3 col-sm-4">
                <div class=" controls">
                  <input name="EMAIL" placeholder="GSM" class="form-control" type="number">
                </div>
              </div>
              <!-- End email input -->
              <div class="col-md-2 col-sm-4">
                <p>
                  <button name="submit" type="submit" class="btn btn-block btn-submit">
                  Submit <i class="fa fa-arrow-right"></i></button>
                </p>
              </div>
            </form>
              </div>
            </div>
            </div>
          </div>
        </div>
        <a href="#feature" class="mouse-hover">
          <div class="mouse"></div>
        </a>
      </div>
    </div>
  </div>
</div>

This is the project

1 个答案:

答案 0 :(得分:0)

您可以先在HTML代码中创建导航,然后在CSS中创建横幅广告

aside {
  background-color: youchoose;
}