Login | Register | FAQ
Anonymous

writing a text next to a table is possible?

+ Post a reply

3 posts Page 1 of 1


writing a text next to a table is possible?

by mrgenco » Sun Aug 14, 2011 2:03 pm

i'm trying to do that thousands of times but i failed at every turn.
What could be the problem and how can i solve it?
<html>
<body>
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
<p>text,text,text</p>
</body></html> /*Whenever i write this code block the text comes to the bottom
of the table but i want it to be next to the table. Thank you for your interest!*/
User avatar

mrgenco

  • Posts: 2
  • Joined: Fri Aug 12, 2011 11:38 am

Re: writing a text next to a table is possible?

by HTML.net » Sun Aug 14, 2011 2:16 pm

Let the table float left:

<table style="float:left;">

Read more about floating here: http://html.net/tutorials/css/lesson13.php

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: writing a text next to a table is possible?

by mrgenco » Sun Aug 14, 2011 3:02 pm

i succeed it!! thank you again:)
User avatar

mrgenco

  • Posts: 2
  • Joined: Fri Aug 12, 2011 11:38 am


+ Post a reply

Page 1 of 1

?>