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
Need Header & Footer Troubleshooting Help
Old 09-21-2010, 01:28 PM [Resolved] Need Header & Footer Troubleshooting Help
Novice Talker

Posts: 14
Trades: 0
I need an extra set of eyes to troubleshoot an existing website…

I decided to re-write the stylesheet (from a previous outsourcer) because it was too code heavy and in the process i've managed to move the footer to the far right of the main content instead of falling to the bottom. Also, when I add a transparent image to the header, I'm losing the header bg. Oh, and there's an added empty line between the nav image and the main content.

I’ve mucked around with this for so long that I’ve lost track of what I’m looking for and can’t “see” the problems.

Anyone feel like taking a stab at this??

I uploaded the original site to http://offlinenet.com/test1 and the “do over” is at http://offlinenet.com/test1/do-over

Thx in advance for your help :)



<body>
<div id="heading">
<div id="container">

<div id="logo">
</div> <!-- END LOGO -->

<ul id="nav">
</ul> <!-- END NAV -->

<div align="center"> <!-- BEGIN Image Map -->
<img src="image.png" border="0" width="897px" height="227px" usemap="#map" />
<map name="map" id="map">
<area shape="rect" coords="10,46,142,218" href="#" />
<area shape="rect" coords="159,71,291,218" href="#" />
<area shape="rect" coords="306,85,439,218" href="#" />
<area shape="rect" coords="456,87,590,217" href="#" />
<area shape="rect" coords="605,72,739,217" href="#" />
<area shape="rect" coords="754,48,889,218" href="#" />
</map>
</div> <!-- END CENTER --> <!-- END Image Map -->
</div> <!-- END CONTAINER -->
</div> <!-- END HEADING -->

<div class="main">

<div class="left">
</div> <!-- END LEFT -->

<div class="right">
</div> <!-- END RIGHT -->

</div> <!-- END MAIN -->

<div class="clear"></div>

<div id="footer">
<div class="footer-container">
<div class="wrapper">
<div class="fleft">
<img src="image.png" alt="" />&copy; All Rights Reserved
</div>

<div class="fright">
<a href="#" target="_blank">Privacy</a>&nbsp; | &nbsp;
<a href="#" target="_blank">About Us</a>&nbsp; | &nbsp;
<a href="#" target="_blank">Contact</a>&nbsp; | &nbsp;
<a href="#" target="_blank">Home</a>
</div>

</div> <!-- END WRAPPER -->
</div> <!-- END FOOTER-CONTAINER -->
</div> <!-- END FOOTER -->
</body>



CSS

#container { margin:0 auto; width:960px; position: relative; font-size:.8525em; }
.wrapper { width:100%; overflow:hidden; }
.clear {clear: both and height: 0}
#heading { height:380px; overflow:hidden; background:url(images/bg-hdrx.jpg) 0 0 repeat-x; }

#map { margin-left: 30px; }
.main {margin:0 auto; width:891px; }
.main .left {float:left; padding:0 20px 0 45px;width:550px;font-size:.95em;}
.main .right {float:left; background:url(images/content-separator.png) no-repeat; padding:0 51px 0 33px; width:187px; height: 313px; font-size:.95em; }
.main .right {overflow:visible; zoom:1;}

#footer {color:#000000; padding:20px 0 22px 0; border-top:5px solid #eee;}
#footer .footer-container { margin:0 auto; width:960px; font-size:.8525em;}
#footer .fleft { padding-left:20px; width:550px; overflow:hidden; }
#footer .fright { padding-right:40px; width:250px; }
#footer .fleft img { margin-left:-20px; overflow:hidden; }

Last edited by vbasic; 09-22-2010 at 02:56 PM..
vbasic is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-21-2010, 04:05 PM Re: Need Header & Footer Troubleshooting Help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
1 - add overflow: auto to .main - you need to clear the floats so the container will 'shrink wrap' to it's contents. 2 - you replaced the sky background with the white background, so of course the clouds went away. The sun ray graphic is applied to #nav, which is only 135px high, not enough to display the full 278px height of the graphic.
__________________
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 09-21-2010, 04:34 PM Re: Need Header & Footer Troubleshooting Help
Novice Talker

Posts: 14
Trades: 0
hi LadynRed - yep, I keep getting told about the .clear div --- can't tell you how many times I looked at that..!! Sure enough, the footer moved..

Re: the transparent header image - don't want the clouds so that's ok. I can't decide whether to move the image to...
- the nav bg (lose the dark blue header bd when i move it here), or
- the logo bg (lose the nav buttons image map when i move it here)

Am thinking i need to wrap the nav section in another div to get the image map to display properly. I thought an image map would be quicker than good ol' coding. Go figure...
vbasic is offline
Reply With Quote
View Public Profile
 
Old 09-22-2010, 02:18 PM Re: Need Header & Footer Troubleshooting Help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Actually, you shouldn't use an image map for nav anyway, it's completely inaccessible.
__________________
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 09-22-2010, 02:55 PM Re: Need Header & Footer Troubleshooting Help
Novice Talker

Posts: 14
Trades: 0
re: image maps - yes, I don't think I'll spend much more effort using it again.

re: overall problems - found a useless "overflow" code that prevented the image from displaying properly. ...A good sleep and a few extra pairs of eyes and it's all good now. I love forums!
vbasic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need Header & Footer Troubleshooting Help
 

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 0.32749 seconds with 12 queries