You are here: Home > Patterns repository > Content presentation > Copy box

Copy box

Print versionEdit this page
CocoaDevCentral-Copybox.png http://cocoadevcentral.com (Jul 2003)

Problem

Copy-paste operations on a Web page are often difficult, especially when the to-copy-selection extends over multiple lines - all to easily you select too much (the entire page) or you miss some characters.

Motivation

A webpage presents information that the user needs to copy (and paste into another application). TO WRITE...

Solution

Create a rectangular shaped area (a box) that indents from the body text. Give the box a border and/or a distinct background color.

Diagram

Use when

Implementation

  1. Formatted HTML: for small to large content; harder to copy; easier to view (top example)
  2. A textarea of a form: for larger content; easier to copy; harder to view (example from Moock below)

Examples

example.png Example from http://snipsnap.org (Oct 2002)

Copybox_Moock_20030914.png Example from http://www.moock.org/blog/archives/000044.html (14 Sep 2003). This is an actual form textarea - this makes copying easier, but you need to scroll the box to see the whole contents.


Connections

Literature


Authors:
-- ArthurClemens - 14 Sep 2003