why wont my image show up? :(

This is a discussion on "why wont my image show up? :(" within the Web Page Design section. This forum, and the thread "why wont my image show up? :( are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 19th, 2007, 15:23
Junior Member
Join Date: Jun 2007
Location: uk
Age: 23
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
why wont my image show up? :(

Hi

this is really frustrating, my image wont show. please help me. the image that i cant get to show up is the maingb.jpg image under the header tag. the directory url cant be wrong because the background image for the body works and the image is in the same folder.

this is my css code

Code: Select all
/* CSS Document */
body { 
  margin:0px; 
  text-align: center; 
  color: white; 
  background: #aed0e4 url(images/background.gif) repeat-x fixed top    left;
 
}   
#container
{
  position: absolute;
  top: 3%;
  left: 11.5%;
  margin: auto;
 
  width: 746;
  height: 710;
  border-left: 1px solid #999999;
  border-right: 1px solid #999999;
 
}
#header {
    background: url(images/mainbg.jpg) no-repeat;
 
}
and this is my html code:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
 
  <title>Portfolio v1</title>
  <link href="layout.css" rel="stylesheet" type="text/css"/>
  </head>
 
  <body>
 
    <div id="container">
            <div id="header">
</div>
 
    </div>
 
  </body>
</html>
Reply With Quote

  #2 (permalink)  
Old Jun 19th, 2007, 15:31
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: why wont my image show up? :(

You need to specify a height in the #header

Code: Select all
#header {
    background: url(images/mainbg.jpg) no-repeat 0 0;
    height: 250px; 
}
if that doesn't work ... give us a link.
Reply With Quote
  #3 (permalink)  
Old Jun 19th, 2007, 15:42
Junior Member
Join Date: Jun 2007
Location: uk
Age: 23
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: why wont my image show up? :(

omg! thank you so much!!
Reply With Quote
  #4 (permalink)  
Old Jun 20th, 2007, 15:10
Up'n'Coming Member
Join Date: Jun 2007
Location: Germany
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: why wont my image show up? :(

I had the same problem, and I fixed it by saying background-image: url (....)!
Reply With Quote
  #5 (permalink)  
Old Jun 20th, 2007, 17:12
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: why wont my image show up? :(

You need to specify a height to div containing only a background since a background is not content.
Reply With Quote
Reply

Tags
css, image

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Background image won't show up casho Web Page Design 7 Mar 5th, 2008 09:04
Can't get a large image to show up tseyigai Flash & Multimedia Forum 2 Jan 7th, 2008 20:12
link padding wont show up in IE rhpenguin Web Page Design 4 Dec 3rd, 2007 19:20
[SOLVED] Background Image wont be at bottom defy Web Page Design 7 Nov 9th, 2007 20:33
help..image wont display shotokan99 PHP Forum 0 Jun 27th, 2007 03:41


All times are GMT. The time now is 08:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43