in some divs i have created the background is not showing,
if someone can pls help me
this is the 1st website i ever do. i have learnt through some tutorials online and im not really an expert in css.
i have problems with the divs that have the following ids and classes: calendar, social and newsletter.
here is my html code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Medline Events - Corporate Events Managers</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script src="includes/jquery-1.4.2.js" type="text/javascript"></script>
<script src="jQuery/js/jquery.jsocial.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryImageLoader.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryImageSlideShow.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryPanAndZoomPlugin.js" type="text/javascript"></script><script type="text/javascript">
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
</script>
<link href="jQuery/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2149023" binding="#social" />
<oa:widget wid="2141542" binding="#ImageSlideShow" />
</oa:widgets>
-->
</script>
<link href="Spry-UI-1.7/css/SpryImageSlideShow.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* BeginOAWidget_Instance_2141542: #ImageSlideShow */
#ImageSlideShow.ImageSlideShow {
width: 1000px;
height: 280px;
overflow: hidden;
z-index: 2;
}
#ImageSlideShow .ISSClip {
background-color: #000000;
}
</style>
</head>
<body>
<div class="header"></div>
<div class="container">
<div class="ban"><a href="index.html"></a><img src="banner4.jpg" width="800" height="259" /></div>
<ul id="ImageSlideShow">
<li><a href="eventsbg.jpg"><img src="eventsbg.jpg" alt="" width="130" height="105" /></a></li>
<li><a href="Foto_conference_room.jpg"><img src="Foto_conference_room.jpg" alt="" width="114" height="57" /></a></li>
<li><a href="meeting1.JPG"><img src="meeting1.JPG" alt="" width="96" height="106" /></a></li>
<li><a href="meeting2.jpg"><img src="meeting2.jpg" alt="" width="92" height="95" /></a></li>
<li><a href="rand4.jpg"><img src="rand4.jpg" alt="" width="89" height="95" /></a></li></ul>
<script type="text/javascript">
// BeginOAWidget_Instance_2141542: #ImageSlideShow
var ImageSlideShow = new Spry.Widget.ImageSlideShow("#ImageSlideShow", {
widgetID: "ImageSlideShow",
injectionType: "replace",
autoPlay: true,
displayInterval: 8000,
transitionDuration: 2000,
componentOrder: ["view"],
plugIns: [ Spry.Widget.ImageSlideShow.PanAndZoomPlugin ]
});
// EndOAWidget_Instance_2141542
</script>
<div class="maincontent">
<div class="right_column">
<div id="calendar">
<table width="100%" border="1" align="center" cellpadding="1" cellspacing="1" id="table">
<tr>
<th colspan="7" valign="top">March 2011</th>
</tr>
<tr style="font-family: Verdana; font-size:x-small">
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th>Sat</th>
</tr>
<tr align="left" valign="top" style="font-family: Verdana; font-size:x-small">
<td> </td>
<td> </td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr align="left" valign="top" style="font-family: Verdana; font-size:x-small">
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
</tr>
<tr align="left" valign="top" style="font-family: Verdana; font-size:x-small">
<td>13</td>
<td>14</td>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
</tr>
<tr align="left" valign="top" style="font-family: Verdana; font-size:x-small">
<td>20</td>
<td>21</td>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
</tr>
<tr align="left" valign="top" style="font-family: Verdana; font-size:x-small">
<td>27</td>
<td>28</td>
<td>29</td>
<td>30</td>
<td>31</td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
<div class="social">Social</div>
</div>
<div class="content"><div class="sidebar">
<ul class="nav">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About us</a></li>
<li><a href="#">Our Services</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">Contact us</a></li>
</ul>
</div>
<h1>EXPERIENCE THE DIFFERENCE...</h1>
<div align="center"> </div>
<p><img src="" alt="" name="banner" width="50" height="250" id="img" /></p>
<div class="txt">
<p>At <strong>MEDLINE events</strong>, we provide unique and creative services for your corporate events. Whether you want to organize business conferences, press events, product launchings, employee trainings, or any other kind of event, we are the <em>right</em> pick for you.</p>
<p>With the topmost level of quality and professionalism, we offer you <em>fully tailored services</em> that are feasible, efficient and carefully planned. From design to implementation, our account managers will handle every aspect of your event to the tiniest detail making it <em>successful</em> and <em>memorable</em>.</p>
</div>
<div class="newsletter">Newsletter\</div>
</div>
<br class="clearfloat"/>
</div>
</div>
<div class="footer">
<p>© February, 2011- Medline Events - All Rights Reserved</p>
</div>
</body>
</html>
Text ID: BACKGROUND_IN_SOME_DIVS_NOT_SHOWING_IN_BROWSERS_BUT_SHOWING_IN_DREAMWEAVER
To add a comment, please Log in.
The problem is "auto - auto"
by Jesper-k on March 13, 2011
I guess you are refering to the classes with "background-image: xxx.jpg".
some of the images contains " " in the filename. This tells me, that you use space within the filename. That causes problems showing the image, specially using certain webservers.
Another problem lays in the commands "margin-left: auto; margin-right: auto", wich causes some browsers to collaps the tag, instead of adjusting to the height of the content.
I hope theese two issues can help you..