Software, your way.
How To Get Good Custom Software
(Download)
(PDF)
burger menu icon
WillMaster

WillMaster > LibraryGenerators and Converters

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Attention-Getting Inserts (with Generator)

What is demonstrated here is not a lot of trouble. It's easy, in fact.

But, why do it at all?

To get attention.

How To Do Article Inserts

I'm talking about inserts where the text flows around it. An example is on the right. Notice how the text you're reading flows around the left of the insert.

The insert can be an ad, a famous quote, a quote pulled from the article itself, a testimonial, or a limited-time offer.

I have often wondered how it is that every man loves himself more than all the rest of men, but yet sets less value on his own opinion of himself than on the opinion of others. — Marcus Aurelius, philosopher (121-180), in Meditations

The insert can be text, image, the controls for a sound bite, even a form.

The insert can be inserted from the right of the text, like the above example. It can be inserted into the left of the text, like the quote on the left. And, as you've undoubtedly noticed, they can be packed together.

Inserts too close together can appear cluttered.

Notice that many inserts, close together, are distracting and may unintentionally confuse your site visitor.


The Generator

Below is a generator that provides the HTML code to insert into your own web pages.

Note that the generator is within an IFRAME. This means the generated HTML code will appear in the same place where the form is submitted. (The rest of this page won't need to reload.)

So go ahead and use the form. Then read the rest of this article while the code is being generated for you.

CSS Values

Sizes can be specified with a number followed by a unit of measure:

    300px (No spaces)

    px (for pixels) | pt (for points) | em (for ems)

Colors can be specified with hexadecimal value or color name:

    #FFFFFF (hexadecimal) | white (color name)

Borders must have a size specified before they will print.

Border type - examples:

    dotted | solid | double

For most applications, it is best to insert the HTML code immediately above the beginning of a paragraph or other block of text. The top of the insert will then be horizontally lined up with the first line of the text, unless you've specified a top margin.

Inserting into the middle of a block of text has two drawbacks.

  1. Some browsers put space above the insertion.
  2. When editing the text in the portion above the insertion, the text may wrap differently, making it necessary to reposition the insert.

Please feel free to bookmark this page and use the generator whenever you wish.

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2024 Will Bontrager Software LLC