Background image overlaping footer image at bottom of div

This is a discussion on "Background image overlaping footer image at bottom of div" within the Web Page Design section. This forum, and the thread "Background image overlaping footer image at bottom of div are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 18th, 2006, 15:55
New Member
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Background image overlaping footer image at bottom of div

Newbie here,

I have created a 3 colums CSS based template, both columns collapse if there is no content. Now, there is IE issue with the image that I am trying to place at the bottom of the column.

Here is that portion of the index file:

<?php if (mosCountModules('left') > 0) {?><div class="left"><?php mosLoadModules('left', -3);?></div><?php } ?>

<?php if (mosCountModules('right') > 0) {?><div class="right"><?php mosLoadModules('right', -3);?><div class="right_footer"></div></div><?php } ?>


The right_footer class is what is causing the problem in IE, in FF I have a nice rounded cornered image to the footer of the column, in IE, the image that I am using for the background (right class), seems to extend beyond the footer image I have created.

Here is the CSS from the template, you will notice that I have used the IE hack to position the images better in IE but I can't get the above problem solved:

.right
{
float:right;
padding: 5px 0 0 20px;
background: url(../images/rightbg.gif) repeat-y;
width: 200px;
}
html>body .right
{
/*margin-top: -56px;*/
float:right;
padding: 5px 0 0 20px;
background: url(../images/rightbg.gif) repeat-y;
width: 200px;
}

.right_footer {
float: right;
margin-left: -30px;
width: 220px;
height: 14px;
background: url(../images/rightbg_footer.gif) no-repeat;
}

html>body .right_footer {
float: right;
width: 220px;
height: 14px;
background: url(../images/rightbg_footer.gif) no-repeat;
}

Thanks for any help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 18th, 2006, 18:51
New Member
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Background image overlaping footer image at bottom of div

Been trying to get this working all day, still no joy. Here is a screenshot to help people visualise, I will try and upload the to a remote server if it will help, I am working locally at the moment.

The first is the image is from Firefox on the mac, displayed how I would like, the second in IE on the PC.

Thanks.
Attached Images
File Type: gif working.gif (1.1 KB, 60 views)
File Type: gif notworking.gif (1.3 KB, 66 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 20th, 2006, 23:08
Reputable Member
Join Date: Feb 2006
Location: London
Age: 26
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Re: Background image overlaping footer image at bottom of div

Quote:
Originally Posted by lw_d
I will try and upload the to a remote server if it will help
If you attach the necessary files I'll have a look...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 20th, 2006, 23:10
New Member
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Background image overlaping footer image at bottom of div

I actuallly got it working by adding the following:

* {margin:0;padding:0}

I should have set my margings to zero from the off.

Thanks for your offer to help though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 21st, 2006, 00:27
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Background image overlaping footer image at bottom of div

Quote:
Originally Posted by lw_d
I actuallly got it working by adding the following:

* {margin:0;padding:0}

I should have set my margings to zero from the off.

Thanks for your offer to help though.
You sure that didn't screw up other things though? Because the asterisk "hack" will make EVERYTHING lose padding and margin, including things that have it by default (such as <p> elements).

I use the following CSS on every site; it declares the asterisk "hack", but then redefines all other property:values as I want them...
Code: Select all
/*====================
Global Styles
======================*/
* {
margin: 0;
padding: 0;
}
body, html {
color: #444;
}
body {
font: 85% Trebuchet MS,Verdana,Arial,sans-serif;
line-height: 1.6em;
background: #fff;
}
/*====================
Link Styles
======================*/
a:link {
color: #00c;
}
a:visited {
color: #90c;
}
a:focus {
color: #06c;
}
a:hover {
color: #9c3;
}
a:active {
color: #f90;
}
/*====================
Heading Styles
======================*/
h1,h2,h3,h4,h5,h6 {
color: #000;
font-family: Verdana,Arial,Helvetica,sans-serif;
}
h1 {
font-size: 1.8em;
margin: 0 0 .9em;
}
h2 {
font-size: 1.6em;
margin: 0 0 .8em;
}
h3 {
font-size: 1.4em;
margin: 0 0 0.7em;
}
h4 {
font-size: 1.2em;
margin: 0 0 .6em;
}
h5 {
font-size: 1em;
margin: 0 0 .5em;
}
/*====================
Image Styles
======================*/
img {
border: 0;
margin: 0;
padding: 0;
}
/*====================
List Styles
======================*/
dl, ol, ul {
margin: 0 0 1em;
}
dt {
font-weight: bold;
}
dd {
margin: 0 0 0 3em;
}
ul {
padding:0 0 0 3em;
}
ol {
padding: 0 0 0 3em;
}
li {
margin: 0 0 0 .5em;
}
/*====================
Quote Styles
======================*/
blockquote {
margin: 1em 0;
padding-left: 20px;
}
/*====================
General Styles
======================*/
code, kbd, pre {
font-family: Courier, "Courier New", Tahoma;
}
ins, del {
font-style: italic;
}
del {
text-decoration: line-through;
}
p {
margin: 1em 0;
}
abbr, acronym, dfn {
cursor: help;
}
fieldset {
border: 0;
margin: 0;
padding: 0;
}
label {
display: block;
}
/*====================
Common Layout Styles
======================*/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
background, image, overlaping, footer, bottom, div

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing bottom border from image links dulcificum Web Page Design 4 Jun 5th, 2008 23:47
Problems with Footer - IE6 adding space below image ?? slimboyfatz32 Web Page Design 7 Feb 29th, 2008 21:03
[SOLVED] Background Image wont be at bottom defy Web Page Design 7 Nov 9th, 2007 20:33
Problem with my footer background image in IE dthomas31uk Web Page Design 3 Jul 1st, 2007 12:49
Repeating an image along the bottom of the page without setting it as background. imagius Web Page Design 9 Apr 27th, 2007 08:35


All times are GMT. The time now is 22:19.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved