Double Border BackGround
Learn to create Double Border Background pages without the need for tables! Use the CSS border property together with the background image property, to style easy to build, beautiful pages that will add a touch of "CSS class" to graphic collections, poetry collections, personal webpages and more.
A double border background CSS tutorial
This so easy! Adding styled backgrounds and borders without all the hassle of table layouts is extremely simple. All it takes is one main div for your content and a little cascading style sheet magic!
The Double Border Background CSS Template makes it very easy to add your own special background images, adjust the margins, padding and borders, and style your text. Also included is the code for MSIE CSS custom colored scrollbars. Users of the Opera 7 browser can now enable custom colored scrollbars as well. All it takes is a simple addition to the Opera6.ini file. [ Opera custom scrollbar colors ]
The code template also includes the XHTML 1.0 Transitional doctype which allows for use of older HTML coding methods while providing a means for validation. To copy the use the code template, just place your cursor anywhere within the text area below. All the code is automatically select, simply key "ctrl + c" or "right-click, copy". Paste the Double Border Background CSS Template to your favorite HTML editor, change the backgound image code to reference your own favorite background tiles or image and there you are!
Double Border Background Template copy & paste code
What makes it all so simple is that all of your own additional page elements are placed in the content div
<div
id="content"></div> —images will automatically be centered due to the CSS text-align: center
declaration in the body style. The "align" attribute has been deprecated and should no longer be used in your page
code. Use CSS Float in its place, besides
being easier, it allows more control options. If you wish to do is float images left, or right, simply add either
of the supplied classes to chosen image as in this example:
<img class="l" src="float-left.jpg" />.
Whether you are a beginning user of Cascading Style Sheets, or an advanced coder, you will find this double border background template easy to use.
The CSS Triple Border Background Tutorial
The technique is far simpler than might be imagined. So simple in fact, you might soon forget you ever used tables to achieve a similar effect! All it takes is one nested div and a little bit of CSS style! Learn how in the CSS Triple Border Background Tutorial.
Want more CSS background image techniques? Learn to create beautiful CSS background image picture frames. This incredibly simple technique will win you over with stunning results! Without a doubt, this will be one hot new CSS technique! Once again Papabaer delivers: The CSS Border Image Frame Technique. Do you need textures for your backgrounds? It's easy with Paint Shop Pro - Textured Background Tutorial.
Helpful references: HTML Named Colors | HTML Named Colors Gray Shades | Character Entity HTML Reference ]
[ Return to Top of Page | Access Key list | BIG BAER ]