PDA

View Full Version : Table and Image side by side



lebronletchev
Jul 18th, 2010, 10:49 PM
Hi,

I would need your helpful to do a code for putting side by side a table and an image.


<html>
<head>
<title>Football stickers</title>
</head>

<body>

<p>
<TABLE border=1>
<TR>
<TH>Screens</TH>
<TH>Language</TH>
</TR>
<TR>
<TD>World Cup</TD>
<TD>English<TD>
</TR>

<TR>
<TD>National Championship</TD>
<TD>English</TD>
</TR>
<TR>
<TD>Euro Cup</TD>
<TD>English</TD>
</TR>

</TABLE>

<H1 ALIGN=center><IMG SRC="http://www.dhytex.com/figurinhas.jpg" width="400" height="500" ALT="Football Stickers"></H1>
</p>

</body>
</html>

Regards

Letchev

abduraooft
Jul 19th, 2010, 09:29 AM
You current markup is invalid as you can't nest a table or heading inside a paragraph. Fix the errors first and add a DOCTYPE at the top, if you don't have one. You could achieve your goal by setting float:left; to that table in CSS.