Image being output at original size, require it to be size of parent div
<p>The image being output from the session contained in the div with the id 'user_image' is not conforming to the size of the parent div.</p>

<p>I need it to be the size of the parent div. I have no idea why its happening? </p>

<pre><code>    &lt;?php 
session_start();
if(!isset($_SESSION["login_user"])){
header('location:adminLogin.php');
}
?&gt;
&lt;?php
session_start();
?&gt;
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;link rel="stylesheet" type="text/css" href="styles.css"&gt;
&lt;title&gt;Admin Page&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div class="container"&gt;
  &lt;div class="header"&gt;&lt;a href="index.php"&gt;&lt;img src="IMAGES/LOGO.png" alt="Music Search Logo"  height="90" display:block; /&gt;&lt;/a&gt; 
  &lt;div id="welcome_message"&gt;&lt;h1&gt;Welcome &lt;?php echo  $_SESSION["login_user"] .'&lt;div id="userImage"&gt; &lt;img src="' . $_SESSION["user_image"] . '" alt="user image"&gt;&lt;/div&gt;'; ?&gt;&lt;/h1&gt;&lt;/div&gt;

  &lt;!--Logout--&gt;
  &lt;form action="endSession.php" method="post" id="end_session"&gt;
  &lt;button type="submit" name="end_session" id="end_button"&gt;Logout&lt;/button&gt;
  &lt;/form&gt;
    &lt;!-- end header --&gt;&lt;/div&gt;
  &lt;div class="content"&gt;

  &lt;h1 class="top-text"&gt; Admin Page&lt;/h1&gt;
    &lt;!--Search Form--&gt;
    &lt;form action="adminSearchMusic.PHP" method="get" class="searchform cf"&gt;
        &lt;input type="text" id="searchMusic" name="searchMusic" placeholder="Search by Name/Genre/Year/Label" required&gt;
            &lt;button type="submit" id="searchBTN" name="searchBTN"&gt;Search&lt;/button&gt;            
    &lt;/form&gt;





    &lt;div class="admin-buttons"&gt;
        &lt;button class="addBTN" onclick="location.href='addRecord.php'"&gt;Add a Record&lt;/button&gt;
        &lt;button class="addUserBtn" onClick="location.href='addUser.php'"&gt;Add a User&lt;/button&gt;
        &lt;button class="addUserBtn" onClick="location.href='adminViewUsers.php'"&gt;View users&lt;/button&gt;
        &lt;/div&gt;


    &lt;!--end search form--&gt;
&lt;!--Results Box--&gt;
    &lt;div class="result-box-admin"&gt;

&lt;?php


if(isset($_SESSION["login_user"])){


  require('includes/dbconx.php');


    $sql = "SELECT * FROM music";
$result = $con-&gt;query($sql);
//if it finds no matching data it informs the user and kills the DB connextion
if(mysqli_num_rows($result) == 0){
    echo("&lt;p&gt;No matches found! &lt;/p&gt;");
    die;
}
echo'&lt;table&gt;&lt;tr&gt;&lt;th&gt;Artist&lt;/th&gt;&lt;th&gt;Album&lt;/th&gt;&lt;th&gt;Year&lt;/th&gt;&lt;th&gt;Genre&lt;/th&gt;&lt;th&gt;Album Art&lt;/th&gt;&lt;th&gt;Edit&lt;/th&gt;&lt;th&gt;Delete&lt;/th&gt;&lt;/tr&gt;';
    //while there are rows to return it will populate the table below
    while($row = mysqli_fetch_array($result)){
        echo '&lt;tr&gt;';
        echo'&lt;td&gt;' .$row['artist'].'&lt;/td&gt;';
        echo'&lt;td&gt;' .$row['album'].'&lt;/td&gt;';
        echo'&lt;td&gt;' .$row['releaseYear'].'&lt;/td&gt;';
        echo'&lt;td&gt;' .$row['genre'].'&lt;/td&gt;';
        echo'&lt;td&gt;' .'&lt;img class="pic" src="'.$row['image'].'"&gt;'.'&lt;/td&gt;';
            '&lt;td&gt;' .$row['aID'].'&lt;/td&gt;';
        echo '&lt;td&gt; &lt;a href="adminEdit.php?aID='.$row['aID'].'"&gt;Edit&lt;/a&gt;&lt;/td&gt;';
        echo '&lt;td&gt; &lt;a href="adminDelete.php?aID='.$row['aID'].'"&gt;Delete&lt;/a&gt;&lt;/td&gt;';
        echo'&lt;/tr&gt;';
    }//end while loop
    echo'&lt;/table&gt;';
    //closes connection when no more rows
    mysqli_close($con);
    }
    else{
  header("location: adminLogin.php");
}
?&gt;



     &lt;/div&gt;&lt;!--end results box--&gt;
   &lt;/div&gt; &lt;!-- end .content --&gt;
  &lt;div class="footer"&gt;
    &lt;p&gt;&amp;copy;Derek Sweeney &lt;/p&gt;
    &lt;!-- end .footer --&gt;&lt;/div&gt;
  &lt;!-- end .container --&gt;&lt;/div&gt;

    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>

<p>And the css</p>

<pre><code>#userImage{
            max-width:120px;
            max-height:90px;
            overflow:hidden;
        }
</code></pre>