User Tools

Site Tools


Sidebar

Index

css:overflow-x-not-working

CSS Overflow-x not working

If your div doen't scroll it is quite surely because you haven't use a magic word in your CSS

#divscroll{
	width: 500px;
	overflow-x: auto;
	white-space: nowrap;
}

without white-space: nowrap the text wraps so the div doesn't need to scroll. If you block the wrap (due to the white space) the div is surely going to scroll.

css/overflow-x-not-working.txt · Last modified: 2014/09/03 17:14 by rik