overflow-x

overflow-x
CSS overflow-x Property
The CSS overflow-x property is used to specify how content inside of an element should be clipped along the X axis, which is the horizontal plane. If you set the width of an element, and the width of the content inside of that element happens to exceed the width of its parent, use overflow-x to handle how the overflowing content is treated.
CSS CODE EXAMPLE
<style type="text/css">
div#myDiv {
    width: 120px;
    overflow-x: auto;
    height: 50px;
    padding: 10px;
}
</style>
<div id="myDiv">ABCDEFGHIJKLMNOPQRSTUVWXYZ</div>
 
ABCDEFGHIJKLMNOPQRSTUVWXYZ

Possible Values:

auto
This setting will make a scroll bar appear only if the content requires it.

scroll
This setting will make a scroll bar appear.

visible
This setting will make no scroll bar and will not hide the overflow content.

hidden
This setting will make no scroll bar and it will hide the overflow content.


Related Material

overflow-y
overflow

Related Posts :

  • top top CSS top Property The CSS top property is used to offset an element's top po… Read More...
  • z-index z-index CSS z-index Property The CSS z-index property is used to layer elements… Read More...
  • text-shadow text-shadow CSS text-shadow Property The CSS text-shadow property is used to re… Read More...
  • visibility visibility CSS visibility Property The CSS visibility property is used to hide … Read More...
  • right right CSS right Property The CSS right property is used to offset an element's … Read More...

0 Response to "overflow-x"

Post a Comment