2016-04-17 7 views
0

私は本当に今これを理解する必要があります。私は絵が私のcol-6全体を記入したいと思います。しかし、どのくらいの大きさの絵があるべきかを私はどのように知ることができますか?私も高さを設定する必要がありますか?の画像すべてを記入してください

<div class="row"> 
     <div class="col col-6"> 
      <img src="img/fly_tying.jpg"> 
     </div> 
     <div class="col col-6"> 
      <form action="flyUpload.php"> 
       <fieldset> 
        <legend>Upluad Fly</legend> 
        <label for="name">Name</label> 
        <input type="text" id="name" value="name"><br> 
        <label for="category">Category</label> 
        <input type="text" id="category" value="category"><br> 
        <label for="fishtype">Fishtype<label> 
        <input type="text" id="fishtype" value="fishtype"><br> 
        <button type="submit" value="submitFly">Submit My Fly</button> 
       </fieldset> 
      </form> 
     </div> 
</div> 

CSS:

.col-6{ 
    width:50%; 
} 

答えて

0

高さがちょうど自動に設定します。 imgの設定幅を100%

+0

@GAMITGこれはコメントではありません、これは私の答えです。 css img widthを100%に設定するだけです。 – Fiido93