473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Table formatting problem

I have a table that has 3 image slices. The middle slice changes size based
on size of browser window. This works great.

My client wants the date to show over the image on the right. So what I did
was cut off the top part of the image (which is just a solid color and I can
handle by making the background-color of the cell this color). I then use a
asp line to display the date, which also works.

Here is the original table setup for the logo:
************************************************** **************************
***********
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000099">
<tr height="100">
<td><table border=2 width="100%" cellspacing="0" cellpadding="0"
summary="Layout Table">
<tr>
<td width="496" height="100" ><img
src="images/Contour_logo_intranet1_1x1.jpg" width="496" height="100"
hspace="0" vspace="0"></td>
<td width="100%"><img src="images/Contour_logo_intranet1_1x2.jpg"
width="100%" height="100" hspace="0" vspace="0"></td>
<td width="129" height="100">
<td align="center" height="100">
<%= FormatDateTime(Now(),2) %><br>
<img src="images/Contour_logo_intranet1_1x4.jpg" width="129"
height="36" hspace="0" vspace="0" align="absbottom">
</td>
</td>
</tr>
</table></td>
</tr>
</table
************************************************** **************************
***********

The problem is I can't seem to get the image to go to the bottom of the cell
so it lines up correctly with the 2nd image. I have vspace and hspace set
to 0. I also have it aligned "absbottom".

I then tried to create a table in the cell that houses the image and the
date with 2 rows (1 column). The top cell has the date and the bottom cell
has the image.

The total height if the tables is 100. The new size of the image is 36. So
I set the top cell to 64 and the bottom cell to 36. It seems to increase
the sizie of the original table to about 110 (you can see this if you border
the top table). I assume this has to do with margins and cell spacing.

Here is the new code I have set up that is having the problem:
************************************************** **************************
***************
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000099">
<tr height="100">
<td><table border=2 width="100%" cellspacing="0" cellpadding="0"
summary="Layout Table">
<tr>
<td width="496" height="100" ><img
src="images/Contour_logo_intranet1_1x1.jpg" width="496" height="100"
hspace="0" vspace="0"></td>
<td width="100%"><img src="images/Contour_logo_intranet1_1x2.jpg"
width="100%" height="100" hspace="0" vspace="0"></td>
<td width="129" height="100">
<table height="100" border=1 cellspacing="0" cellpadding="0">
<tr >
<td align="center" height="64"><%= FormatDateTime(Now(),2) %></td>
</tr>
<tr >
<td height="36">
<img src="images/Contour_logo_intranet1_1x4.jpg" width="129"
height="36" hspace="0" vspace="0">
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table
************************************************** **************************
***************

What am I missing?

This may have been better in HTML group - not sure. I was using an ASP page
when this problem occurred.

Thanks,

Tom.
Nov 18 '05 #1
0 1490

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Andy Fish | last post by:
Hi All, I have a nice easy table and/or CSS formatting problem for any gurus out there. I have a table with 4 columns - no "width" attribute on anything. Some rows have 4 cells in (call...
4
by: deko | last post by:
I've heard it's best not to have any formatting specified for Table fields (except perhaps Currency), and instead set the formatting in the Form or Report. But what about Yes/No fields? When I...
4
by: Dave Brydon | last post by:
Access 2003 I have a combo box in my personnel table, which draws its data from a trade code table; the original field in the code table, is numeric, Long Integer, and formatted with 5 zero's . ...
2
by: Leo Duran | last post by:
Hi, I am working on an app right now that makes extensive use of the DataList control. I chose the DataList because I need to do multi row formatting. I am using it like so.
10
by: Coleen | last post by:
Hi all :-) I have a weird formatting problem with an HTML table that I am populating using VB.Net and HTML. Here is the snippet of code for the cell I'm trying to format: Dim...
2
by: Jeff | last post by:
I've been trying for days to figure out why the spacing between the rows on the left-most column of my table is screwy. Take a look here: http://mypage.iu.edu/~jbeverid/index_new.htm Right...
139
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
10
by: Greg Lovern | last post by:
I have a very large html table created by MS Word, saved as it's "Web Page, Filtered" file type. Every html table cell has lots of formatting tags. Most of the file size is that formatting. Is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.