1 reply [Last post]
stive
Offline
newbie
Ph
Last seen: 11 years 49 weeks ago
Ph
Joined: 2010-02-15
Posts: 1
Points: 2

Atention to all,i have some problem about CSS code,Pls help me guys'

<html>
<head>
<style type="text/css">
#example
 {
  background-image:url("Maple-leaves-autumn.jpg")#f4f3e1 no-repeat fixed left top;
 }
#example
 {
  width:795px;
  height:545px;
  padding:10px 10px 10px 110px;
  overflow:scroll;
  border:2px solid #090;
  color:#030;
 }
</style>
</head>
 
<body>
 <div id="#example">
 <p>
 </p>
</div>
</body>
 
</html>

WHat should i do ,please tell me my eror!and where my mistaken!
I hope you help me,tanks you so much!

AttachmentSize
Maple-leaves-autumn.jpg8.21 KB
Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

background-image:url("Maple-l

background-image:url("Maple-leaves-autumn.jpg")#f4f3e1 no-repeat fixed left top;

this is incorrect you are stating an individual background property then trying to state many background property values.

Change 'background-image' to 'background'

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me