Recent Topics

1 Jun 14, 2006 09:54    

This is just a general HTML question, hope someone can help.

What is the code or attribute in order to have text to the right of a left-aligned table a certain distance/space from the right border of the table. I want to adjust the attribute, as by default (or with no attribute set) the text sits right on the edge of the table.

2 Jun 15, 2006 10:45

<div style="float:left">
<!-- your table -->
</div>
<div style="float:left;margin-left:##px">
<!-- your text -->
</div>

Change ##px to the distance that you want

¥

3 Jun 15, 2006 10:50

Thank you, much appreciated.

4 Jun 15, 2006 11:18

That didn't quite do what I wanted. What I want is to have the Table on the left and have Text flow around it on the right eventually returning below the table (if enough text).

Presently what happens is that the wrapped text on the right of the Table is hard-up against the right border of the Table. I just want a little distance/space between that border and the the text.

Using the code snippet from above, the text now is underneath the table.

5 Jun 15, 2006 11:20

ahhh, ok, in that case your <table> tag needs to look similar to this :-
<table style="margin:0px <right gap>px <bottom gap>px 0px">

where <right gap> and <bottom gap> are the spacing that you want.

¥

6 Jun 15, 2006 12:49

Thanks, yes, that's doing the trick.


Form is loading...