Log In · Register

 
CSS and Tables
psychoteddy
post Dec 31 2008, 06:05 PM
Post #1


Member
**

Group: Member
Posts: 17
Joined: Jul 2008
Member No: 670,133



Can I use CSS to make a cell in a table scrollable, if so what code should I use?
 
 
Start new topic
Replies
Emmi237
post Jan 13 2009, 06:38 PM
Post #2


Member
**

Group: Member
Posts: 22
Joined: Nov 2006
Member No: 483,287



Not sure if you are still looking for an answer to this but...
You could use an iframe to do this, but then the content for the cell would need to be in a seperate HTML document. You would not need CSS for this.
The code for this would be something like:

CODE
<iframe src="cellcontents.html" name="scrollablecell" scrolling="auto" align="top" width="300" height="300" marginwidth="0" marginheight="0" frameborder="0"></iframe>


You could also use a DIV like so...

CODE
<style type="text/css">

.scroller { overflow: auto; width: 300px; height: 300px; }

</style>


CODE
<td><div class="scrollingcell">Cell contents</div></td>


Hope that helps!
 

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: