Home

Multiple Marquees on the same line


Have you ever tried the following code with the intention of placing two or more marquees on the same line:

<MARQUEE><H1>This is Marquee 1</H1></MARQUEE>
<MARQUEE><H1>This is Marquee 2</H1></MARQUEE>

You will not get the 2 marquees on the same line, but on different lines. So what to do to get them on one line? The solution is pretty simple.

Consider the following code:

<TABLE WIDTH=100%>
<TR>
<TD><MARQUEE><H1>This is Marquee 1</H1></MARQUEE></TD>
<TD><MARQUEE><H1>This is Marquee 1</H1></MARQUEE></TD>
</TR>
</TABLE>

Explanation:
There is, virtually, no need for an explanation here. The Logic is pretty simple and straightforward to understand.

Its just that each marquee is put inside a different cell in one row of a table.

A point to be noted:
1. The table MUST have some width. I have given WIDTH=100%. You cannot leave WIDTH as blank i.e. <TABLE>…</TABLE>. You must supply the WIDTH attribute, else the marquee will not get displayed.