Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Yet another DIV problem in Internet Explorer
Old 07-09-2008, 04:25 PM Yet another DIV problem in Internet Explorer
Junior Talker

Posts: 4
Trades: 0
Hi everyone!

I am having a huge problem getting footer div's to line up correctly in Internet Explorer.

Please check out the site:

Quote:
http://www.huronia.biz/site
See the problem at the bottom in I.E? Works fine in FF (except the links.php page I am screwing around with it)

They are half off the image. Here is my embedded stylesheet for this particular div:

Quote:
<!--
#apDiv9 {
position:absolute;
width:583px;
height:53px;
z-index:8;
left: 212px;
top: 688px;
}
Here is the complete code:

Quote:
<!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>
<style type="text/css"> <!-- A:link {
text-decoration:none;
color: #000000;
} A:visited
{
text-decoration:none;
color: #FF0000;
} --> </style>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/huronia-newest2_06_line.jpg);
background-repeat: repeat-y;
}
#apDiv1 {
position:absolute;
width:638px;
height:198px;
z-index:1;
left: 182px;
top: -1px;
}
#apDiv2 {
position:absolute;
width:182px;
height:115px;
z-index:2;
left: 8px;
top: -391px;
}
#apDiv3 {
position:absolute;
width:638px;
height:53px;
z-index:3;
left: 184px;
top: 193px;
}
#apDiv4 {
position:absolute;
width:637px;
height:80px;
z-index:4;
left: 184px;
top: 696px;
}
#apDiv5 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
#apDiv6 {
position:absolute;
width:200px;
height:115px;
z-index:5;
top: -1px;
left: -1px;
}
#apDiv7 {
position:absolute;
width:200px;
height:115px;
z-index:6;
left: -1px;
top: 489px;
}
#apDiv8 {
position:absolute;
width:184px;
height:115px;
z-index:7;
left: -1px;
top: 223px;
}
body,td,th {
font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<link href="stylesheet.css" rel="stylesheet"
type="text/css" />
<style type="text/css">
<!--
#apDiv9 {
position:absolute;
width:583px;
height:53px;
z-index:8;
left: 212px;
top: 688px;
}
.style1 {color: #FFFFFF}
#apDiv10 {
position:absolute;
width:321px;
height:410px;
z-index:9;
left: 222px;
top: 266px;
}
#apDiv11 {
position:absolute;
width:200px;
height:115px;
z-index:10;
left: 550px;
top: 288px;
}
a:hover {
color: #000000;
}
a:active {
color: #FF0000;
}
-->
</style>
</head>
<body>
<div id="apDiv1"><img
src="images/huronia-newest2_02_header.jpg" alt="Header"
height="197" width="638" /></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="apDiv2">
<div id="apDiv5"></div>
</div>
<div id="apDiv3"><img
src="images/huronia-newest2_03_welcome.jpg" height="46"
width="629" /></div>
<div id="apDiv4"><img
src="images/huronia-newest2_07_footer.jpg" align="absbottom"
height="78" width="637" /></div>
<div id="apDiv10">
<p>Welcome to the Huronia Area Aboriginal Management Board
website.&nbsp; We hope you find it informative and up to
date.&nbsp;&nbsp; </p>
<p>The Huronia Area Aboriginal Management Board will support the
building of strong Aboriginal communities to provide their members with
better employment and training opportunities.</p>
<p>The Huronia Area Aboriginal Management Board will increase the
capacity building, control, and responsibility for program design and
implementation within the Aboriginal communities.</p>
<p>The Huronia Area Aboriginal Management Board will meet the
special needs of Aboriginal people living in urban areas, youth, and
persons with disabilities.</p>
</div>
<div id="apDiv11"><img src="images/group_canoe4.jpg"
height="326" width="250" /></div>
<div id="apDiv6"><img
src="images/huronia-newest2_01_top_left.jpg" height="285"
width="184" /></div>
<div id="apDiv7"><img
src="images/huronia-newest2_07_bottom_left.jpg" height="287"
width="184" /></div>
<div id="apDiv8">
<div align="center">
<p><a href="index.php"><b
onmouseout="this.style.color = 'black';"
onmouseover="this.style.color
= 'red';" align="justify">MAIN</b></a></p>
<p><a href="about.php"><b
onmouseout="this.style.color = 'black';"
onmouseover="this.style.color
= 'red';" align="justify">ABOUT</b></a></p>
<p><a href="events.php"><b
onmouseout="this.style.color = 'black';"
onmouseover="this.style.color
= 'red';" align="justify">EVENTS</b></a></p>
<p><a href="programs.php"><b
onmouseout="this.style.color = 'black';"
onmouseover="this.style.color
= 'red';" align="justify">PROGRAMS</b></a></p>
<p><a href="services.php"><b
onmouseout="this.style.color = 'black';"
onmouseover="this.style.color
= 'red';" align="justify">SERVICES</b></a></p>
<p><a href="contact.php"><b
onmouseout="this.style.color = 'black';"
onmouseover="this.style.color
= 'red';" align="justify">CONTACT</b></a></p>
<p><a href="links.php"><b
onmouseout="this.style.color = 'black';"
onmouseover="this.style.color
= 'red';" align="justify">LINKS</b></a></p>
</div>
</div>
<div id="apDiv9">
<p class="style1"><a href="index.php">MAIN</a>
| <a href="about.php">ABOUT</a> | <a
href="events.php">EVENTS</a> | <a
href="programs.php">PROGRAMS</a> | <a
href="services.php">SERVICES</a> | <a
href="contact.php">CONTACT</a> | <a
href="links.php">LINKS</a> </p>
</div>
</body>
</html>
What can I do to fix this issue in I.E, without making it worse in FF?

Any help would be great!!!
missang24 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-09-2008, 06:22 PM Re: Yet another DIV problem in Internet Explorer
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
IE is probably choking on one of your validation errors http://validator.w3.org/check?verbos....biz%2Fsite%2F. Don't worry about the missing alt tags, for now, however, as they won't mess with a layout.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-09-2008, 08:13 PM Re: Yet another DIV problem in Internet Explorer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Your other BIG problem is all that absolute positioning, you really do not NEED all that at all. Learn to use the normal document flow and floats and you'll have less trouble. IE has some pretty ugly bugs when it comes to absolute positioning.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-10-2008, 08:47 AM Re: Yet another DIV problem in Internet Explorer
Junior Talker

Posts: 4
Trades: 0
Ok, thanks for your input guys / gals.

I still do not however, know how to fix the issue with the footer links being mispositioned at the bottom in I.E. ....

LadyinRed: I am a complete newb when it comes to CSS..... What do you suggest I change the position: absolute to? Do you think that should fix the issue all together?

Any help would be great on this, this is one of my beginner projects, and I am kind of on a deadline. I would appreciate any insight . Thanks again!
missang24 is offline
Reply With Quote
View Public Profile
 
Old 07-10-2008, 10:39 AM Re: Yet another DIV problem in Internet Explorer
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
She is just pointing out what she knows from many years of experience: that absolute positioning is a very ridged and fragile way to to build a webpage. Personally, I do use it, but sparingly.

I usually only use absolute positioning when I know the exact height and width of an element, and it is convenient for me to "nail down" the exact pixel location. I rarely use it for text areas, since it is better to use expanding divs for those areas. The most common item that I position absolutely is a logo. I also sometimes make false "image maps" with a background image and blank block-level anchor tags.

As far as the type of positioning you should be using, the answer is the default position: static (you don't need to specify this). However, changing all of the positioning to static will definately not fix things here, since static blocks don't react the the {top: ..px} and {left: ..px} commands.

So as far as being a beginner, and also on a tight deadline, you may be stuck with your choice for now, unless you are going to learn floating and clearing on a tight schedule.

As far as your footer problems, I suggest you create a conditional comment to send a rule only to IE, then put a larger margin on the top of it, or figure out another way to move it down some, only in that browser.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Yet another DIV problem in Internet Explorer
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.32302 seconds with 12 queries