|
-
Feb 12th, 2003, 01:06 AM
#1
Thread Starter
Junior Member
overflow
Does overflow work for tables and table cells because I'm having a hell of a time trying to implement overflow?
-
Feb 12th, 2003, 04:14 AM
#2
-
Feb 12th, 2003, 07:02 AM
#3
Frenzied Member
I seem to remember that I got it to work for cells in Mozilla at least, but I could be wrong.
-
Feb 12th, 2003, 10:24 AM
#4
Fanatic Member
I went to that thread last night and I copied the code and created a scroll bar in a table. I just don't understand what it's doing so I can use it later. Here is the code:
Code:
<div>
<span style="overflow-y:auto;height:450;">
<table border="0" align="center" >
:
:
</table>
</span>
</div>
Can someone explain to me what this is doing and where to get information on it? Thanks, Jeremy
He who listens well, speaks well.
-
Feb 12th, 2003, 10:38 AM
#5
a kind of dinfintion:
DIV
Allows you to insert a division, which is used to partition a document into segments. Divisions are used to enclose other HTML elements to which you want to apply style information or which you want to position absolutely on the page.
You'll have noticed from the thread to drop the SPAN tags and place the style in the DIV
so your setting the height of the DIV to 450
in the event that the content between the div tags renders greater than that height ie it overflows on the y then automatically add a scrollbar
-
Feb 12th, 2003, 10:48 AM
#6
Fanatic Member
When I took out the span tags, it didn't work. It's working perfect for me the way it is. Do you know why this is happening? I don't want to run into problems later. Thanks, Jeremy
He who listens well, speaks well.
-
Feb 12th, 2003, 11:03 AM
#7
Is this what you have now?
Code:
<div style="overflow-y:auto;height:450px;">
<table border="0" align="center" >
:
:
</table>
</div>
note the style that was in the SPAN is now in the DIV
I've also just added px to the 450 RickBull pointed out earlier that you should really specify the type
-
Feb 12th, 2003, 08:16 PM
#8
Thread Starter
Junior Member
What I mean is there any way to add overflow for just cells,
td.overflow { overflow: auto; height: 60% }
<td class="overflow">data goes here
will that work? I got the overflow to work for the whole table but I just need it for one cell.
-
Feb 13th, 2003, 07:22 AM
#9
Frenzied Member
I've just checked the CSS specs and (sorry if this was in the other thread, I couldn't be bothered to check ) overflow only applies to block-level and replaced elements , so it won't (or shouldn't) work on cells. You should be able to do it on table rows I think. I'm not sure if they're classed as block-level elements in CSS though. They are in HTML but I'm not totally sure about CSS, which would explain why overflow doesn't work with tables.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|