Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

WBR HTML Tag

Submitted by on October 19, 2009 – 5:44 amNo Comment

The <wbr> is very useful tag but unfortunately even the most of experienced HTML designers do not know about it.

Let’s view how this tag can help us in HTML design.

Anybody knows how <br> tag works: it is a line break. And it is able to do wonders with clear="all" attribute ignoring even above floats.

Let we have a word containing from 100 (or 1000) symbols without spaces. How usual HTML page will appear? Of course, it will stretch in horizontal!

<wbr> tag covers this situation. Being inserted to the appropriate code segments, it makes the required breaks only if a word doesn’t fit its container.

For example:

HTML code

Appearance on a page

<div style="width:90px; border:1px solid #666;">
XXXX<wbr>XXXX<wbr>XXXX<wbr>XXXX<wbr>XXXX<wbr>XXXX
</div>

XXXX XXXX
XXXX XXXX
XXXX XXXX

So, <wbr> (word break) means that browser may insert a line break here. If the browser does not think a line break necessary nothing happens.

This tag is used with the <nobr> tag, <wbr> advises the extended browser when it may insert a line break in an otherwise nonbreakable sequence of text. Unlike the <br> tag, which always causes a line break, even within a <nobr>- tagged segment, the <wbr> tag works only when placed inside a <nobr>- tagged content segment and causes a line break only if the current line has already extended beyond the browser's display window margins.

For example:

<nobr>
This is a very long sequence of text that is
forced to be on a single line, even if doing so causes
<wbr />
the browser to extend the document window beyond the
size of the viewing pane and the poor user must scroll right
<wbr />
to read the entire line.
</nobr>

This will produce a single line because of <wbr> tag. You can check it through online practice.

The WBR tag is supported by many versions of Internet Explorer (5.5, 6.0, 7.0, 8.0) and Safari (1.3, 2.0, 3.1)

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.