bdemenil
11-03-2006, 03:46 AM
Let's say I have some text, and then a paragraph tag. Then I have a right aligned table. How do I get the table to ignore the previous p tag and appear at the same level as the text before it?
|
Click to See Complete Forum and Search --> : getting a table to ignore previous break bdemenil 11-03-2006, 03:46 AM Let's say I have some text, and then a paragraph tag. Then I have a right aligned table. How do I get the table to ignore the previous p tag and appear at the same level as the text before it? bubs 11-03-2006, 04:46 AM z-index maybe. give it higher z-index then position it with css. thats what I would try first. maybe a clear: left; depending on what your trying to do with it. but from what it sounds like you probably want a z-index KDLA 11-03-2006, 07:04 AM You don't need the paragraph tag. The table should stand alone. <p>text text text</p> <table>... KDLA bdemenil 11-03-2006, 11:15 AM You don't need the paragraph tag. The table should stand alone. <p>text text text</p> <table>... KDLA I'm not sure I understand you. In the code example you give, you do use a paragraph tag. So in that example how do I get the table to align to the right side of the text in the paragraph (without putting the code for the table inside or before the code for the paragraph)? KDLA 11-03-2006, 11:45 AM I'm sorry, I misunderstood your post. I thought you meant that the table was inheriting the spacing of the paragraph. Here's how you achieve the alignment: <table style="float: right; width: ###px;"> ... </table> <p>text text text</p> (insert the width of the table for the "###".) Reference: http://css.maxdesign.com.au/floatutorial/ KDLA bdemenil 11-03-2006, 02:01 PM What if i don't really need a table - I just want to have a container floating right - the container might just have an image with text inside, or it might have tables nested within it. I tried span with the float:right attribute, but then when I have a table within the span, it doesn't display correctly. KDLA 11-03-2006, 02:13 PM Span doesn't "stand alone" as a tag. Use <div> instead. bdemenil 11-03-2006, 06:36 PM Thanks. Just moved it up ahead and it works. I read somewhere that floating the the one block right and the previous block left will get the 2nd block to go right of the first webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |