Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-07-2013, 06:51 AM   PM User | #1
vipercode
New Coder

 
Join Date: Jan 2013
Posts: 21
Thanks: 13
Thanked 0 Times in 0 Posts
vipercode is an unknown quantity at this point
CSS Load Image Not Working

I have problem my top images not load for some reason other one has. Any ideas the top menu bar showing but rest not

CSS Code Layout
html,body {
background: #e7e7e7;
font-family: Arial, Helvetica, sans-serif;
color: #202020;
padding: 0px;
margin: 0px;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0px auto -60px;
}
#top-menu {
height: 57px;
width: 100%;
background-image: url(../images/top-menu-bg.jpg);
}
#top-row {
background-image: url(../images/top-bg.png) top left repeat-x;
width:100%;
}
#top-bg {
background-image: url(../images/top-row-bg.png) top center no-repeat;
width:100%;
}

HTML Code Layout

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Website Home</title>
<link rel="stylesheet" href="css/template.css" type="text/css">
</head>
<body>
<!--Wrapper-->
<div id="wrapper">
<!--Top-Menu-->
<div id="top-menu">

</div><!--Top Menu Div End-->

<div id="top-row">
<div id="top-bg">
</div>
</div>

</div><!--Wrapper Div End-->
</body>
</html>
vipercode is offline   Reply With Quote
Old 01-07-2013, 03:42 PM   PM User | #2
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 906
Thanks: 4
Thanked 212 Times in 211 Posts
tracknut is an unknown quantity at this point
If you're talking about top-row and top-bg, they have no size, and no content to create a size, so there's nothing to display. You'd need to add a height to them, or put in some content, to see the background image start appearing.

Dave
tracknut is offline   Reply With Quote
Old 01-09-2013, 03:11 PM   PM User | #3
L0adOpt1c
New Coder

 
L0adOpt1c's Avatar
 
Join Date: Jan 2013
Location: <bed />
Posts: 95
Thanks: 0
Thanked 7 Times in 7 Posts
L0adOpt1c is an unknown quantity at this point
Have you tried possibly loading your images in the HTML instead of the CSS? That would make it easier to edit positions. That way you can have a ballpark position before you start slinging CSS properties.
L0adOpt1c is offline   Reply With Quote
Reply

Bookmarks

Tags
css, html

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:38 AM.


Advertisement
Log in to turn off these ads.