Zaloguj | Zarejestruj | FAQ
Anonymous

writing a text next to a table is possible?

+ Odpowiedz

Posty: 3 Strona 1 z 1


writing a text next to a table is possible?

przez mrgenco » N sie 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!*/
Avatar użytkownika

mrgenco

  • Posty: 2
  • Dołączył(a): Pt sie 12, 2011 11:38 am

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

przez HTML.net » N sie 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
Avatar użytkownika

HTML.net
Site Admin

  • Posty: 1194
  • Dołączył(a): So wrz 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?

przez mrgenco » N sie 14, 2011 3:02 pm

i succeed it!! thank you again:)
Avatar użytkownika

mrgenco

  • Posty: 2
  • Dołączył(a): Pt sie 12, 2011 11:38 am


+ Odpowiedz

Strona 1 z 1