Link to home
Start Free TrialLog in
Avatar of Debora_D
Debora_D

asked on

Ap Div and contents do not display in IE 7

I have a website: www.vmstek.com. The right sidebar is an AP div. The div and its content do not display in IE7. It does display in Firefox for Windows, and IE 9 Beta. I need to get this fixed.
The div id is sidebar2.

Also, W3C says there are some javascript errors...however Dreamweaver created the code and I do not have any javascript  training...just basic HTML and CSS.
body
{
font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;	
background-color:#A1AA80;
margin:0px;
}

/* ~~ This fixed width container surrounds all other divs ~~ */
.container {
	width: 960px;
	background: #FFFFFF;
	margin: 0 0 0 40px; /* the auto value on the sides, coupled with the width, centers the layout */
	border: 2px solid #82A06A;
	line-height: 20px;
}

/* ~~ The header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo. ~~ */
.header {
	background-repeat: no-repeat;
	text-align: left;
	height: 240px;
	background-image: url(images/header_bg.png);
	letter-spacing: normal;
	padding-top: 10px;
	padding-left: 10px;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:11px;
	font-weight:bold;
	line-height:22px;
	color:#000000;
}
.sidebar1 {
	float: left;
	width: 250px;
	font-family: Tahoma, Verdana, Geneva, sans-serif;
	background-color: #666;
	padding:80px 0 0 0;
	font-size: 30px;
	font-weight: normal;
	color: #FFF;
	text-transform: none;
	text-align: center;
	height: 589px;
	font-variant: normal;
	line-height: 35px;
}
.content {
	padding:40px 0 0 10px;
	width: 500px;
	float: left;
	height: 585px;
}
.homeContent {
	padding: 40px 0 0 10px;
	width: 500px;
	float: left;
	height:590px;
	background-repeat: no-repeat;
	background-position: left bottom;
	background-image: url(images/index_bg.jpg);
}
	
.services {
	padding: 40px 0 0 10px;
	width: 500px;
	float: left;
	height: 585px;
	background-repeat: no-repeat;
	background-position: left bottom;
	background-image:url(images/service_bg.jpg)
}
.content form{
	color:#666;
}
.content form p {
	margin: 0 0 5px 20px;
	}
	.content input.text:focus,
	.content textarea:focus{
		background: #E5EDC4;
		}
#sidebar2 {
	position:absolute;
	width:185px;
	z-index:4;
	left: 811px;
	top: 210px;
	background-color: #E5EDC4;
	border: 3px solid #82A06A;
	text-align: left;
	padding: 10px 0 0 0;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:9px;
	line-height:14px;
	color:#2C2A27;
	height:600px;
}
#tektronix {
	float: left;
	width: 260px;
	padding-left: 20px;
}
#dkTechnologies {
	float: left;
	width: 200px;
	padding-left: 10px;
}
#apDivcontact {
	position:absolute;
	top: 830px;
	width:185px;
	height:165px;
	z-index:3;
	left: 817px;
	text-align:center;
	background-color: #FFF;
	padding-top:20px;
}
.footer {
	clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
	color: #FFF;
	font-size: 11px;
	background-color: #666;
	height:80px;
	padding-top: 15px;
	padding-left: 275px;
}
.footer a:link {
	color:#FFF;
	text-decoration: none;
}
.footer a:visited {
	color:#FFF;
	}

.footer a:hover, a:active, a:focus {
		}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
	padding: 0;
	margin: 0;
	display: inline;
	list-style-type: none;
}
	
h1, h2, h3, h4, h5, h6, p {
	margin-top: 0;	 /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
	padding-right: 15px;
	padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
	border: none;
	margin: 10px 20px 0 0;
}

/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
	color: #82A06A;
	text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
	color: #690;
	text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
	text-decoration: none;
	color: #9FC02B;
}
.fltrt {
	float: right;
}
#sidebar2 a img {
	margin-top: 10px;
	margin-right: 10px;
}
.red {
	font-size: 18px;
	color: #863120;
}

Open in new window

Screen-shot-2011-03-15-at-11.33..png
Screen-shot-2011-03-15-at-11.35..png
Avatar of Roman Gherman
Roman Gherman
Flag of Moldova, Republic of image

Hi,
Change the z-index for your side bar to a bigger one.

Avatar of Debora_D
Debora_D

ASKER

Thanks, I have already changed it from 2 to 4....do you really think is should be higher? What increments do you suggest?
I went from 4 to 6 without any success....I'm still perplexed.
aha,
got it,
z-index is ok.
remove position: absolute; from #sidebar2 CSS

Sigh,
Removing position:absolute blows up the design in every browser.
The only other position that doesn't blow up the design is position;fixed;
However, that has the same problem: It doesn't show up at all in IE 7.
I think some kind of conditional comment is in order, but I  have no idea what to say:
!important....if IE please don't make my div disappear!
Ok,
I have tested this in all browsers.
Add back position: absolute
and before <div id="sidebar2"> add <div style="clear:both"/>
You are a GENIUS!
Thank You!


ASKER CERTIFIED SOLUTION
Avatar of Roman Gherman
Roman Gherman
Flag of Moldova, Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes Roma!
I definitely want you to get all the credit you deserve ~ I thought I had done that...forgive me if I've not followed protocol..I'm new to all of this.