Pages: [1]   Go Down
Send this topic | Print
Author Topic: Div tag gain horizontal Scrollbar if content exceeds limits  (Read 873 times)
four4swords
Flash Messer-er
Hyper-Active Member
***
Online Online

Posts: 278


WWW
« on: December 04, 2008, 03:21:33 PM »

Hey everyone!

I have a div tag that has a width of 80%.. And it has content in it.. Normally it's just text.. But if pictures with widths larger than the 80% ... Or if a bunch of text with no space (e.g "hhiihihiihhhhhhhhhiiiiiiiiiiiiiiihhhhhhhhhhhiiiiiiiiiihi" .. but longer ) is put into the div.. the div will extend beyond it's allocated 80% ..

How do I make it so that it gains a horizontal scrollbar if the content has widths that exceed the limits of the Div Tag?

Thanks!
Logged

M0ZZA
A Man In A Trance...
Loyal 110MB Member
*******
Online Online

Posts: 2542


So yeah, I would like to be a moderator.


WWW
« Reply #1 on: December 04, 2008, 05:23:25 PM »

you would put in the CSS

overflow:auto;

or

overflow:scroll;


I cant remember which one  smiley
Logged

four4swords
Flash Messer-er
Hyper-Active Member
***
Online Online

Posts: 278


WWW
« Reply #2 on: December 04, 2008, 06:38:30 PM »

Oh right!! lol I didn't know that little function existed!

Thanks!
Logged

ESI Portal
Vietnamese
Super Authority member
******
Offline Offline

Posts: 1586

Hãy tìm kiếm trước khi hỏi - Search before ask


WWW
« Reply #3 on: December 05, 2008, 11:57:11 PM »

you would put in the CSS

overflow:auto;-->better

or

overflow:scroll;


I cant remember which one  smiley

Please review. Thanks
Logged

English: http://www.esiportal.110mb.com
Tiếng Việt: http://www.esiportal.110mb.com/vn/
Nếu vấn đề của bạn đã được giải quyết, xin hãy thêm [Resolved] trong tiêu đề (subject) của topic mà bạn đã đưa ra.
Anh không thích em, đơn giản bởi vì anh quá yêu em
Em không xinh, đơn giản bởi vì em quá đẹp
Nếu em chết, anh cũng không khóc, đơn giản bởi vì anh sẽ chết theo em
Pages: [1]   Go Up
Send this topic | Print
Jump to: