Solved

Page layout with large image- use Table?

Posted on 2002-04-03
10
192 Views
Last Modified: 2010-04-09
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>
0
Comment
Question by:Malek103197
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6916413
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&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6916417
If you posted a link to the page, so we could see it, it might help as well.

Cd&
0
 
LVL 2

Expert Comment

by:jayyu2k
ID: 6917295
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Malek103197
ID: 6917852
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.
0
 

Author Comment

by:Malek103197
ID: 6917853
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>

0
 
LVL 2

Accepted Solution

by:
jayyu2k earned 50 total points
ID: 6917878



 That was a very Bad Code.. Plz Dont Mind.. how did u get that code ? hope not by any HTML Editors ? u Must have written it.

First of all Note.. that in the Second = Column of the second Row u need to inser another table.. with how many ever rows u need. I mean the Column nExt to the Image Needs to be valign="top" and then a table inserted with any number of rows u need ... i havent done much work on this.. i have edited ur Code with proper Colspans and.. inserting tables where ever nEcessary.

 ANd also note.. Colspan="1" means nothing.. it can be left blank as well.. in ur case u had to Put Colspan="2" anyways check my code and Urs.. :)

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


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

<tr><th COLSPAN=2>Cargo Unloaded</th>
<tr><th VALIGN=TOP>
  <p><IMG SRC="mypage1.jpg" ALT="SE" BORDER=0 width="273" height="290"></th>
  <th VALIGN=TOP>
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="150" id="AutoNumber1">
    <tr>
      <td width="100%">Two</td>
    </tr>
    <tr>
      <td width="100%">Three</td>
    </tr>
    <tr>
      <td width="100%">Four</td>
    </tr>
    <tr>
      <td width="100%">Five</td>
    </tr>
    <tr>
      <td width="100%">Six</td>
    </tr>
    <tr>
      <td width="100%">Seven</td>
    </tr>
    <tr>
      <td width="100%">Eight</td>
    </tr>
  </table>
  </th>
<tr><th VALIGN=TOP colspan="2">&nbsp;</th>

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

**********

Cheers Jayanth
0
 
LVL 2

Expert Comment

by:jayyu2k
ID: 6917884
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
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6918329
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&
0
 

Author Comment

by:Malek103197
ID: 6919367
Jayanth,

Thanks - that is exactly what I'm after. Yes, I admit my attempt was pretty lame.
0
 
LVL 2

Expert Comment

by:jayyu2k
ID: 6920008
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
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I show a login page over the login page? 5 55
How do I update select listbox after search 2 46
Sending HTML Formatted Email from ASP.NET 2 50
Div not showing up 6 31
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question