Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 12-02-2009, 11:15 PM
n0mad n0mad is offline
Junior Member
 
Join Date: 11-07-09
Posts: 12
iTrader: 0 / 0%
Table scroll bars

Ok, I have a table with two rows. On the first row, I can input text in it, and when I click a button, the text automatically appears in the second row.

The problem is that when I input a text that is too long or too large for the table, then press the button, the second row will not use scrollbars, even though I use overflow:scroll and set the width and height of the td. Instead, it will make the table expand.

What is the right method to use to make the second row use scrollbars?
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 12-02-2009, 11:34 PM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,710
iTrader: 5 / 100%
Try the example here: CSS overflow Property http://www.w3schools.com/Css/pr_pos_overflow.asp
 
Reply With Quote
  #3  
Old 12-02-2009, 11:52 PM
n0mad n0mad is offline
Junior Member
 
Join Date: 11-07-09
Posts: 12
iTrader: 0 / 0%
cool thanks. I've used divs instead of table, and it works great
 
Reply With Quote
  #4  
Old 12-07-2009, 02:21 AM
TechnMist TechnMist is offline
Member
 
Join Date: 12-07-09
Posts: 42
iTrader: 0 / 0%
One trick is to change the display value of the td, you could target the tr and see what happens, and there is a max-wdith parameter that might also help force the overflow.

I have just looked it up in CSS the Definitive Guide, and overflow only applies to block-level and replaced elements, so you could change the display param to block on the td, by default it is normally set to table-cell.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How best to avoid scroll bars??? chrisnrach17 Web Design Lobby 3 01-28-2009 08:15 PM
verticle scroll bars sim Coding Forum 12 03-01-2005 05:41 PM
color scroll bars Utica Coding Forum 3 06-03-2004 09:49 PM
Help needed to get rid of horizontal scroll bars chrisnrach17 Coding Forum 6 12-16-2003 07:46 AM
Colored scroll bars D Farrer Coding Forum 3 11-13-2003 04:59 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:52 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC