i have a background image written into my css and it was displaying just fine a minute ago. now it's gone and i can't figure out why. any suggestions? here is the css and the html:
css*************
body
{
background-image: "WebGIFs/caduceus.gif";
background-repeat: no-repeat;
background-attachment: fixed;
font-family: Arial;
color: #000;
margin: 0;
padding: 15px;
}
div.images
{
float: left;
display: inline;
}
div #text
{
float: right;
display: inline;
}
h1
{
margin: 0;
float: right;
width: 500px;
font: 300% Times;
}
h2
{
margin: 0;
float: right;
width: 500px;
font: italic 150% Times;
color: #933;
}
img.left
{
display: block;
margin: 0 0 100px 0;
}
p.sub
{
float: right;
width: 500px;
font-size: 125%;
color: #933;
}
p
{
float: right;
width: 500px;
}
p.bio
{
color: #933;
}
html******************
<html>
<head>
<title>Alliance for Integrated Healthcare</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"samplebio.css">
</head>
<body>
<div class="images">
<img class="left" src=http://www.webdeveloper.com/forum/archive/index.php/"WebGIFs/practitioners/headshots/np.gif">
<img class="left" src=http://www.webdeveloper.com/forum/archive/index.php/"jpg/BRAINsm.jpg">
</div>
<h1>Nalini Prasad, M.D.</h1>
<h2>Board Certified Neurologist & Neurophysiologist</h2>
<p>
<strong>Office Locations:<br>
New Jersey Center for Healthy Living</strong><br>
292 Bloomfield Avenue 2nd Floor<br>
Montclair, NJ 07042<br>
<strong>Phone:</strong> (973) 233-0080<br>
<strong>Fax:</strong> (973) 233-0081
</p>
<p>
8103 Bergenline Avenue<br>
North Bergen, NJ 07047<br>
<strong>Phone:</strong> (201) 758-0660<br>
<strong>Fax:</strong> (201) 758-0635<br>
<strong>email:</strong> <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
</p>
<p class="bio">Dr. Nalini Prasad, M.D. is a Board Certified Neurologist and Neurophysiologist with over fifteen years experience treating patients with brain and neuromuscular disorders. She has an extensive background in treating conditions such as stroke, multiple sclerosis, myasthenia gravis, Parkinson's Disease, Alzheimer's Disease, epilepsy, migraine headaches, dizziness, vertigo, carpal tunnel syndrome, neck and back injuries.</p>
<p class="bio">Dr. Prasad is working to introduce a more complete approach to the treatment of several neurological conditions adding natural supplements and vitamins to the existing medical treatments. She also recommends the use of massage therapy, acupuncture, yoga, and relaxation techniques to accelerate the healing process.</p>
<p class="bio">Dr. Prasad uses the most advanced medical equipment to diagnose neurological conditions; she performs electro-diagnostic studies, EMG/NCV, EEG and Evoked Potentials in her offices. She is currently affiliated with UMDNJ and Meadowland Hospital Medical Center in Seacaucus, NJ, and is applying for affiliation with Columbus Hospital in Belleville, NJ.</p>
<p class="bio">The office accepts most health insurance plans, including Medicare, HMO's Workers Compensation and motor vehicle accident insurances. Appointments are given within two weeks and emergency walk-ins are accommodated.</p>
</body>
</html>change
background-image: "WebGIFs/caduceus.gif";
to
background-image: url('WebGIFs/caduceus.gif');--sry
(im too slow at answers!) ok. thanks.just use the same thing, it will go to the same place.
Here is kinda how this works:
Ill make a picture diagram, and reply back it 10-15 minutes from the time of this postOK, here is how it works:
Lets say you are woking in the file called index.html, and you decide to make a image, and put it into the folder called images. now to link to that file all you need to do is <img src=http://www.webdeveloper.com/forum/archive/index.php/"images/image1.jpg"> the first one is the folder, and the one after that with the file extension is the file, so if you were going to place it in a folder within the images folder, you would link to it like this:
<img src=http://www.webdeveloper.com/forum/archive/index.php/"images/images/image1.jpg">.
Say you have a file that is in the root folder, but your in a different folder, you would like to it like this <img src=http://www.webdeveloper.com/forum/archive/index.php/"/image1.jpg">
If you have a folder that is in a different folder off of the root folder, you would link to it like this:
<img src=http://www.webdeveloper.com/forum/archive/index.php/"/images/image1.jpg">
When ever you want to add a file, and it is in a different folder, you always need to start in the root folder, and to start in the root folder, you always start the value with a / sign.
Well that is basically how it works, and if you already knew that, then who ever doesn't just learned something new, if not then there you go any questions PM me.
css*************
body
{
background-image: "WebGIFs/caduceus.gif";
background-repeat: no-repeat;
background-attachment: fixed;
font-family: Arial;
color: #000;
margin: 0;
padding: 15px;
}
div.images
{
float: left;
display: inline;
}
div #text
{
float: right;
display: inline;
}
h1
{
margin: 0;
float: right;
width: 500px;
font: 300% Times;
}
h2
{
margin: 0;
float: right;
width: 500px;
font: italic 150% Times;
color: #933;
}
img.left
{
display: block;
margin: 0 0 100px 0;
}
p.sub
{
float: right;
width: 500px;
font-size: 125%;
color: #933;
}
p
{
float: right;
width: 500px;
}
p.bio
{
color: #933;
}
html******************
<html>
<head>
<title>Alliance for Integrated Healthcare</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"samplebio.css">
</head>
<body>
<div class="images">
<img class="left" src=http://www.webdeveloper.com/forum/archive/index.php/"WebGIFs/practitioners/headshots/np.gif">
<img class="left" src=http://www.webdeveloper.com/forum/archive/index.php/"jpg/BRAINsm.jpg">
</div>
<h1>Nalini Prasad, M.D.</h1>
<h2>Board Certified Neurologist & Neurophysiologist</h2>
<p>
<strong>Office Locations:<br>
New Jersey Center for Healthy Living</strong><br>
292 Bloomfield Avenue 2nd Floor<br>
Montclair, NJ 07042<br>
<strong>Phone:</strong> (973) 233-0080<br>
<strong>Fax:</strong> (973) 233-0081
</p>
<p>
8103 Bergenline Avenue<br>
North Bergen, NJ 07047<br>
<strong>Phone:</strong> (201) 758-0660<br>
<strong>Fax:</strong> (201) 758-0635<br>
<strong>email:</strong> <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
</p>
<p class="bio">Dr. Nalini Prasad, M.D. is a Board Certified Neurologist and Neurophysiologist with over fifteen years experience treating patients with brain and neuromuscular disorders. She has an extensive background in treating conditions such as stroke, multiple sclerosis, myasthenia gravis, Parkinson's Disease, Alzheimer's Disease, epilepsy, migraine headaches, dizziness, vertigo, carpal tunnel syndrome, neck and back injuries.</p>
<p class="bio">Dr. Prasad is working to introduce a more complete approach to the treatment of several neurological conditions adding natural supplements and vitamins to the existing medical treatments. She also recommends the use of massage therapy, acupuncture, yoga, and relaxation techniques to accelerate the healing process.</p>
<p class="bio">Dr. Prasad uses the most advanced medical equipment to diagnose neurological conditions; she performs electro-diagnostic studies, EMG/NCV, EEG and Evoked Potentials in her offices. She is currently affiliated with UMDNJ and Meadowland Hospital Medical Center in Seacaucus, NJ, and is applying for affiliation with Columbus Hospital in Belleville, NJ.</p>
<p class="bio">The office accepts most health insurance plans, including Medicare, HMO's Workers Compensation and motor vehicle accident insurances. Appointments are given within two weeks and emergency walk-ins are accommodated.</p>
</body>
</html>change
background-image: "WebGIFs/caduceus.gif";
to
background-image: url('WebGIFs/caduceus.gif');--sry
(im too slow at answers!) ok. thanks.just use the same thing, it will go to the same place.
Here is kinda how this works:
Ill make a picture diagram, and reply back it 10-15 minutes from the time of this postOK, here is how it works:
Lets say you are woking in the file called index.html, and you decide to make a image, and put it into the folder called images. now to link to that file all you need to do is <img src=http://www.webdeveloper.com/forum/archive/index.php/"images/image1.jpg"> the first one is the folder, and the one after that with the file extension is the file, so if you were going to place it in a folder within the images folder, you would link to it like this:
<img src=http://www.webdeveloper.com/forum/archive/index.php/"images/images/image1.jpg">.
Say you have a file that is in the root folder, but your in a different folder, you would like to it like this <img src=http://www.webdeveloper.com/forum/archive/index.php/"/image1.jpg">
If you have a folder that is in a different folder off of the root folder, you would link to it like this:
<img src=http://www.webdeveloper.com/forum/archive/index.php/"/images/image1.jpg">
When ever you want to add a file, and it is in a different folder, you always need to start in the root folder, and to start in the root folder, you always start the value with a / sign.
Well that is basically how it works, and if you already knew that, then who ever doesn't just learned something new, if not then there you go any questions PM me.