How to set only the blank parts on both sides of the web page to add background, and the background color in the middle remains unchanged.
The description is not detailed enough...is this what it means?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>HTML</title> <meta name="author" content="admin" /> <!-- Date: 2012-08-09 --> <style type="text/css"> body{ background-image: url("http://www.zastavki.com/pictures/1280x1024/2008/Photoshop_Wolf_005239_.jpg") ; background-repeat: repeat-x; } div{ height:100%;width:800px;border-left: 1px solid #000;border-right: 1px solid #000;position: absolute;background-color:#ddd;left:25%; } </style> </head><body><div></div></body></html>
www.kuailebi .com means that there are blank spaces on both sides after opening this website. I want to fill the blank spaces on both sides of this website (all pages) with a background color or a background image, and ignore the background color in the middle.
Website css code
Just change body and #wrap to the background or color you want
body{font:12px/18px 宋体;color:#494949;background-color:#000 }#wrap{width:994px;margin:0 auto;background-color:#fff}