Mozilla’s Jen Simmons posted a video on YouTube recently talking about some new CSS for styling underlines, “text-underline-offset,” “text-decoration-thickness,” and “text-decoration-skip-ink.” The video I am referring to is embedded below and I added a few simple code examples down below as well.
I think these new styles will be useful and web developers can now stop using CSS borders to style underlines (for those that do) and use this new CSS instead. Just a heads up though, as Jen mentions in her video, that right now this new CSS only works in the Mozilla Firefox and Safari (and maybe soon in Chrome) web browsers.
A recent Chrome browser update brought “tab hover cards” which are small boxes that appear when you put your mouse on a tab. These boxes display the website’s “title” tag and domain name, as shown in the screenshot below.
Screenshot of Tab Hover Cards in Chrome
For me, these tab hover cards started to annoy me, as they block part of the address bar, so I disabled them. See down below for steps on how to disable tab hover cards.
Steps to turn off tab hover cards in Chrome
In the address bar, type in: chrome://flags/
Do a CTRL + F to bring up the “Find” search box and type in: Tab Hover Cards
When you find “Tab Hover Cards”, on the right there is a drop-down, change it from “Default” or “Enabled” to “Disabled”, and you are done
I was recently working on building a webpage and I ran into an issue where I wanted to add a circular border around an icon. I was using Bootstrap 4 for the page’s layout and Font Awesome for the icons. I tried a few things with Bootstrap’s border utilities but it couldn’t do what I wanted, so I searched online.
I was able to find this CodePen solution to my problem. I made some edits to the code for my webpage, which I have provided below.
I came across a few good articles, blog posts and tools that I wanted to share with you, from UX to avoiding bad habits and unprofessional vocabulary and more.
Promotion: Get 20% off with coupon code DISCOUNT20 – Coupon expires August 31st. Create your website today!
SurveyJS – An open-source Javascript survey library
Silent Sundays – A blog post from Jashele.blog, that talks about being a student software developer and how she took a break from learning and working on Sundays to avoid burnout. Also check out Jashele’s Silent Sundays, Part II blog post.
If you have any reactions or thoughts about these articles or tools listed, please let me know by leaving a comment.
I came across a few good resources I wanted to share with everyone, ranging from LinkedIn profile tips to job interview tips to optimizing Google fonts performance.
LinkedIn profile tips – Blog post from dev.to, you may not agree with every tip that is listed but they’re something to look at and consider
12 best job search websites – Blog post from roberthalf.com, with a list of job searching websites (a little arrogant of themselves to list their website as #1)
Optimizing Google Fonts Performance – Blog post from SmashingMagazine.com, where they give great tips on how to optimize load times for Google Fonts on your website
After watching a recent video posted by Google Chrome Developers on YouTube, I wanted to blog about using the “srcset” attribute in the “img” tag in your HTML code to make more web developers aware of this easy-to-use/add code that will help your website. Definitely make sure to watch the video and check out the example HTML code using “srcset” in an “img” tag all down below.
Reduce image size: use srcset to automatically choose the right image (from Google Chrome Developers YouTube channel)
So to implement the “srcset” attribute into your “img” tag all you need to do is use the HTML as in the below example.
As stated in the above video, the web browser will do all of the hard work as it will decide what image best fits on the website and if the web browser doesn’t support “srcset” then it will default to the image in the “src” attribute. Need more information about “srcset”? Then check out MDN’s documentation on responsive images.
After watching the above video, I came across another recent YouTube video that had a conference talk focused on modern image delivery techniques and what can be done to images to speed to up websites. I thought the presenter had some good informative points that all web developers should know about.
Fast and Beautiful Modern Image Delivery Techniques (from Coding Tech YouTube channel)
There are a lot of free online resources, including tutorials and courses. I put together a list of websites that offer free online courses that I wanted to share with others, hoping to help others. If you know of other websites that offer free online courses, please leave a comment. These websites are geared more toward courses on technical topics and coding/programming.
Here’s a quick tip that I thought would be helpful for others (and myself in case I forget in the future). I needed to take a screenshot of a website in the Chrome web browser and I remembered there was an option in the Dev Tools to do this but I couldn’t find it.
So I searched around online and found an answer, which is pretty simple and quick without having to install any extensions. Here’s what to do:
Open the Dev Tools (hitting the F12 key)
Press the “Ctrl”, “Shift” and “P” keys at the same time
Scroll down the list and find the light purple “Screenshot” rectangles and click the one with “Capture full size screenshot”
A prompt will come up asking you where to save the screenshot and you are done
My thanks go to hackernoon.com for the answer to my problem.
I have been taking a Javascript online course and we have been using “localStorage” to create a task list app. So I was wondering where does this actual data get stored because the data can be retrieved, edited and deleted so it must get saved somewhere. Since cookies aren’t being used I assumed the data was being saved in some text file somewhere locally on my computer. I did some searching online and found the answer to my question, which I thought I should share on the blog in case it can help someone else out there.
So first, there are two types of web storage, where data is stored locally in a user’s web browser. First, local storage, where the data stored has no expiration date and will persist after the web browser is closed. Second, session storage, where the data stored gets cleared after the web browser is closed.
So the data saved using web storage is stored locally on your computer. Each web browser has their own location to store this data. Looking at Wikipedia’s web storage page, it links to a few pages on StackOverflow (here and here) where others have listed the location of the saved data.
I also wanted to link out to the w3schools.com’s page on localStorage which has a quick simple example in Javascript showing how to set and retrieve data using localStorage.