To finalize the distinction between a regular form button and the HTML 4.0 button, we must force the new button to get rid of its ugly gray background. This can be accomplished with the little touch of CSS (Cascading style sheets), such as the following rules:
By default, the dimensions of the button is automatically set to the dimensions required to accommodate the content inside, such as an image. There will often be times when you want to manually control this dimension to fit your design. By using another CSS declaration, you can. To control the width/height of the button, use the following style declaration:
Example- Simulating browser buttons using the <button> tag:
Look closely at the above rectangular buttons...what do they remind you of? Well, they remind me of the default buttons that appear on the toolbar of your browser. Both of them are rectangular, and gray in color. In this fun example, we will create html 4.0 buttons that simulate the default browser buttons.
Sets how the text is scrolled within the marquee. Possible values are scroll, slide and alternate. If no value is specified, the default value is scroll.
bgcolor
Sets the background color through color name or hexadecimal value.
direction
Sets the direction of the scrolling within the marquee. Possible values are left, right, up and down. If no value is specified, the default value is left.
height
Sets the height in pixels or percentage value.
hspace (1.9a)
Sets the horizontal margin
loop (1.9a)
Sets the number of times the marquee will scroll. If no value is specified, the default value is −1, which means the marquee will scroll continuously.
scrollamount
Sets the amount of scrolling at each interval in pixels. The default value is 6.
scrolldelay
Sets the interval between each scroll movement in milliseconds. The default value is 85. Note that any value smaller than 60 is ignored and the value 60 is used instead, unless truespeed is specified.
truespeed (1.9a)
Determines whether scrolldelay values lower than 60 are ignored or not. Possible values are true or false. The default value is false
vspace (1.9a)
Sets the vertical margin in pixels or percentage value.
Fires when the marquee has reached the end of its scroll position. It can only fire when the behavior attribute is set to alternate.
onfinish
Fires when the marquee has finished the amount of scrolling that is set by the loop attribute. It can only fire when the loop attribute is set to some number that is greater than 0.
<marquee>This text will scroll from right to left</marquee> <marquee direction="up">This text will scroll from bottom to top</marquee> <marquee direction="down" width="250" height="200" behavior="alternate" style="border:1px solid black"> <marquee behavior="alternate"> This text will bounce </marquee> </marquee>
Adventure with us today. Find out more on travel agents and other facilities around East Africa from here. Find out the most fascinating places that you can not miss to visit while in East Africa. Get all this from richcomputersolutions - your favorite website. Remember if you want to join this website, suggest a user name and password and send them to richymany2k@gmail.com or click on sin-up for more. Joining this website is a 100% free. Remember that we offer the best in repair of computers, scanners , printers. On top of that, reach us for quality photography, internet connections .graphic designing, website designing, coomputer training and many mor services.
You are welcome to the sole source of information in East Africa.
Advertise here
There have been 41420 visitors (173656 hits) To this Website today