I have no problem with your code in FF, Chrome or Safari.
This is the same code, but of course:
<!DOCTYPE HTML> <html> <head> <title>Highlighting Elements</title> <style> .info { width: 250px; height: 200px; float: left; } .list { height: 200px; overflow-x: scroll; overflow-y: hidden; white-space: nowrap; } .item { height: 175px; width: 175px; display: inline-block; margin-left: 5px; overflow: hidden; } .item * { white-space: normal; } </style> </head> <body> <div id="listOne red"> <div class="info blue"> <p>info regarding this list of itens</p> </div> <div class="list"> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> <span class="item"> <p>text</p> <p>more text, in another line, now wrapping</p> <p>and etc and etc</p> </span> </div> <div class="clear"></div> </div> </body> </html>
tahdhaze09
source share