We help IT Professionals succeed at work.
Get Started

Change <table> into <div>

Graeme
Graeme asked
on
93 Views
Last Modified: 2016-03-06
As I have been told quite a bit on here that <table> is out dated and very limited to what you can do with it. So I have decided to try this new fandangle <div> thingie

I have had some goes and trying to replace the items, however I have no luck as I dont fully understand what goes where, etc. How you do column and row spans, tables within tables, heights and widths, etc.

I want it to look like:
http://dev.gmoney.club/cnt.com.au/dev/www-v1.0/home.asp?
user: lisa
pw: Estrela1

<table width=100% cellpadding=0 cellspacing=0 border=0>
	<tr>
		<td height=25>&nbsp;</td>
		<td width=1346 align=center rowspan=3>
			<table width=1346 height=100 cellpadding=0 cellspacing=0 border=0>
				<tr>
					<td width=100 height=100 rowspan=3 background=images/CNT-original.png style="background-size: cover; background-position: center,center">&nbsp;</td>
					<td height=25 align=right><b><font size=2>Contact Us</font></b></td>
				</tr>
				<tr>
					<td height=49 valign=absmiddle bgcolor=#006CB8><img src=images/top-bar-right.png height=49 align=absmiddle><font size=6 color=white><b>&nbsp;Cruise and Touring</b></font></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td bgcolor=#666666>
						<table width=1246 cellpadding=0 cellspacing=0 border=0>
							<tr>
							<%
								Set Menu=oConn.Execute("SELECT * FROM menu WHERE menu_live=YES ORDER BY menu_order")
								Do Until Menu.EOF
							%>
								<td onMouseOver=ChangeColor(this); onMouseOut=UnChangeColor(this); align=center><font size=4 color=white>&nbsp;<%=Menu("menu_name")%>&nbsp;</font></td>
							<%
								Menu.MoveNext
									Loop
							%>
								<td width=50%>&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
  		  </table>
	  </td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td bgcolor=#006CB8 height=49 align=right><img src=images/top-bar-left.png height=49 align=absbottom></td>
		<td bgcolor=#006CB8 height=49>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
</table>

Open in new window


Thanks all in advance!
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 24 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE