How to design / code this table ?

Hi!

Have this test page:

http://www.softkey.no/webtest/testform.html

The picture must be on the same colum as the Name -> Christian Svendsen.

Now the picture is on colum 3, but must be on colum 4

How do i fix this ?
LVL 2
team2005Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Meir RivkinFull stack Software EngineerCommented:
just add empty td before the image td:
<html>
<head>
<meta charset="utf-8" />
<title>TEST</title>
<link href="css/redmond/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
</head>

<body>
<link rel="stylesheet" href="reportcss.css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

 <table width="100%" align="center" class="testtabell"> 
		<tr>
		  <td class="rapport1_del1" height="40px" colspan="4">KONTROLLERNAVN</td>
		</tr>
		<tr>
	  	  <td class="rapport1_del2" colspan="3" height="40px">LOKASJONSNAVN</td>
          <td class="rapport_brukernavn" height="40px" align="right">Christian Svendsen</td>		  
	    </tr>

	
        <tr class="blank_row_noborder">
           <td colspan="4"></td>
        </tr>	
	
	<tr>  
	  <td  class="rapport1_del3" align="right" valign="top"> Sporsm?l: </td>
	  <td class="rapport1_del3" valign="top">SPORSM?LET</td>
<td class="rapport1_del3" valign="top"></td>
	  <td valign="top" class="rapport_image1" rowspan="4"><img src="images/ingen.png" width="150" align="right" /></td>

		   
	</tr>  
	<tr>
	  <td  class="rapport1_del3" align="right" valign="top"> Dato: </td> 
	  <td  class="rapport1_del3" valign="top">2013-01-01</td>
	</tr>
	
	<tr> 
	  <td  class="rapport1_del3" align="right" valign="top"> Svar:</td> 
	  <td  class="rapport1_del3" valign="top">Ja</td>
	</tr>
	
	<tr> 
	  <td  class="rapport1_del3" align="right" valign="top"> Kommentar:</td> 
	  <td  class="rapport1_del3" valign="top">Her kommer kommentaren</td>
	</tr> 
	
	<tr class="blank_row">
      <td colspan="4"></td>
    </tr>	

</table>

</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
team2005Author Commented:
Aha, feel stupid now that dident see that.
Thanks for help
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
If you are building a new site, why are you using a table layout?  I would suggest checking out one of the many grid css systems or even better one of the grid/responsive systems.  I have been using http://getbootstrap.com/ and http://foundation.zurb.com/ with great success.  Both of these make it easy to use columns via the grid and program for multiple device view ports.

A very quick example using bootstrap http://jsbin.com/EfAZEGi/1/  This sample is set up just for desktop screen size.  With a little more coding, you can easily make this look good for the ipad or phone as well.  http://getbootstrap.com/css/#grid

<div id="container">
    <div class="row row1">
      <div class="col-lg-12 rapport1_del1">
        KONTROLLERNAVN
      </div>
    </div>

    <div class="row row2">
      <div class="col-lg-9">
        LOKASJONSNAVN
      </div>

      <div class="col-lg-3 rapport_brukernavn right">
        Christian Svendsen
      </div>
    </div>

    <div class="row row3">
      <div class="col-lg-9">
        <div class="col-lg-6 center">
          Sporsm?l:SPORSM?LET<br />
          Dato:2013-01-01<br />
          Svar:ja<br />
          Kommentar:Her kommer kommentaren
        </div>
      </div>

      <div class="col-lg-3 right"><img src=
      "http://www.softkey.no/webtest/images/ingen.png" width="150" /></div>
    </div>
  </div>

Open in new window

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.