Improving your HTML Page
There are some basic resources that could be used to improve your HTML Page.
Scrolling Boxes
An HTML scroll box is a box that grows scroll bars when it's contents are too large to fit in the box.
How do you make the box? You create the box using the HTML div tag.
Then, to make the box scroll, you apply the CSS overflow property to the div.
A basic Scroll Box
HTML code:
<div style="overflow: scroll; height: 100px; width: 300px; font-family:verdana,arial,sans-serif;
font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: 26px;
font-size-adjust: none; font-stretch: normal; -x-system-font: none;">
As you can see, once there's enough text in this box, the box will grow scroll bars...<br>
that's why we call it a scroll box! You could also place an image into the scroll box.
</div>
<p style="font-family:verdana,arial,sans-serif;font-size:15px;">
<a href="/html/codes/html_scroll_box.cfm">HTML scrollbox</a>
</p>
Result:
that's why we call it a scroll box! You could also place an image into the scroll box.
Colored Scroll Boxes
HTML scroll boxes could be colored.
You have a number of options when it comes to adding color to your scroll box.
HTML code:
<div style="overflow: scroll; height: 100px; width: 200px; font-family:verdana,arial,sans-serif;
background-color: rgb(103, 241, 82); color: rgb(166, 18, 13);">
This HTML scroll box has had color added.<br>
You can add color to the background of your scroll box.<br>
You can also add color to the scroll bars.
</div>
<p style="font-family:verdana,arial,sans-serif;font-size:15px;">
<a href="/html/codes/scroll_box_color.cfm">Change the color of your scroll box!</a>
</p>
Result:
You can add color to the background of your scroll box.
You can also add color to the scroll bars.
Scroll Box with Images
You can also add images to your scroll box.
This can be either a background image, or, one or more foreground images.
HTML code:
<div style="overflow: scroll; height: 150px; width: 250px;
font-family:verdana,arial,sans-serif;">
<img src="../images/brazilian_beach.jpg"
alt="Sample picture for scroll box: Beach, Brazil"
width="330" height="221">
</div>
<p style="font-family:verdana,arial,sans-serif;font-size:15px;">
<a href="/html/codes/picture_scroll_box.cfm">
Add an image to your scroll box!</a>
</p>
Result:
Scroll Box with Background Images
You can also add background images to your scroll box.
HTML code:
<div style="height: 220px; width: 325px; overflow: scroll; font: 35px/45px cursive;
color:#A6120D; background:url('../images/brazilian_dune.jpg');">
Background pictures are ideal for when you want to place text over the top
of your picture. When using a background picture, scroll bars will only
appear if we have enough text in the scroll box.
</div>
<p style="font-family:verdana,arial,sans-serif;font-size:15px;">
<a href="/html/codes/picture_scroll_box.cfm">
Add a background image to your scroll box!</a>
</p>
Result:
Scroll Box Borders
Here's an example of an HTML scroll box with a border added.
HTML code:
<div style="border: 5px dashed rgb(10, 218, 10); overflow: scroll;
height: 100px; width: 300px; font: 35px/45px cursive;">
This scroll box has had a border added to it.
You can add borders to anything in HTML - including scroll boxes.
</div>
<p style="font-family:verdana,arial,sans-serif;font-size:15px;">
<a href="/html/codes/scroll_box_border.cfm">Add a border to your scroll box!</a>
</p>
Result:
Another example
Lorem ipsum dolor sit amet consectetuer interdum consequat justo Vivamus nunc. Orci auctor et et pede Maecenas malesuada de Donec ornare tempus eget Morbi. Felis elit sagittis sed Semper Nulla et sit Pellentesque venenatis.
Cursus eu non Aenean orci congue cursus orci vitae augue lacus. Ut fermentum Nulla sed Quisque vitae dolor eros condimentam Nam odio interdum sapien id sit Phasellus. Nullam ut dolor tincidunt malesuada Sed adipinec spede Aenean.
Pede Vestibulum Vestibulum eros nulla facilisi id semper ipsum lobortis sapien. Augue vitae Nunc at aliquet hendrerit Phalibero odio turpis purus tincidunt. Consequat habitantu. Ut lacinia quis odio dictum consectetuer volutpat.
EliterosnuncsedutPraesentnontinciduntDonecliberoid.OrciconguelaoreetorciMauris tristique Fusce fringilla ornare porttitor nunc vitae Vestibulum morbi et. Consequat volutpat malesuada tempor ac que Quisque In Donec at ut Quisque. Dictumst interdum hac Curabitur Phasellus neque tempus eget turpis condimentum Curabitur. Et.
Orci ullamcorper sed tempus eu lacinia odio id Vestibulum non ac. Id magna tincidunt et habitasse pellentesque Nam Cras ilit pretium enim at. am Nulla quis pretium. Vitae montes elit Curabitur.
Ac nunc Proin pellentesque metus lacinia wisi Pellentesque Nam condimentum semper. Felis sapien turpis Nam laoreet et ut d nibh eu Aenean. Egese vel nibh tortor. Consequat gravida Sed arcu s Lorem a felis nunc est quis auctor consequat. Amet.
Sed In Curabitur Quisque wisi urna scelerisque urna ut lorem eros. Nibh Phasellus pede Proin ridiculus tincidunt tortor js sed. Nunc sollicitusem mi cursus ligula vitae. Nec enim mus Nulla venenatis adipiscing facilisis. Phasellus justo condimentum et In.
Augue lacinia Nam Vestibulum eleifend Nam mollis mus et consectetuer neque. Amet ac et semper est congue quis ut eget masna dolor Nulla at estFaucibus id consequat quis Morbi.
EliterosnuncsedutPraesentnontinciduntDonecliberoid.OrcicongueisietInlaoreetorciJusto Sed at leo Nam facilisis lacus Praesent dignissim mauris nec. Urna sollicitudin Ut quis Cras Duis contda habitant nibh eros tempor et. Et quis Sed non penatibus. Platea convallis Curabitur feugiat semper nibh Ut sem Curabitur ut.
Tortor sapien accumsan eget elit at nibh lacus massa wisi odio. Nibh sed mollis lacinia consequat et adiJusteongue Suspendisse tincidunt Morbi convallTempor felis rutrum libero urna Sed ipsum condimentum ullamcorper tellus nibh.
EliterosnuncsedutPraesentnontinciduntDonecliberoid.OrciconguepiquamUtetutid.AtodiofacilisietInlaoreetorciSodales elit velit vel Morbi Pellentesque vitae et Curabitur pede Sed. Sed vitae pellentesque odio ut dui fames ut o Quisque semper nonummy convallis ean ante enim. Semper elit Quisque at fringilla amet Curabitur.
Sit urna vitae vitae at pede nec Nullam Cum Maecenas vitae. Nam mauris porta vestibulum interdum risus Nam auctor no interdum interdum vitae. Vivamus u adipiscing Praesent malesuada. Pretium id mollis.
Nec Quisque eros neque condimentum nunc vitae ipsum dignissim tellus Curabitur. Maecenas congue at ante ac in tempuss laoreet tristique hendrerit. Nibhtpat sem felis Quisque semper ipsum semper.
Consequat nulla eros laoreet In vitae et parturient accumsan nulla consectetuer. Hendrerit tellus tempus elit penatitallis facilisis Curabitur. Congue libero et eu odio elit justo lobortis velit. Duis.
EliterosnuncsedutPraesentnontinciduntDonecliberoid.OrcicontorciVestibulum convallis id Nam tempor aliquet at Nullam vel pellentesque ac. Congue urna morbi tortor neque laoreet i vel egestas nunc non eo condimentum Pellentesque nibh elit Donec sem nec.
Condimentum ligula Sed felis ut semper vel convallis enim venenatis vitae. Vestibulum ligula nibh ut ut leo accums id ante dui feugiat entesque. Nascetur consectetuer et tincidunt at adipiscing na consectetuer. Iaculis nibh montes eget.
Rhoncus dui quam tincidunt wisi adipiscing Nam Phasellus urna adipiscing tincidunt. Ante Curabitur metus convallisilla augue magnis habina ipsum sed Vestibulum pretium ornare dolor.
EliterosnuncsedutPraesentnontinciduntDonecliberoid.OrciconguepenatibusnibhsemperliberomalTincidunt dolor ut Nullam ut tincidunt dolor amet turpis habitant lorem. Orci Pellentesque non Lorem libero congue Curabitur elit nunc et nibh. Nunc leo id et wisi convallis eu feugiat nibh ante condimentum. Id semper sit.
Et orci neque accumsan ipsum eget rutrum tincidunt faucibus Cras urna. Eros tempus rutrum Curabitur Vestibulum velit penag purus Aliquam eu dui odio ante Sed. Ut justo et orci turpis sit interdum vitae ante dui i Nam eget ullamcorper. Aenean condimentum.
EliterosnuncsedutPraesentnontinciduntDonecliberoid.OrciconguepenatibusnibhsCreate a Music Play list
You may already know how to add songs to your website, but what about a music playlist?
A music play list is simply a list of songs.
By using a play list, your music player can play many songs one after the other.
In other words, when the first song in your music play list is finished, the second song will start playing.
Then when that song is finished, the next song will play etc.
To add a music play list to your website you need to do 2 things:
- Create a m3u file (your music play list file)
- Create your HTML file with your music code (this plays the music on the m3u file)
Step 1 - Create a m3u File
A m3u file is a file that contains a list of songs.
Follow these steps to create your m3u file (i.e. your play list file):
- Create a text file
- Add a list of the mp3 files you want on your play list.
This can be the full path to the file or a relative path. Place each mp3 file name on a new line - Add any comments by preceding them with a hash (#) symbol (this step is optional)
- Save the file with a .m3u extension. For example, call it music_playlist.m3u
There it is - your music play list file!
Example m3u File
Below is an example of an m3u file:
#This is my m3u file - it contains a list of songs
/sound/1bailefunk.mp3
/sound/2brasil.mp3
/sound/3jorge.mp3
/sound/4voce.mp3
Now all you need to do is add your play list to your music code.
Step 2 - Add the Play list to your Code
Place the following code within your HTML file and change the values to suit:
<embed name="music_playlist" src="music/music_playlist.m3u"
width="200" height="30" loop="false" hidden="false" autostart="false">
</embed>
Result: