html - Repositioning an image on mobile view -


i trying place image when window size reaches <= 700px.

however cannot image centered in position want, continues stay in left.

here code: http://www.bootply.com/7lautspsg4

/* css used here applied after bootstrap.css */    .nofix {    background-color: #363535;    padding: 10px;    margin-bottom: 10px;  }  .nofixtable {    margin-left: auto;    margin-right: auto;    vertical-align: top;  }  .about {    vertical-align: top;  }  .nofixtable p {    color: white;    height: auto;    min-height: 200px;    border: 1px solid white;    max-width: 400px;    width: auto;    text-align: justify;    margin-left: 20px;    margin-right: 20px;    margin-top: -5px;  }  .nofixtable h3,  .nofixtable h4 {    color: white;    text-align: left;    margin-left: 20px;    font-size: 25px;  }  .nofixtable td {    text-align: center;    width: auto;  }  #fiximg {    width: 400px;    height: auto;  }  #repairimg {    width: 400px;    height: auto;    margin-top: 10px;  }  .nofixtable hr {    margin-left: 20px;    margin-right: 20px;    border: 2px solid white;    margin-top: -2px;    width: auto;  }  .nofixtable #hrinner {    margin-top: -24px;    max-width: 100px;    width: auto;    border-color: #0076ff;  }  .nofixtable h3 {    color: white;    background-color: #27a9df;    max-width: 250px;    width: auto;    padding-top: 15px;    padding-bottom: 15px;    font-size: 20px;    text-align: center;  }  .nofixtable h3:hover {    background-color: #1a9fd6;    cursor: pointer;  }  .nofixtable {    color: white;    text-decoration: none;  }  @media screen , (max-width: 700px) {    #repairimg {      display: none;    }    #fiximg {      border: 1px solid blue;    }  }
<div class="nofix">      <table class="nofixtable" align="center">        <tbody>        <tr>          <td>            <img id="fiximg" src="images/nofix.jpg" alt="no fix, no fee service">          </td>            <td class="about" rowspan="2">            <h4>about us</h4>            <hr>            <hr id="hrinner">            <p>              computer-repair-service.co.uk located in , around london. our discreet computer , laptop repair service offers highest quality our customers , our goal provide best possible service, fixing problems in shortest space              of time possible. training perfect our delivery can offer best in customer care our clients. guarantee fix , repair computers, laptops , electronic gadgets , satisfy              technological needs. no matter how big or small problem is, guarantee fix it!            </p>              <h3><a href="services.html">check our services page</a></h3>            </td>          </tr>          <tr>          <td>            <img id="repairimg" alt="repair" src="images/repair.jpg">          </td>          </tr>      </tbody>    </table>    </div>

currently image on left:

enter image description here

this want:

enter image description here

please check if works.

@media (max-width:700px){    .nofixtable td{       display: block;    }    .nofixtable h3{       margin: 20px auto 10px;    } } 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -