Monday 15 February 2010

html - table inside a div: how to vertically align texts in div and table -


In this example, two text blocks are aligned to the left, but I can not find it (much research and many Attempts) How to align them on both sides:

  & lt; Div style = "text-align: justify; padding: 10px;" & Gt; Some wrapped (long enough) text & lt; Table style = "margin-left: -7px; width: 100%; range: 3px solid red" & gt; & Lt; Tr & gt; & Lt; Td> Some wrapped (long enough) text & lt; / Td> & Lt; / Tr & gt; & Lt; / Table & gt; & Lt; / Div & gt;   

This is just a simple example; The table is actually in many raw ans ans columns, vertical alignment is concerned about the text on the one side and aside from the table in the table.

I should rewrite this question: Can I resize a table within a table, so that it has relative to 100 browsers and margin of container dev and independently of paddings?

If I can add something like breadth (100% + 7px);

In the end I came upon this agreement / proceedings with

solution float: left and float: right In your case, 2 is enough to use the Divis you want.

  

If you still want to use the table, it is also possible, But I have not indicated the use of the table

  
gt; table style = "float: correct; Margin-left: -7px; Limit: 3px solid red "> & lt; / Check the table & gt; & lt; / div & gt;



No comments:

Post a Comment