+ 1
Paraghraph with only horizontal scrollbar
how to make a paraghraph can only scrolled horizontally? (without vertical scrollbar)
2 ответов
+ 8
<!DOCTYPE html>
<html>
<head>
<title>Horizontal scrolled P</title>
<style>
.hor-scr {
background: #333;
color: #aaa;
display: block;
font: 2em sans-serif;
max-width: 200px;
max-height: 100px;
overflow: scroll;
white-space: nowrap;
}
</style>
</head>
<body>
<p class="hor-scr">
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum EOF
</p>
</body>
</html>
0
ok thakns