title: How to make a responsive div stick to page edge
body: <p>I want my responsive image gallery div to "stick" to the right edge of the browser window with no space between (see image example below).</p>
  
  <p>Current site: <a href="http://parkerrichard.com/studiogreen/html/project-01.html" rel="nofollow noreferrer">http://parkerrichard.com/studiogreen/html/project-01.html</a></p>
  
  <p>It worked previously when I added     </p>
  
  <pre><code>container {
  width: 100%;
  }
  </code></pre>
  
  <p>But now that doesn't effect the gallery div (flexslider). I've tried adding the following to the "flexslider" css properties to no avail: </p>
  
  <pre><code>flexslider {
  position: absolute; 
  float: right; 
  right: 0px; 
  width 100%;
  }
  </code></pre>
  
  <p>None of it seems to create the desired effect. Any advice or help would be appreciated.</p>
  
  <p>Example of how I want page to appear:
  <img src="https://i.stack.imgur.com/mjq1j.jpg" alt="Image runs to right edge of screen"></p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset=“UTF-8”&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  
      &lt;title&gt;Studio Green&lt;/title&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
  
      &lt;!-- Bootstrap custom CSS --&gt;
      &lt;link href="css/custom.css" rel="stylesheet"&gt;
  
      &lt;!-- Typekit custom fonts --&gt;
      &lt;script src="//use.typekit.net/bcn3ife.js"&gt;&lt;/script&gt;
      &lt;script&gt;try{Typekit.load();}catch(e){}&lt;/script&gt;
  
      &lt;link href="css/flexslider.css" rel="stylesheet"&gt;
  
      &lt;!--[if lt IE 9]&gt;&lt;script src="../../assets/js/ie8-responsive-file-warning.js"&gt;&lt;/script&gt;&lt;![endif]--&gt;
  
      &lt;!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!--[if lt IE 9]&gt;
        &lt;script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
      &lt;script src="js/respond.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- custom icons --&gt;
      &lt;link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"&gt;
      &lt;link href="fonts/flexslider-icon.eot"&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;!-- row 1: static navbar --&gt;
      &lt;nav class="navbar navbar-default navbar-top" role="navigation"&gt;
        &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
            &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
              &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;/button&gt;
          &lt;a class="navbar-brand logo" href="index.html"&gt;&lt;img class="logo" src="img/logo.png"&gt;&lt;/a&gt;
          &lt;/div&gt;&lt;!-- navbar toggle --&gt;
          &lt;div class="navbar-collapse collapse"&gt;
            &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li&gt;&lt;a href="process.html"&gt;PROCESS&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="office.html"&gt;OFFICE&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="contact.html"&gt;CONTACT&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;&lt;!--/nav-collapse --&gt;
        &lt;/div&gt;&lt;!-- container --&gt;
      &lt;/nav&gt;&lt;!-- navbar --&gt;
  
      &lt;!-- row 2: body --&gt;
      &lt;div class="container"&gt;
          &lt;div class="row centered"&gt;
  
              &lt;!-- sidebar --&gt;
                  &lt;aside class="navbar-collapse collapse panel-group col-lg-3 col-med-4 col-sm-4 col-xs-12" id="accordion" role="tablist" aria-multiselectable="true"&gt;
                &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading" role="tab" id="headingOne"&gt;
                    &lt;h4 class="panel-title"&gt;
                      &lt;li class="active"&gt;
                          &lt;a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"&gt;
                            RESIDENTIAL
                      &lt;/li&gt;
                      &lt;/a&gt;
                    &lt;/h4&gt;
                  &lt;/div&gt;
                  &lt;div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne"&gt;
                    &lt;div class="panel-body"&gt;
                      &lt;ul&gt;
                          &lt;li class="drop"&gt;&lt;span class="glyphicon glyphicon-chevron-down nav-caret"&gt;&lt;/span&gt;&lt;/li&gt;
                          &lt;li class="active"&gt;&lt;a href="project-01.html"&gt;PROJECT &lt;span class="spaced"&gt;1&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;2&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;3&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;4&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;5&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;6&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;7&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;8&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;9&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="project-01.html"&gt;PROJECT  &lt;span class="spaced"&gt;10&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading" role="tab" id="headingThree"&gt;
                    &lt;h4 class="panel-title"&gt;
                      &lt;a href="schools.html"&gt;
                        SCHOOLS
                      &lt;/a&gt;
                    &lt;/h4&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading" role="tab" id="headingThree"&gt;
                    &lt;h4 class="panel-title"&gt;
                      &lt;a href="parks.html"&gt;
                        PARKS
                      &lt;/a&gt;
                    &lt;/h4&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading" role="tab" id="headingThree"&gt;
                    &lt;h4 class="panel-title"&gt;
                      &lt;a href="hospitality.html"&gt;
                        HOSPITALITY
                      &lt;/a&gt;
                    &lt;/h4&gt;
                  &lt;/div&gt;
                &lt;/div&gt;              &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading" role="tab" id="headingFive"&gt;
                    &lt;h4 class="panel-title"&gt;
                      &lt;a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseFive" aria-expanded="false" aria-controls="collapseFive"&gt;
                        ELEMENTS
                      &lt;/a&gt;
                    &lt;/h4&gt;
                  &lt;/div&gt;
                  &lt;div id="collapseFive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive"&gt;
                    &lt;div class="panel-body"&gt;
                      &lt;ul&gt;
                          &lt;li class="drop"&gt;&lt;span class="glyphicon glyphicon-chevron-down nav-caret"&gt;&lt;/span&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;ENTRY&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;FENCES&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;FIRE&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;LIGHTING&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;PAVING&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="active"&gt;&lt;a href="plants.html"&gt;PLANTS&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;POOLS&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;SEATING&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;SCULPTURE&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;STAIRS&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;SUSTAINABILITY&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="plants.html"&gt;WATER&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/aside&gt;
  
              &lt;!-- slideshow gallery --&gt;          
              &lt;div class="col-lg-offset-1 col-md-offset-1 col-sm-offset-1 col-lg-8 col-md-7 col-sm-7 pull-left"&gt;
                  &lt;div class="flexslider"&gt;
                    &lt;ul class="slides"&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_01.jpg" /&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_02.jpg" /&gt;
                        &lt;p class="flex-caption right"&gt;&lt;span class="strong"&gt;PROJECT &lt;span class="sm-spaced"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
                              Location: Los Altos Hills, CA&lt;br /&gt;
                              Architect: SDG Architects&lt;br /&gt;
                              Grass, along with large specimen and Redwoods comprise the restorative Restraint, minimalization, and restoration landscape allows this home to exude quiet, restraint, minimalization, and restoration landscape.&lt;/p&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_03.jpg" /&gt;
                        &lt;p class="flex-caption right"&gt;&lt;span class="strong"&gt;PROJECT &lt;span class="sm-spaced"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
                            Location: Los Altos Hills, CA&lt;br /&gt;
                            Architect: SDG Architects&lt;br /&gt;
                            Exude quiet, California Fescue, Berkeley Sedge, Coyote Needle Grass, along with large specimen and Redwoods.&lt;/p&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_04.jpg" /&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_05.jpg" /&gt;
                        &lt;p class="flex-caption right"&gt;&lt;span class="strong"&gt;PROJECT &lt;span class="sm-spaced"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
                              Location: Los Altos Hills, CA&lt;br /&gt;
                              Architect: SDG Architects&lt;br /&gt;
                              Coyote Needle Grass, along with large specimen and Redwoods comprise the restorative allows this home to exude quiet, Restraint, minimalization, and restoration landscape allows this home to exude quiet, California Fescue, Berkeley Sedge, Coyote Needle Grass, along.&lt;/p&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_06.jpg" /&gt;
                        &lt;p class="flex-caption right"&gt;&lt;span class="strong"&gt;PROJECT &lt;span class="sm-spaced"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
                              Location: Los Altos Hills, CA&lt;br /&gt;
                              Architect: SDG Architects&lt;br /&gt;
                              Large specimen and Redwoods comprise the restorative Restraint, minimalization, and restoration landscape allows this home to exude quiet, Restraint, minimalization, and restoration landscape allows this home to exude quiet, California Fescue, Berkeley Sedge, Coyote Needle Grass.&lt;/p&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_07.jpg" /&gt;
                        &lt;p class="flex-caption right"&gt;&lt;span class="strong"&gt;PROJECT &lt;span class="sm-spaced"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
                              Location: Los Altos Hills, CA&lt;br /&gt;
                              Architect: SDG Architects&lt;br /&gt;
                              Fescue, Berkeley Sedge, Coyote Needle Grass, along with large specimen and Redwoods comprise the restorative Restraint, minimalization, and restoration landscape allows this home to exude quiet, Restraint, minimalization.&lt;/p&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;img src="img/project-1_08.jpg" /&gt;
                      &lt;/li&gt;
                    &lt;/ul&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;!-- address --&gt;
              &lt;address&gt;232 SIR FRANCIS DRAKE BLVD&lt;/br&gt;
              SAN ANSELMO, CA 94960&lt;/br&gt;
              415 721 0905&lt;/address&gt;
          &lt;/div&gt;&lt;!--/row --&gt;
      &lt;/div&gt;&lt;!--/container --&gt;
  
  
      &lt;!-- javaspcript --&gt;
      &lt;script src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.flexslider.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(window).load(function() {
            $('.flexslider').flexslider({
              animation: "fade"
            });
          });
      &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>/* this is a custom css stylesheet */
  
  
  /* ==========================================================================
     Base Styles, Bootstrap Modifications &amp; Fonts Import
     ========================================================================== */
  
  /*
   * A better looking default horizontal rule
   */
  
  hr {
      display: block;
      height: 1px;
      border: 0;
      border-top: 1px solid #ccc;
      margin: 1em 0;
      padding: 0;
  }
  
  .centered {
      text-align: center;
  }
  
  .img-centered {
      display: block;
      margin-left: auto;
      margin-right: auto;
  }
  
  .mt-lg {
      margin-top: 100px;
  }
  
  .mt {
      margin-top: 80px;
  }
  
  .mb {
      margin-bottom: 80px;
  }
  
  .drop {
      margin-bottom: -15px;
  }
  
  .spaced {
      margin-left: 37px;
  }
  
  .sm-spaced {
      margin-left: 5px;
  }
  
  
  /* ==========================================================================
     General styles
     ========================================================================== */
  
  html, body {
      overflow-x: hidden;
  }
  
  body {
      font-family: "proxima-nova", sans-serif;
      font-weight: 500;
      font-size: 12px;
      letter-spacing: 1px;
      color: #555;
  
      -webkit-font-smoothing: antialiased;
      -webkit-overflow-scrolling: touch;
  }
  
  .container {
      width: 100%;
  }
  
  a {
      color: #555;
      outline: 0;
  }
  
  .strong {
      font-weight: bold;
      font-size: 13px;
  }
  
  small {
      color: #555;
  }
  
  aside {
      position: absolute;
      top: 0px;
      left: 0px;
  }
  
  address {
      text-align: left;
      line-height: 23px;
      letter-spacing: 2px;
      float: right;
      padding: 90px 0px 30px 15px;
      margin-right: 70px;
  }
  
  .email {
      color: #6CAA3D;
      font-weight: 400;
  }
  
  .info-box {
      float: right;
      text-align: left;
      line-height: 17px;
      font-weight: 400;
      letter-spacing: 2px;
      width: 315px;
      height: 450px;
      padding: 60px 20px 0 15px;
  }
  
  .info-box p {
      padding-top: 12px;
  }
  
  .info-box h5 {
      padding-bottom: 8px;
      font-size: 14px;
      font-weight: 600;
  }
  
  .contact {
      height: auto!important;
      margin-right: 5px;
      width: 315px;
  }
  
  .team-box img {
      border: 1px solid black;
      margin-bottom: 30px;
  }
  
  /* ==========================================================================
     Navigation styles
     ========================================================================== */
  
  /*
   * Top nav section
   */
  
  .navbar-header {
      padding-bottom: 50px;
  }
  
  .navbar-brand {
      margin-left: 0px!important;
  }
  
  .navbar .nav {
      text-align: left;
      margin-top: 45px;
  }
  
  .navbar .nav &gt; li {
      float: none;
      display: inline-block;
      font-size: 14px;
      letter-spacing: 2px;
      font-weight: 600;
  }
  
  .navbar-default {
      background-color: white;
      border-bottom: 0px;
  }
  
  .navbar-default .navbar-nav &gt; li &gt; a {
      color: #555;
  }
  
  .navbar-default .navbar-nav &gt; li &gt; a:hover, .navbar-default .navbar-nav &gt; .active &gt; a, .navbar-default .navbar-nav &gt; .active &gt; a:hover, .active &gt; a, a:hover, a:active, a:focus {
      color: #6CAA3D;
      background-color: transparent;
      text-decoration: none;
      outline: 0;
  }
  
  .navbar-default .navbar-nav &gt; li {
      padding: 0px 15px 15px 15px;
  }
  
  .navbar-collapse {
      margin-top: -65px;
      border-top: 0px;
      border-color: none;
  }
  
  .navbar-default .navbar-collapse {
      padding-top: 10px;
  }
  
  .logo {
      margin-top: 10px;
      height: 100px;
      width: 200px;
  }
  
  .navbar-right {
      padding: 15px 20px 0 0;
  }
  
  /*
   * Left aside nav
   */
  
  .panel {
      border: 0px;
      -webkit-box-shadow: 0 0px 0px rgba(0,0,0,.0);
      box-shadow: 0 0px 0px rgba(0,0,0,.0);
      margin: 45px 0 0 100px;
  }
  
  .panel-title {
      font-size: 14px;
      letter-spacing: 2px;
      font-weight: 600;
      color: #555;
      padding-top: 7px;
      padding-bottom: 7px;
      list-style: none;
  }
  
  .panel-title a {
      text-decoration: none;
  }
  
  .panel-default &gt; .panel-heading {
      background-color: transparent;
      border-color: transparent;
  }
  
  .panel-body {
      margin-left: -25px;
      margin-top: -22px;
      padding-top: 0px;
      padding-bottom: 0px;
      padding-left: 0px;
  }
  
  .panel-body ul {
      list-style-type: none;
  }
  
  .panel-body ul li {
      padding-top: 10px;
      padding-bottom: 10px;
      letter-spacing: 1px;
  }
  
  .panel-group {
      text-align: left;
  }
  
  .panel-group .panel-heading + .panel-collapse &gt; .panel-body {
      border-top:0px;
  }
  
  .nav-caret {
      padding-left: 10px;
      font-size: 8px;
  }
  
  /*
   * flexslider format
   */
  
  .flexslider{
      background:none !important;
      border:none !important;
      box-shadow:none !important;
      margin:0px 0px 0px 0px !important;
  }
  
  .flex-direction-nav a  {
      color: #999 !important;
  }
  
  /*.flex-next { 
      padding-right: 40px!important;
  }*/
  
  .flex-control-nav {
      text-align: right !important;
      padding-right: 70px !important;
  }
  
  .flex-control-paging li a {
      color: transparent !important;
  }
  
  .nodot .flex-control-paging li a { 
      display: none !important;
  }
  
  .flex-control-paging li a.flex-active {
      background: #6CAA3D !important;
  }
  
  .right {
      padding-top: auto !important;
      bottom: 0;
      right: 0;
      margin-bottom: 0px;
  }
  
  .flex-caption {
      position: absolute;
      text-align: left;
      background:rgba(255, 255, 255, 0.7);
      z-index: 1;
      padding: 20px;
      font-size: 11px;
      width: 300px;
  }
  
  .flex-caption p {
      padding-top: 12px;
  }
  
  .carousel .slides &gt; li {
      padding-right: 10px;
  }
  </code></pre>