6

I have two boxes. One on the left and one on the right of the page.

The one on the left has login + register.

One on the right has two images.

I'm trying to align the left one to the center of the page with its contents aligned horizontally i.e. one one line.

I'm trying to get the right box to the right side of the page with its contents on one line, too.

My Fiddle

#topjob {
  width: 100%;
  text-align: center;
}
#left {
  float: left;
  width: 500px;
  height: 50px;
  background: #ff0000;
}
#right {
  width: 100%;
  display: inline-block;
  margin-right: auto;
  margin-left: 100px;
  width: 100px;
  height: 50px;
  background: #00ff00;
}
#center ul li {
  float: right;
  width: 200px;
  height: 50px;
  background: #0000ff;
}
<div class="header_top">
  <!--header_top-->
  <div class="container">
    <div class="row">
    </div>
    <div id="topjob">
      <div id="left">
        <ul>
          <li><a href="#"><i class=""></i>LOGIN</a>
          </li>
          <li><a href="#"><i class=""></i>REGISTER</a>
          </li>
        </ul>
      </div>
      <div id="right">
        <ul>
          <li>
            <a href="index.html">
              <img src="images/mastercard.png" alt="" />
            </a>
            <li>
              <a href="index.html">
                <img src="images/visa.png" alt="" />
              </a>
        </ul>
      </div>
    </div>
  </div>
</div>
</div>
Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
TaliZorah
  • 99
  • 1
  • 8
  • @BenMansley I've tried that on both the left and right div with no luck. – TaliZorah Sep 12 '15 at 01:47
  • Not on the divs, on the actual `
  • ` tags. `li { display:inline-block; }`
  • – Ben Kolya Mansley Sep 12 '15 at 01:48
  • Your description is not very clear. Please add a picture of what you’re trying to achieve. – Zaqx Sep 12 '15 at 01:56
  • @Zaqx Got the answer before I got to do an image. Sorry. – TaliZorah Sep 12 '15 at 02:12