Solved

Ap Div and contents do not display in IE 7

Posted on 2011-03-15
9
837 Views
Last Modified: 2013-12-08
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
0
Comment
Question by:Debora_D
  • 5
  • 4
9 Comments
 
LVL 9

Expert Comment

by:Roman Gherman
ID: 35141316
Hi,
Change the z-index for your side bar to a bigger one.

0
 

Author Comment

by:Debora_D
ID: 35141421
Thanks, I have already changed it from 2 to 4....do you really think is should be higher? What increments do you suggest?
0
 

Author Comment

by:Debora_D
ID: 35141484
I went from 4 to 6 without any success....I'm still perplexed.
0
 
LVL 9

Expert Comment

by:Roman Gherman
ID: 35141493
aha,
got it,
z-index is ok.
remove position: absolute; from #sidebar2 CSS

0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:Debora_D
ID: 35142281
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!
0
 
LVL 9

Expert Comment

by:Roman Gherman
ID: 35142411
Ok,
I have tested this in all browsers.
Add back position: absolute
and before <div id="sidebar2"> add <div style="clear:both"/>
0
 

Author Comment

by:Debora_D
ID: 35148784
You are a GENIUS!
Thank You!


0
 
LVL 9

Accepted Solution

by:
Roman Gherman earned 500 total points
ID: 35149004
Hi,
Well if this was solved using my support/fix, then I think I earned those points.

0
 

Author Closing Comment

by:Debora_D
ID: 35149978
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.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now