473,387 Members | 1,529 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,387 software developers and data experts.

Using ROWSPAN and fixed height TD

Hello,

I'm currently experiencing some problems with the following code:

<TABLE border=1 cellpadding=0 cellspacing=0>
<TR> <TD BACKGROUND="images/menu.gif"
WIDTH="170px" HEIGHT="372px" VALIGN=TOP>&nbsp;</TD>
<TD BACKGROUND="images/content.gif"
WIDTH="630px" VALIGN=TOP rowspan="2">
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
</TD>
</TR>
<TR> <TD BACKGROUND="images/menurepeater.gif"
WIDTH="170px">Some text</TD></TR>
</TABLE>

The menu.gif has a width of 170 and a height of 372. But when I set
the height of the TD to 372px, it still can be changed by the amount
of text in the content.gif-td. That's not allowed, because I want that
TD fixed, and the other TD (menurepeater.gif) should repeat the image
depending the amount of text.

Somebody ever experienced the same problem?

menu.gif = 170x372
content.gif = 630x372 (may repeat)
menurepeater = 170x1

Sincerely,
Tim aka Vitabiz
Jul 20 '05 #1
1 11796
Tim,

The problem is that a table cell will get as big as it needs to in
order to accomadate the content you place within the td tags.

If you don't want the menu.gif to repeat at all, you could use inline
style sheets to set that.
<td style="background-image: url(images/menu.gif); background-repeat:
no-repeat;">

Furthermore, you could set the background of the table using css to
repeat only vertically and position it to the left so that the
menurepeater.gif shows up directly beneath the menu.gif that does not
repeat.
<table style="background-image: url(images/menurepeater.gif);
background-repeat: repeat-y; background-position: left;">

If you're still having problems with it, and can't find an answer let
me know. I don't browse these newsgroups very often so send me an IM
through any of the IM programs located at:
http://CatsEyeDesigns.Net/contact.asp

I'll walk you through it if you want, but I'm not quite sure what you
want it to look like so you'd have to clarify for a better answer.

Regards,
Mr. B
http://CatsEyeDesigns.Net

vi*****@hotmail.Com (Vitabiz Productions Ltd) wrote in message news:<a9**************************@posting.google. com>...
Hello,

I'm currently experiencing some problems with the following code:

<TABLE border=1 cellpadding=0 cellspacing=0>
<TR> <TD BACKGROUND="images/menu.gif"
WIDTH="170px" HEIGHT="372px" VALIGN=TOP>&nbsp;</TD>
<TD BACKGROUND="images/content.gif"
WIDTH="630px" VALIGN=TOP rowspan="2">
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
Some text lines<br>Some text lines<br>Some text lines<br>
</TD>
</TR>
<TR> <TD BACKGROUND="images/menurepeater.gif"
WIDTH="170px">Some text</TD></TR>
</TABLE>

The menu.gif has a width of 170 and a height of 372. But when I set
the height of the TD to 372px, it still can be changed by the amount
of text in the content.gif-td. That's not allowed, because I want that
TD fixed, and the other TD (menurepeater.gif) should repeat the image
depending the amount of text.

Somebody ever experienced the same problem?

menu.gif = 170x372
content.gif = 630x372 (may repeat)
menurepeater = 170x1

Sincerely,
Tim aka Vitabiz

Jul 20 '05 #2

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

Similar topics

28
by: Greg Adourian | last post by:
Hi, I'm breaking my head over the following few lines of code, generated with Photoshop Slices. As soon as the structure is slightly complicated, the output is broken. I can't seem to follow...
3
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
2
by: davidson1 | last post by:
Hai friends..for menu to use in my website..i found in one website....pl look below website.... http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm i downloaded 2 files.... ...
1
by: Manil | last post by:
I usually have no problem with Firefox, but here is a rare instance of IE displaying a table with image slices correctly and Firefox adding space where I seemingly have none. Is there anything I can...
6
by: prasath03 | last post by:
Hi, I developed one html page that contains one combo box for selectig mulltiple products to purchase with required quantity. I used innerHTML to add the textfield dynamically to enter the...
1
by: viv1tyagi | last post by:
Hi everyone ! ! ! I'm just a month old in the world of Python and trying to develop an application using Tkinter in which a new window pops out on a particular button press.The code for this new...
2
by: aashishn86 | last post by:
hii...i am creating a chart using html and asp the code for it is : <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <% Dim data1Array(3) data1Array(0) = 5
1
by: aashishn86 | last post by:
hii...i am creating a chart using html and asp the code for it is : <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <% Dim data1Array(3) data1Array(0) = 5
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.