By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,880 Members | 1,817 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,880 IT Pros & Developers. It's quick & easy.

Aligning a div to a table

P: n/a
Is there a way to align a div to a table? I have a table that is
aligned center, valigned middle on the page and I need to apply a
dynamic length border to the right side of the content cell of the
table. I can do this for a page, but I am having trouble figuring out
how to align the div to the table and stretch it to the height of just
the middle cell.

Thanx in advance for any advice you can offer!
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

I don't know if I got it right, but probably the CSS "position:relative"
may help, like

<div id="divinsidetable">...some longer text...</div>

with style:

div#divinsidetable {
border-right:solid 2px red;

[not tested, but should work]

If I'm wrong, please be more precise or give us a link.


Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.