473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

images not showing up in DIV

Hello,

this is my code and i use FF

.main {
position:absolute;
margin-left:-100px;
width:600px;
height:682px;
z-index:3;
left:100px;
top:148px;
background-color:000000;
<img src="http://i53.photobucket.com/albums/g77/t3nnisstud/O3redoverlay.jpg">
}

for some reason the image doesn't show up.
can someone tell me why?
i get the bckground color but no image.
May 9 '07 #1
2 3503
Is this your css file if it is you need to put the image tag in your html file with the div class i.e
html file
<div class = "image">
<img src = "image.jpg">

css file

.image {
float:left;
width: 20%;
border: thin solid black;
padding: 10px 20px 40px 5px;
margin: 50px;
font-family:arial;
}
this is within a box but if you fiddle it should be fine
May 9 '07 #2
drhowarddrfine
7,435 Expert 4TB
Unless he's trying to make it a background image. In that case, your image tag in the css won't work because it's html. Do this in your css instead:
Expand|Select|Wrap|Line Numbers
  1. background-image:  url("http://i53.photobucket.com/albums/g77/t3nnisstud/O3redoverlay.jpg")
May 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Wayne | last post by:
I have a script that uses filesystemobject that reads files from a given path, in my case images. It is running on a server that is 2000 adv svr w/ all current patches. The script prior to some...
1
by: Bob Bedford | last post by:
I've about 50`000 jpg images on a dir. Some images have a white frame, other only 2 white lines, sometimes vertically, sometimes horizontally. I've to show those image on a darkgrey background,...
5
by: vanisathish | last post by:
Hi I have an application, which has to change to different images based on some conditions. I am trying to call a javascript function(this function changes the images on the front end) from the...
11
by: Ian Davies | last post by:
Hello Im having problems displaying my images as thumbnails in a table. My code for producing the new width and height from the original image is as follows...
1
by: lewindha | last post by:
Hi guys I am new to ASP and .Net. I am working a web app where some Crystal Reports will be incorporated. Right now I am trying to get a simple report with a bar graph to show up in a browser....
2
by: Carl Gilbert | last post by:
Hi I am developing a site that has 5 or 6 thumbnail pages each with 28 image on each. Each thumb nail has a matching larger image. So 5/6 groups of 28. When the user clicks on one of the...
7
by: justshezi | last post by:
HI All i have a ASP,NET Web application and then images are not showing in IE on windows XP but they are workign OK with WIndows 2K. Can anyone help me out here. Regards, shez !!
0
by: Svein Erik | last post by:
I'm developing an application in C#.NET 2005. The app is going to have an image with a specific size, let's say 800x600 px, this is a map of a go-cart lane. And on top of this image i'm going to...
1
by: ttamilvanan81 | last post by:
Hai everyone, i am new to javascript. Now i have doing one Image gallary application. In that application i have upload two images, one for Befor image and another one for after image. All...
5
by: tshad | last post by:
I am using VS 2008 and in my aspx page my images are showing with squigly lines (technical term) and saying that image not found. But when it runs it finds them fine. The images are defined: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.