User Tools

Site Tools


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

	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 16:14 by rik