4/3/2021: Today, I learned how to add scrolling/floating text to a website. Please follow the steps below to add one to yours.
<marquee>I wanna scroll with it, baby!</marquee>
The code is from Make Use Of (MUO) . The marquee tag is basically a unique and usually forgotten tag that creates the scrolling banner effect so it's super easy to use and super cool!
<marquee>This is scrolling text! It can be used to flash announcements. You might see it on a clothing website to advertise sales or on a weather site to report dangerous weather or news!</marquee>
I chose to do internal CSS to make things easier. I changed the background color and font:
<marquee style=background-color:lightblue;font-family:verdana;>This is scrolling text! It can be used to flash announcements. You might see it on a clothing website to advertise sales or on a weather site to report dangerous weather or news!</marquee>
You can't get the full idea with a picture, but the text basically scrolls across the top like an announcement banner.
3/5/2021: Today, I learned how to add a scrollable text box to my website. Please follow the steps below to add one to yours. (The directions I followed online were meant for an all-HTML text box, but I ended up improvising and adding some CSS to format the scrollable text box for my website.
<div style="width: 25%; height: 50px; overflow: auto; scrollbar-face-color: #CE7E00; scrollbar-shadow-color: #FFFFFF; br /scrollbar-highlight-color: #6F4709; scrollbar-3dlight-color:#11111; scrollbar-darkshadow-color: #6F4709; br /scrollbar-track-color: #FFE8C1; scrollbar-arrow-color: #6F4709;">
Putting some text in this box will let you see how large it can stretch to - eventually the scrollbars should show, enabling you to scroll through the text. That's it! :)</div>
The code is from Make Use Of (MUO)
<div style="width: 25%; height: 50px; overflow: auto; scrollbar-face-color: #CE7E00; scrollbar-shadow-color: #FFFFFF; br /scrollbar-highlight-color: #6F4709; scrollbar-3dlight-color:#11111; scrollbar-darkshadow-color: #6F4709; br /scrollbar-track-color: #FFE8C1; scrollbar-arrow-color: #6F4709;">
**Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.**</div>
^^This is the filler text that I used.
<div style="font-family: arial; padding-left: 4%; padding-right: 4%; justify-content: center; text-align: center; width: 92%; height: 100px; overflow: auto; scrollbar-face-color: #CE7E00; scrollbar-shadow-color: #FFFFFF; br /scrollbar-highlight-color: #6F4709; scrollbar-3dlight-color:#11111; scrollbar-darkshadow-color: #6F4709; br /scrollbar-track-color: #FFE8C1; scrollbar-arrow-color: #6F4709;">
^^This is how I changed up the code. I changed the font family, aligned the text center, centered the actual box on my page using padding, and adjusted the height and width.
<div id="scrollbox" style="font-family: arial; padding-left: 4%; padding-right: 4%; justify-content: center; text-align: center; width: 92%; height: 100px; overflow: auto; scrollbar-face-color: #CE7E00; scrollbar-shadow-color: #FFFFFF; br /scrollbar-highlight-color: #6F4709; scrollbar-3dlight-color:#11111; scrollbar-darkshadow-color: #6F4709; br /scrollbar-track-color: #FFE8C1; scrollbar-arrow-color: #6F4709;">
^^First, I named the div "scrollbox" and made it an id because I'm only using it once. This is still in the HTML file.
#scrollbox
{
color: #B46203;
margin-bottom: 3%;
}
^^Next, I added this to my CSS. All I needed to do was change the text color and add a margin to the bottom so that the text box wouldn't be right on top of the footer. With that, I was finished! See below for the final product:
I tried to take an animated photo from my phone to show you the scrolling feature. Sorry for all the weird lines from the screen-to-screen capture, but I hope you get the idea of the feature.
2/5/2021: Today, I learned how to add a tab icon to my website. Please follow the steps below to add one to yours.
First, I brainstormed ideas for an icon. Since my website is all about my crochet projects and it has an orange theme, I wanted to find some kind of classic knitwear that shared the orange color.
I used the website icons8.com/icons/ to search free icons.
By searching the keyword "knit," I found the perfect orange beanie. I downloaded the image for free as a PNG file.
Next, I needed to convert the PNG to a .ico file for any browser to recognize the image as an icon. I used the free file converter from hnet.com/png-to-ico/ to download the image as a .ico file.
Next, I moved to .ico file, which I named beanie.ico, to the images folder for my website.
Finally, I added a line of code to the <head> section of my HTML in order to tell it where to find beanie.ico. I got the code from carlos-r-mendoza.github.io/how-to-add-a-browser-tab-icon-to-your-website . See the code that I used below.
<link rel="shortcut icon" href="images/beanie.ico">
** Put in <head> section of HTML5 sheet.
Replace "beanie.ico" with the name of your file.
See the top left corner of the image where the tab is displayed. The regular globe icon has been replaced with the beanie!