css - Position a HTML table element on top of img element -


i want able place html table on top of image using css. want move table looks picture below:

this have as:

enter image description here

and want this:

enter image description here

this code looks like:

<img src="@url.content(" ~/images/sortbydivisioncontrol_bg2.png ")" width="570"> <table id="locations-table" style="margin:0 auto;">   <thead>     <tr>       <th colspan="3">         locations       </th>     </tr>   </thead>   <tbody>     <tr>       <td>         <a>anchorage, ak</a>       </td>       <td>         <a>spokane, wa</a>       </td>       <td>         <a>coburg, or</a>       </td>     </tr>     <tr>       <td>         <a>kapolei, hi</a>       </td>       <td>         <a>toledo, wa</a>       </td>       <td>         <a>medford, or</a>       </td>     </tr>     <tr>       <td>         <a>snohomish, wa</a>       </td>       <td>         <a>ridgefield, wa</a>       </td>       <td>         <a>redmond, or</a>       </td>     </tr>     <tr>       <td>         <a>kent, wa</a>       </td>       <td>         <a>bend, or</a>       </td>       <td>         <a>portland, or</a>       </td>     </tr>   </tbody> </table> 

this background images for. instead:

<table id="locations-table" style="margin:0 auto; background-image: @url.content("~/images/sortbydivisioncontrol_bg2.png")"> 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -