HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
I need help with scroll bars in tables!!
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
Madsalty



Joined: 11 Nov 2007
Posts: 2

PostPosted: Sun Nov 11, 2007 3:03 am     I need help with scroll bars in tables!! Reply with quote

Hi,
I am currently writing a reasonably simple website in html. My website is made using tables. The main body of my text need to go in a cell. However, When text is entered that is greater than the height of my table, the table simply get enlarged.
In an ideal world i would like to know how i could set that cell so that if the text (or whatever is in that cell) exceeds the table height a vertical scroll bar would appear.
Is this possible?

Regards,
Mad

(p.s. i have used the search function, but due to the basic nature of my html understanding i found any answers confusing and un-helpfull to me.)
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8199
Location: Castle Rock CO USA

PostPosted: Mon Nov 12, 2007 8:53 am     Reply with quote



What do you have now?

Code:
<div style="width:200px; height: 300px; overflow:scroll;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras id metus. Integer sed lorem. Suspendisse molestie massa. Vestibulum felis massa, dictum in, convallis ac, tincidunt sit amet, justo. Integer mattis euismod tortor. Nunc quis dolor at sapien egestas sollicitudin. Cras volutpat ipsum sed pede. Pellentesque ac risus a dui lobortis euismod. Etiam quis quam eget nisi consequat convallis. Sed ligula. Proin neque. Ut sed eros. Proin ultricies ullamcorper purus. Curabitur vel ante. Fusce tempor urna ut lectus. Curabitur viverra euismod tellus. In feugiat sapien at mi.
<br /><br />
Sed ut leo sed justo posuere gravida. Cras semper pellentesque tortor. Curabitur scelerisque ante sit amet erat. Donec dui felis, cursus nec, posuere a, tempor dictum, ante. In ut lorem id magna eleifend gravida. Vivamus felis mi, laoreet eget, dignissim a, facilisis nec, nunc. Praesent nonummy consectetuer diam. Donec eu tortor. Sed sagittis dolor vitae ante. Aliquam eleifend blandit odio. Fusce dictum nisi sit amet elit cursus iaculis. Nam dapibus. Nulla nec lacus quis dolor condimentum dapibus. Vivamus eu tortor. Sed tortor. Curabitur elementum tortor ut nisl. Vestibulum ullamcorper mollis sem. Fusce suscipit risus id mauris.
</div>

_________________
Corey
Toll Free Numbers | SiteMaps for Search Engines
Madsalty



Joined: 11 Nov 2007
Posts: 2

PostPosted: Mon Nov 12, 2007 9:41 am     Reply with quote

Strange as it may seem, i walked the dog, came back and voila i was renewed enough to work out:

;overflow-x=hidden;overflow-y=auto

Thanks for the help though
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial