Working on my website recently and created a multi-level unordered list. The spacing of the second level indent was much more than I needed and I wasn’t loving the fact that the bullets were the same for both levels.
I found code to solve both those problems, so as usual, I’m posting it here for my future reference and, hopefully, to help someone else looking to solve the same problems.
I changed the second level bullet style to square and reduced the second level indent to 15px. Here’s a screen shot of my final list, followed by the code snippets I used:
Continue reading “html lists: indent spacing and change bullet styles”
Here’s a little code snippet you can add to a link so that when someone hovers their mouse over the link, a “tooltip” is displayed, giving them more information. In the example shown below, the image of Dorothy looking out her window is a link to download an audio clip of the theme of the Wicked Witch. The tooltip I added displays the target post’s title “free ringtone: wicked witch of the west” when the mouse hovers over the image.
A simple way to add a tooltip to an image link is to add the following code immediately following the link target:
<span title=”your tooltip language goes here”></span>
For an example of how this was used in the image above, check out the sample code below.
The tooltip code appears highlighted on line 4:
<span title="free ringtone: wicked witch of the west">
<img class="alignnone size-large wp-image-685"
style="border: 1px solid #000000;"
w=474" width="474" height="700" /></span></a>
As you might expect, the tooltip code isn’t limited for use with an image link. It can also be used with a text link, again, just by adding it immediately following the link target and before the </a>
(hover over the following text to view the tooltip)
Wicked Witch of the West Theme Song
Here’s what the code from the above text link looks like:
<span title="free ringtone: wicked witch of the west">Wicked Witch of the West Theme Song
To add a tooltip to plain text, it’s even simpler:
<span title=”your tooltip language goes here”>Text to be hovered over.</span>
Historically, I’ve created faux letterhead to be used when letters were to be sent via fax. More recently, they are used for letters to be sent as PDF attachments via email.
The reasoning behind this is to save money on pre-printed stationary letterhead. Economically, there’s no reason to print a letter on this expensive paper when the recipient will never actually touch it.
First, I re-create the content and format of a client’s pre-printed letterhead using the same fonts and layout as the printed version. The goal is that the recipients of these letters won’t notice a difference between the paper letters they receive from a firm via USPS and the letters they receive from the same firm via fax or email.
Continue reading “create faux letterhead for fax and pdf attachments.”
Occasionally, I’ve needed to protect a portion of a Word template from accidental editing. There are many reasons to do this, but one example – the one I’ll be using in this particular #pragmaticcomputertip – is to protect the content and formatting of what I call “faux” letterhead. (Note: This tip applies to MS Word 2007 and later.)
Click HERE to read the previous #pragmaticcopmutertip about creating faux letterhead. After finalizing, it’s a good idea to to be protect that section of the form against accidental editing. Here’s how that’s done:
Continue reading “prevent editing in a Section of a MS Word template/document”