Need help with Adoptly


#1

I can't move the list in footer to right.
+
What is the @media in the css?

following is what I wrote, where is wrong in the code?

/* footer */
.footer {
background-color:#e52364;
height: 80px;
color: #fff;
}

.footer .row {
display: inline-block;
vertical-align: middle;
}

.footer .col-xs-2 {
padding-top: 10px;
padding-left: 30px;
}

.footer ul {
list-style-type: none;
display: inline-block;
}

.pull-right {
float: right;
}


#2

@xiaohuan,
Give us the FULL HTML-code and the FULL Css-code you are using.....


#3

html:

<!doctype html>
<html>
  <head>
    <link rel="stylesheet" href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css">
    <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="header">
      <div class="container">
        <ul>
          <li class="main">Adoptly</li>
          <li>About</li>
          <li>Animals</li>
          <li>Blog</li>
          <li>Events</li>
        </ul>
      </div>
    </div>

    <div class="jumbotron">
      <div class="container">
        <h1>Meet your new best friend.</h1>
      </div>
    </div>

    <div class="supporting">
      <div class="container">
        <div class="row">
          <div class="col-xs-4">
            <h2>Search</h2>
            <p>Find a pet based on location, type, breed, age, and gender. We look through hundreds of shelters, agencies, and rescue sites.</p>
            <a class="btn btn-default" href="#">Go</a>
          </div>
           <div class="col-xs-4">
            <h2>Learn</h2>
            <p>Read articles on feeding, training, grooming, and more. Our resources ensure that you are fully prepared as a new pet owner.</p>
              <a class="btn btn-default" href="#">Go</a>
          </div>
           <div class="col-xs-4">
            <h2>Help</h2>
            <p>Get involved to help pets in need. You can make a difference through volunteering, social media, and donations.</p>
              <a class="btn btn-default" href="#">Go</a>
          </div>
        </div>
      </div>
    </div>
    
    <div class="footer">
      <div class="container">
        <div class="row">
          <div class="col-xs-2">
            Adoptly
          </div>
          <div class="col-xs-10">
            <ul class="nav nav-pills pull-right">
              <li>
                <a href="#" >FAQ</a>
                  </li>
              <li>
                <a href="#" >Contact</a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>

css:

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
}

div{
  display: block;
}

/* header */

.header {
  background-color: #30627E;
}

.header ul {
  list-style-type: none;
}

.header li {
  display: inline-block;
  color: white;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 0;
  text-align: center;
  font-size: 20px;
}

.header .main {
  font-size: 28px;
  background-color: #E52364;
  padding: 20px 30px;
}

/* jumbotron */
.jumbotron {
  background: url(https://s3.amazonaws.com/codecademy-content/projects/adoptly/bg.jpg) no-repeat center center;
  background-size: cover;
  height: 400px;
  margin-top:-10px;
}

.jumbotron h1 {
  color:#e52364;
  font-weight: 700;
  text-align: center;
  margin-top: 50px;
}

/* supporting */
.supporting {
  text-align: center;
}

.supporting p {
  margin-top: 20px;
  margin-bottom: 40px;
}

.supporting .btn {
  padding-left: 50px;
  padding-right: 50px;
  border-radius: 0;
  border: 1px solid #30627E;
  cursor: pointer;
  color: #30627E;
  margin-bottom: 30px;
}

.supporing .btn-default:hover {
  color: black;
}

/* footer */
.footer {
  background-color:#e52364;
  height: 80px;
  color: #fff;
}

.footer .row {
  display: inline-block;
  vertical-align: middle;
}

.footer .col-xs-2 {
  padding-top: 10px;
  padding-left: 30px;
}

.footer ul {
  list-style-type: none;
  display: inline-block;
}

.pull-right {
  float: right;
}


@media (max-width: 500px) {
  ul li {
    width: 100%;
  }
}

#4

So, will somebody answer? I am interested in this too.