2 replies [Last post]
discostu
discostu's picture
Offline
newbie
Last seen: 19 years 49 weeks ago
Timezone: GMT-6
Joined: 2003-06-24
Posts: 1
Points: 0

I'm working on a dynamic page and using div and span instead of tables. The problem is that I have one div ("row") with two span ("columns") Sometimes the left column will be longer in height, and sometimes the right will be longer. I want a border between the two columns that stretches for the entire length, however the spans don't stretch to 100% height of the div. I need this to work in IE (at least IE6, better if 5 also).

Can I do this or do I have to use tables? Sad

Thanks.

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 7 years 18 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

Using Div and Span Instead of table

If the columns have a set width, then you could use a background image in the DIV... 'bout the best I can think of at the mo, sorry!

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

Anonymous
Anonymous's picture
Guru

Using Div and Span Instead of table

I figured it out! I had one <div> with two <span style="height: 100%"> tags inside. All I had to do was give the outside <div> tag a height and then the <span> tags expanded to 100%