/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] issues with divs

I’ve been working on this ALL day, and can’t figure out why I’m getting these errors.

this is concerning the footer on my page at [url]http://www.foremostgroups.com/dev/2007corporate/corporate_information3.html[/url]

The footer looks fine on Firefox and IE7, but in IE6 there are a few issues:

1) The ‘site map’ link disappears for some reason, and
2) The ‘container’ div has a border around it, but in IE6, it adds a couple of lines before the end of the div.

I’ve been working on this for 6hours and can’t figure out why this is happening. Does anyone have any ideas?

Here’s the footer HTML:

[CODE] <div id=”footer_div”>
<div id=”footer_legal_notice”><a href=”legal_notice.html” class=”footer”>Legal</a> | <a href=”privacy_notice.html” class=”footer”>Privacy Notice</a></div>
<div id=”footer_copyright”><span class=”copyright”>Copyright &copy; 2007 Foremost Groups Inc. All rights reserved.</span></div>
<div id=”footer_site_map”><a href=”site_map.html” class=”footer”>Site Map</a></div>
</div>[/CODE]

and the CSS:

[CODE]* {position:relative; margin:0; padding:0;}
#footer_div {width:750px; height:18px; background-image:url(../images/footer/bottom.jpg); background-repeat:no-repeat; float:left;}
#footer_legal_notice {width:200px; top:3px; left:5px; text-align:left; vertical-align:top;}
#footer_copyright {width:350px; top:3px; text-align:center; vertical-align:top;}
#footer_site_map {width:200px; top:3px; right:5px; text-align:right; vertical-align:top;}[/CODE]

Thanks so much for any help.

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelSep 10.2007 — <!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=iso-8859-1" />

<meta http-equiv="Content-Style-Type" content="text/css" />

<meta http-equiv="Content-Script-Type" content="text/javascript" />

<title></title>

<style type="text/css">

* {border:0; padding:0; margin:0;}/* Set everything to "zero" */

html, body {min-height:100%; height:101%; font-size:100.1%;

padding-bottom:25px; /* IE does not understand "margin-bottom" on BODY, so this */

font:x-small Arial, Verdana, sans-serif;

voice-family: ""}"";voice-family:inherit;

font-size:small;/*for IE 5.5 */}

html>body {font-size:small; height:auto;}/* Assist IE6 and earlier, 100% height */

font-size: small; voice-family: ""}"";

voice-family: inherit; font-size: medium} /* Assist IE rendering height, keyword-font sizes, etc. */

p {font-size:0; font-size:1.0em; line-height:1.0em; margin:16px 0 12px 0;}

h1, h2, h3, h4, h5, h6 {font-size:0; font-family: 'times new roman', arial, verdana, helvetica, sans-serif; background-color:none;

font-style:normal; font-variant:normal; font-weight:normal; margin:14px 0 4px 10px;}

h1 {font-size: 1.5em;}

h2 {font-size: 1.4em;}

h3 {font-size: 1.3em;}

h4 {font-size: 1.2em;}

h5 {font-size: 1.1em;}

h6 {font-size: 1.0em;}

</style>

[B]<style>

* {position:relative; margin:0 2px 0 2px; padding:0;}

#footer_div {width:750px; height:22px; background: transparent url(../images/footer/bottom.jpg)no-repeat;}

#footer_legal_notice {width:220px; top:3px; left:5px; text-align:left; float:left;}

#footer_copyright {width:370px; top:3px; text-align:center;float:left;}

#footer_site_map {width:150px; top:3px; right:5px; text-align:right;float:left;}

</style>[/B]


<script type="text/javascript"><!--

// -->

</script>

<link rel="shortcut icon" href="favicon.ico" /><!-- path to your favicon -->

</head>

<body>

[B]<div id="footer_div" style="border:1px solid gray">

<div id="footer_legal_notice" style="float:left;;"><a href="legal_notice.html" class="footer">Legal</a> | <a href="privacy_notice.html" class="footer">Privacy Notice</a></div>

<div id="footer_copyright" style="width:360px; float:left;"><span class="copyright">Copyright &copy; 2007 Foremost Groups Inc. All rights reserved.</span></div>

<div id="footer_site_map" style="float:left;"><a href="site_map.html" class="footer">Site Map</a></div>

</div>[/B]


</body>

</html>[/QUOTE]
Simple. 5-min. fix. ? Same look for Fx & IE6
Copy linkTweet thisAlerts:
@dtm32236authorSep 11.2007 — that worked!

thanks so much WebJoel.
Copy linkTweet thisAlerts:
@WebJoelSep 11.2007 — No probs.

What I would have done though, -instead of four DIVs for this, I'd have used a single "<ul>" with three "<li>"s, inline, each "li" being 1/3rd the width of the UL, and pad, center or float the contents of each to some semblance of 'positioned'. In fact I started doing that, but found that it actuallly looks better a bit right-justified (because spacially, "[U]Site Map[/U]" is so much shorter than the "[U]Legal | Privacy Notice[/U]" links). And using the least amount of 'floats' makes fixing float-errors later on, easiest. ?

Anyway, -glad it worked out. ?
×

Success!

Help @dtm32236 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...