Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Ap Div and contents do not display in IE 7

Posted on 2011-03-15
9
848 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 9

Expert Comment

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

0
 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

792 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