Skip to main content

How Do I Add Backgrounds and Borders to Improve the Look of My Page?

  • Chapter
Getting StartED with CSS
  • 868 Accesses

Abstract

The secret of good web design is drawing the visitor’s eyes to important parts of the page. Images, borders, and background colors all help to break up the page and focus attention. The images you inserted in the exercises in the previous chapter not only look attractive, they tell the visitor what the Grand Canyon looks like. But images can also serve another purpose—decorative touches that please the eye and give a unified look to the site. Rather than littering the HTML markup with purely decorative images, it’s preferable to add them as background. Although some HTML tags allow you to add background images, the options are very limited. CSS, on the other hand, gives you an amazing amount of control over the location and appearance of background images.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 24.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2009 David Powers

About this chapter

Cite this chapter

Powers, D. (2009). How Do I Add Backgrounds and Borders to Improve the Look of My Page?. In: Getting StartED with CSS. Apress. https://doi.org/10.1007/978-1-4302-2544-7_5

Download citation

Publish with us

Policies and ethics