Link to home
Start Free TrialLog in
Avatar of Malek103197
Malek103197

asked on

Page layout with large image- use Table?

Here's my problem.

I have one very large image (covers 3/4 of the page) and seven text boxes. I want to arrange them like this -
Where the vertical line represents the right side of the table (the table is centred, or almost)

|     Text1:_______
|     Text2:_______
|     Text3:_______
|     Text4:_______
|     Text5:_______
|     Text6:_______
|     Text7:_______
|
|
|
|
|
|
|
|
I've tried using table but the Text boxes get distributed evenly from the top to bottom. I want to keep them up on the top.  Here is the HTML I attempted -

<div align = "center">
<table border bordercolor=Black BGCOLOR=White>

<tr><th COLSPAN=1>Cargo Unloaded</th><tr>
<tr><th ROWSPAN=8 VALIGN=TOP><IMG SRC="mypage1.jpg" ALT="SE" BORDER=0></th>
<tr><th VALIGN=TOP>Two</th></tr>
<tr><th VALIGN=TOP>Three</th></tr>
<tr><th VALIGN=TOP>Four</th></tr>
<tr><th VALIGN=TOP>Five</th></tr>
<tr><th VALIGN=TOP>Six</th></tr>
<tr><th VALIGN=TOP>Seven</th></tr>
<tr><th VALIGN=TOP>Eight</th></tr>
<tr><th VALIGN=TOP></th></tr>
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Are you trying to do something like this?  If not I need a little more explanation, because the code does not in any way reflect the layout you posted:

<div align = "center">
<table border bordercolor=Black BGCOLOR=White>

<tr><td  valign="top><img src="mypage1.jpg" ALT="SE" BORDER=0></td>
<td valign="top">Two<br />
Three<br />
Four<br />
Five<br />
Six<br />
Seven<br />
Eight<br />
Nine<br />
</td></tr>
</table>
</div>


Cd&
If you posted a link to the page, so we could see it, it might help as well.

Cd&
Avatar of jayyu2k
jayyu2k

hmm i donno will this help you or not.. Plz take a Look at this ..


<table border="1" cellpadding="0" cellspacing="0" width="762" >
  <tr>
    <td width="600" ><img border="0" src="image.jpg" width="600" ></td>
    <td valign="top" >
    <form method="POST" action="uraction.html">
      <input type="text" name="T1" size="20"><br>
      <input type="text" name="T2" size="20"><br>
      <input type="text" name="T3" size="20"><br>
      <input type="text" name="T4" size="20"><br>
      <input type="text" name="T5" size="20"><br>
      <input type="text" name="T6" size="20">
    </form>
</td>
  </tr>
</table>

Else like what Cd& says.. Plz explain a few things..

hth!
Cheers Jayanth
Avatar of Malek103197

ASKER

Hey, sorry for the poor explanation. I just realized I used the incorrect word -

Where the vertical line represents the right side of the table (the table is centred, or almost)

Should read -

Where the vertical line represents the right side of the image.

Try this and you'll see what I mean - just put a large image in the place of mypage1.jpg. This may have somehting to do with a nested table.
Hey, sorry for the poor explanation. I just realized I used the incorrect word -

Where the vertical line represents the right side of the table (the table is centred, or almost)

Should read -

Where the vertical line represents the right side of the image.

Try this and you'll see what I mean - just put a large image in the place of mypage1.jpg. This may have somehting to do with a nested table.

<HTML>
<HEAD>
<TITLE>Basic Table Examples</TITLE>
</HEAD>
<BODY>


<div align = "center">
<table border bordercolor=Black BGCOLOR=White>

<tr><th COLSPAN=1>Cargo Unloaded</th><tr>
<tr><th ROWSPAN=8 VALIGN=TOP><IMG SRC="mypage1.jpg" ALT="SE" BORDER=0></th>
<tr><th VALIGN=TOP>Two</th></tr>
<tr><th VALIGN=TOP>Three</th></tr>
<tr><th VALIGN=TOP>Four</th></tr>
<tr><th VALIGN=TOP>Five</th></tr>
<tr><th VALIGN=TOP>Six</th></tr>
<tr><th VALIGN=TOP>Seven</th></tr>
<tr><th VALIGN=TOP>Eight</th></tr>
<tr><th VALIGN=TOP></th></tr>

</TABLE>
</BODY>
</HTML>

ASKER CERTIFIED SOLUTION
Avatar of jayyu2k
jayyu2k

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Kindly Edit ur table width's Image Width's and other Attributes to tables and Iamges.. i have given somethin.. random. U need to change that to ur requirements.

Jayanth
Malek,

Your code does not make any sense at all.  That will not come anywhere near close to what you describe as the desired layout.  I suggest  you try out the code samples that have been posted and let us know if any of it is close to what you are trying to do.

Cd&
Jayanth,

Thanks - that is exactly what I'm after. Yes, I admit my attempt was pretty lame.
malek :) not Exactly.. ! no Need to bother so much about things what u donno .. You cant know everything :)

So Cheer Up and Make use of this Community to Grow :-) For have Grown like you. !

Cheers Jayanth