You are here: Reference > CSS > properties > browser specific extensions > -webkit-marquee-direction
-webkit-marquee-direction property
Specifies the scrolling direction of the marquee.
JavaScript page for this property: webkitMarqueeDirection. You can find other example(s) there. |
Possible values:
One of the following values:
The contents scroll from bottom to top. | |||||||
Default. Depending on the value of the direction property, it scrolls the contents from right to left (direction='ltr') or left to right (if direction='rtl'). | |||||||
The contents scroll from right to left, if the direction of the text is set to 'ltr'. | |||||||
The contents scroll from top to bottom. | |||||||
The contents scroll from left to right. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
The contents scroll from right to left. | |||||||
The contents scroll from right to left. | |||||||
The contents scroll from left to right. | |||||||
The contents scroll from bottom to top. |
Default: auto.
Example HTML code 1:
This example illustrates the use of the -webkit-marquee-direction property:
|
||||
<head> <style> #myMarquee { border: 1px dotted #000000; width: 200px; height: 60px; text-align: right; -webkit-marquee-direction: forwards; -webkit-marquee-increment: 1px; -webkit-marquee-repetition: infinite; -webkit-marquee-speed: fast; -webkit-marquee-style: scroll; } </style> </head> <body> <marquee id="myMarquee"> first line<br /> second line<br /> third line </marquee> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
-webkit-marquee
-webkit-marquee-increment
-webkit-marquee-repetition
-webkit-marquee-speed
-webkit-marquee-style
direction
-webkit-marquee-increment
-webkit-marquee-repetition
-webkit-marquee-speed
-webkit-marquee-style
direction
External links:
User Contributed Comments