Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
DIV background image issues
Old 11-01-2011, 10:12 AM DIV background image issues
Junior Talker

Posts: 2
Trades: 0
Evening (from where I am anyways) everyone.

First time poster (yay) long time reader, you guys have helped me (and a lot of other people) out in the past - but here's one I still can't find a conclusive answer to.

I have my container, my header, then a main content div and 2 sidebar div's. Header image shows up, and 2 sidebar images show up - but for some unknown reason the main content image won't show.

I've validated the code, I've checked images are in the correct folders - but just won't work.

Enough rambling, here's the relevant CSS (not sure how to do it in it's own box, sorry):

Quote:
/*** Walls, floors, and ceilings ***/
.container {
width: 960px;
background: #a78d61;
margin: auto;
overflow: hidden;
}

.header {
background: #a78d61;
width: 960px;
height: 200px;
padding-bottom: 10px;
}

.content {
float: left;
margin-top: 10px;
margin-left: 15px;
margin-right: 15px;
margin-bottom: 10px;
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
width: 680px;
height: 770px;
background-image: url(../Images/contents.png);
background-repeat: no-repeat;
background: #a78d61;
}

.sidebar1 {
float: right;
margin-top: 10px;
margin-left: 15px;
margin-right: 15px;
margin-bottom: 10px;
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;
width: 180px;
height: 40px;
background: #a78d61;
background-image: url(../Images/sidebar1.png);
background-repeat: no-repeat;
padding-bottom: 10px;
}

.sidebar2 {
float: right;
margin-top: 10px;
margin-left: 15px;
margin-right: 15px;
margin-bottom: 10px;
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;
width: 180px;
height: 698px;
background: #a78d61;
background-image: url(../Images/sidebar2.png);
background-repeat: no-repeat;
}
HTML (not entirely relevant cause it's almost all just CSS at this stage):

Quote:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The Art of Deduction</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div class="container">

<div class="header">
<img src="Images/art-of-ded-final.jpg" alt="The Art of Deduction" />
</div>

<div class="sidebar1">
<p>Stuff goes in here</p>
</div> <!-- end .sidebar1 -->

<div class="content">
<p>Stuff goes in here</p>
</div> <!-- end .content -->

<div class="sidebar2">
<p>Stuff goes in here</p>
</div> <!-- end .sidebar2 -->
</div>
</body>
</html>
Okie dokie, I've checked all my uploaded files - Filezilla says they're all there. Check my resources in Chrome and it doesn't show that image as being there. So ... yeah.

Any help would be amazingly appreciated.

Thanks in advance
Robodashy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-01-2011, 10:21 AM Re: DIV background image issues
Junior Talker

Posts: 2
Trades: 0
Actually I apologise - issue fixed. I'm not even entirely sure I know what was wrong. But my editor was displaying incorrectly which lead me to fixing that issue which fixed the actual issue. Sorry for taking up your time.
Robodashy is offline
Reply With Quote
View Public Profile
 
Old 11-01-2011, 02:23 PM Re: DIV background image issues
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
No worries, first time's on the house
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to DIV background image issues
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22337 seconds with 12 queries