Jump to content
  • 0

Не работает background-image для блока div


Quadder
 Share

Question

Не могу понять почему не работает свойство background-image для блока <DIV ID="HEADER"></DIV> картинка просто не появляется в блоке..я новичок, может кто знает в чем причина? Все картинки в папке images.

Сам код:


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<link href="style.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="js/custom.js"></script>
</head>
<body>
<div id="wrapper">
<div id="header">
</div>
<div id="nav">
</div>
<div id="content">
</div>
<div id="footer">
</div>
</div>
<body>
</html>

CSS:


* {
margin:0;
padding:0;
border:0;
}

body {
color: white;
padding:20px 40px 0px 40px;
}

#wrapper {
width:960px;
height:525px;
border:1px solid red;
}


#header {
[color="#4169E1"][b]background-image:url(images/logo.jpg) no-repeat;[/b][/color] <-- Не работает.. (
width:230px;
height:82px;
margin: 90px auto 22px 65px;
border:1px solid red;
}

#colens {
background-image:url (positiv.gif) no-repeat;
width:230px;
height:82px;
border: 1px solid red;
}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy