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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
A problem with extra space surrounding my footer
Old 08-07-2008, 03:04 PM A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Hello everyone. I'm designing a site and I've encountered an issue with the footer.

http://www.drawninwardmedia.com/other/DIG/index.html

Above is a link to the test site. I haven't tested it in IE, but in Firefox and Safari there is extra space surrounding the footer. Below I've included the the html and css markup. If anyone has any suggestions they would greatly be appreciated.

CSS

/*----HTML ELEMENTS----*/


/*--------Body--------*/

body {
text-align: center;
background-image: url(../images/bg.jpg);
background-repeat: repeat;
}

p, a, h1, h2 {
font-family:Arial, Helvetica, sans-serif;
}

/*--------end of body--------*/

/*----END OF HTML ELEMENTS----*/


/*----PAGE ELEMENTS----*/


/*--------Container--------*/

#container {
margin: 0 auto;
width: 740px;
background-color: #FFFFFF;
border: 1px solid #FFFFFF;
}

/*--------end of container--------*/


/*--------Header--------*/

#header {
width: 740px;
}

/*--------end of header--------*/

/*--------Nav Bar--------*/

#navbar {
width: 740px;
}

/*--------end of nav bar--------*/

/*--------Right Column--------*/

#right_column {
float: right;
width: 465px;
}

/*--------end of right column--------*/

/*--------Content--------*/

#content {
width: 417px;
background-image: url(../images/rightcorner_lock.jpg);
height: 577px;
background-repeat: no-repeat;
}

#content a {
color: #93b896;
font-size: 12px;
text-decoration: none;
}
#content a: hover {
color: 7b8fb4;
text-decoration: none;
font-size: 12px;
text-decoration: none;
}
#content a: visited {
color: #93b896;
font-size: 12px;
text-decoration: none;
}
#content h1 {
font-size: 24px;
color: #75b080;
padding-top: 75px;
}
#content h2 {
font-size: 12px;
color: #5b73a1;
}
#content p {
color: #494c53;
font-size: 12px;
text-align: justify;
padding-right: 25px;
padding-left: 25px;
}
.pad_lock_top {
float: right;
margin-top: 105px;
}

/*--------end of content--------*/

/*--------Left Column--------*/

#left_column {
float: left;
width: 261px;
background-image: url(../images/leftbar.jpg);
height: 577px;
}

.button {
margin-right: 26px;
margin-top: 150px;
}

/*--------end of left column--------*/

/*--------Line Break--------*/

#line_break {
clear: both;
height:0;
line-height: 0;
display:block;
font-size: 1px;
}

/*--------end of line break--------*/

/*--------Footer--------*/

#footer {
width: 740px;
background-color: #808080;
background-image: url(../images/corner_lockbottom.jpg);
background-repeat: no-repeat;
background-position: 545px top;
}

#footer a {
color: #5B5B5B;
text-decoration: none;
}
#footer a: hover {
color: #FFFFFF;
}
#footer a: visited {
color: #FFFFFF;
}
#footer p {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #5b5b5b;
text-align: center;
}

.pad_lock_bottom {
z-index: 1;
}

/*--------end of footer--------*/


/*----END OF PAGE ELEMENTS----*/


HTML

<!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" />

<title>Dean Insurance Group: Home Page</title>
<style type="text/css">
<!--
@import url("style_sheets/site-style.css");
-->
</style>
</head>

<body>

<div id="container">
<div id="header"><img src="images/Header.jpg" width="740" height="125" alt="Dean Insurance Group: Making Insurance Easy Since 2008" /></div>
<div id="navbar">
nav bar
</div>
<div id="right_column">
<div id="content">
<h1>"Making Insurance Easy"</h1>
<p>
We listen to your needs before providing you a solution. Being independent allows us to offer that solution with the best price and coverage possible. Instead of being tied to one company we will give you more than one choice, and guide you though the process.
<br />
<br />
Your insurance agent will guide you through any type of personal coverage you need. Contact us now to see what our friendly agents can do for you.
</p>
<br />
<img src="images/cornerlock_top.jpg" class="pad_lock_top" width="150" height="201" alt="padlock" />
</div>
</div>
<div id="left_column">
<img src="images/leftbar_button.jpg" class="button" width="212" height="54" alt="Get a free quote" />
</div>
<div id="line_break">
</div>
<div id="footer">
<p align="center">
<a href="#">HOME</a> <a href="#">AUTO</a> <a href="#">LIFE/HEALTH</a> <a href="#">CONTACT</a> <a href="#">CLAIMS</a>
</p>
<hr width="75%" align="center" color="#919191" />
<p align="center">&copy; 2008 Dean Insurance Group, All Rights Reserved</p>
</div>
</div>
</body>
</html>
ADeacon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-07-2008, 03:16 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
#footer p {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #5b5b5b;
text-align: center;
}
Add this to the above:
margin: 0;

That will close the gap.
In FF 3, the lock image in the footer is about 3px too far to the right, if you change the bg position to 542px, it'll line up.
__________________
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 08-07-2008, 03:27 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Thank you very much. That remedied the extra space on the bottom of the footer. However, there is still a space between the content and the footer. Could this be an issue with the height of the image in the left column? I can't find anything else in the code that could be problematic.

I updated the code on the test site and below is the new page

http://www.drawninwardmedia.com/other/DIG/index.html
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-07-2008, 03:42 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The space is coming from the default margin of the <p> that contains your nav links in the footer. I don't see the margin: 0; rule in your CSS under #footer p
__________________
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 08-07-2008, 03:51 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
I did add the {margin: 0;} to the #footer p. This is the updated CSS:

/*----HTML ELEMENTS----*/


/*--------Body--------*/

body {
text-align: center;
background-image: url(../images/bg.jpg);
background-repeat: repeat;
}

p, a, h1, h2 {
font-family:Arial, Helvetica, sans-serif;
}

/*--------end of body--------*/

/*----END OF HTML ELEMENTS----*/


/*----PAGE ELEMENTS----*/


/*--------Container--------*/

#container {
margin: 0 auto;
width: 740px;
background-color: #FFFFFF;
border: 1px solid #FFFFFF;
}

/*--------end of container--------*/


/*--------Header--------*/

#header {
width: 740px;
}

/*--------end of header--------*/

/*--------Nav Bar--------*/

#navbar {
width: 740px;
}

/*--------end of nav bar--------*/

/*--------Right Column--------*/

#right_column {
float: right;
width: 465px;
}

/*--------end of right column--------*/

/*--------Content--------*/

#content {
width: 417px;
background-image: url(../images/rightcorner_lock.jpg);
height: 577px;
background-repeat: no-repeat;
}

#content a {
color: #93b896;
font-size: 12px;
text-decoration: none;
}
#content a: hover {
color: 7b8fb4;
text-decoration: none;
font-size: 12px;
text-decoration: none;
}
#content a: visited {
color: #93b896;
font-size: 12px;
text-decoration: none;
}
#content h1 {
font-size: 24px;
color: #75b080;
padding-top: 75px;
}
#content h2 {
font-size: 12px;
color: #5b73a1;
}
#content p {
color: #494c53;
font-size: 12px;
text-align: justify;
padding-right: 25px;
padding-left: 25px;
}
.pad_lock_top {
float: right;
margin-top: 105px;
}

/*--------end of content--------*/

/*--------Left Column--------*/

#left_column {
float: left;
width: 261px;
background-image: url(../images/leftbar.jpg);
height: 577px;
}

.button {
margin-right: 26px;
margin-top: 150px;
}

/*--------end of left column--------*/

/*--------Line Break--------*/

#line_break {
clear: both;
height:0;
line-height: 0;
display:block;
font-size: 1px;
}

/*--------end of line break--------*/

/*--------Footer--------*/

#footer {
width: 740px;
background-color: #808080;
background-image: url(../images/corner_lockbottom.jpg);
background-repeat: no-repeat;
background-position: 542px top;
}

#footer a {
color: #5B5B5B;
text-decoration: none;
}
#footer a: hover {
color: #FFFFFF;
}
#footer a: visited {
color: #FFFFFF;
}
#footer p {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #5b5b5b;
text-align: center;
margin: 0;
}
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-07-2008, 08:36 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I had no problem viewing your CSS before
I see it looks fine in Firefox 2 and 3 - it's not pretty in IE6 though.
__________________
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 08-08-2008, 02:41 AM Re: A problem with extra space surrounding my footer
Junior Talker

Posts: 3
Name: Vesi
Trades: 0
add padding:0px; to #footer p
and try to add both margin:0 and padding:0 to #footer
killerqueen is offline
Reply With Quote
View Public Profile
 
Old 08-08-2008, 11:40 AM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Yeah, I usually build code to work in Safari and Firefox, and then make a deal with the devil so it can work in IE. I'll try the method suggested. Thanks.
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-08-2008, 12:08 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
I uploaded the new CSS/HTML. I added {padding; 0;} to #footer p and {margin; 0; padding: 0;} to #footer and I'm still encountering issues.

http://www.drawninwardmedia.com/other/DIG/index.html

Does anyone else have any suggestions?
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-08-2008, 03:14 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Looks fine in FF, the problem (as usual), is with IE6.
You need to put 24px of right padding on the padlock top image, but your'e going to have to put that in your separate css file for IE.
__________________
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 08-11-2008, 12:27 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Is the site not displaying with 20 pixels of dead space between the content and the footer, breaking the lock into a top and bottom part?
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-11-2008, 12:49 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Nope.
Which browser are you seeing that in ?
__________________
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 08-11-2008, 12:51 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Safari and Firefox. Can you send me a screen grab if you can. I have the latest versions of both and there is a break between at the content and the footer on my end.
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-11-2008, 01:07 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Sure - screen grab attached - Firefox 3.01
Attached Images
File Type: jpg DIG_index.jpg (98.5 KB, 4 views)
__________________
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


Last edited by LadynRed; 08-11-2008 at 01:09 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-12-2008, 12:01 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
I fixed the issue. Cut the height on my right column and the image dropped in place. Now I just need to clean the page up. Thanks for the help. I'll leave the link to the revised page below. It isn't anywhere near finish and I'm still trying to correct cross browser blunders, but any other suggestions would be greatly appreciated.
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-12-2008, 12:02 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
http://www.drawninwardmedia.com/other/DIG/index.html
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-12-2008, 03:26 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
It's not centered any more - at my resolution - 1280x1024, its over to the left and not centered.
__________________
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 08-14-2008, 12:44 PM Re: A problem with extra space surrounding my footer
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Yeah, I was just seeing how it would look without being centered. I'm waiting on more art assets, so I'm just messing with the design a little. Do you think it looked better centered?
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 08-14-2008, 02:23 PM Re: A problem with extra space surrounding my footer
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yes, I do think it looked better centered
__________________
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
 
Reply     « Reply to A problem with extra space surrounding my footer
 

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.01655 seconds with 13 queries