Web Design Forum: body bg image position - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

body bg image position

#1 User is offline   Final 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 46
  • Joined: 25-March 09
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 13 April 2009 - 10:54 PM

heya
Im trying to get the landscape background image to sit at the bottom of the page, at the moment it only seems to want to align to the bottom of the last div instead of riht at the bottom of the screen.
Any help much appreciated

Visit My Website
0

#2 User is offline   bocaj 

  • Retired
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 3,402
  • Joined: 11-January 09
  • Reputation: 99
  • Gender:Male
  • Location:New Sarum
  • Experience:Web Guru
  • Area of Expertise:Entrepreneur

Posted 13 April 2009 - 11:01 PM

woah that sent my firebug a little crazy.

The body tag ends as soon as your last div does, try adding the bg to to the html tag?
0

#3 User is offline   Final 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 46
  • Joined: 25-March 09
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 13 April 2009 - 11:24 PM

heya
It appears to align to the bottom of the page fine in IE now, but still the same prob in FF. Im wondering if just placing it inside a fixed div with z-index would work?
0

#4 User is offline   n0xx 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 111
  • Joined: 24-March 09
  • Reputation: 0
  • Gender:Male
  • Location:Poland
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 14 April 2009 - 06:17 AM

err

Quote

html {
background-color:#e6dfa3;
background-image:url(../img/body_bg.png);
background-position: bottom left;
background-repeat:repeat-x;
margin:0px;
}


change to :
body {
background-color:#e6dfa3;
background-image:url(../img/body_bg.png);
background-position: bottom left;
background-repeat:repeat-x;
margin-bottom:0px;
}
0

#5 User is offline   bocaj 

  • Retired
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 3,402
  • Joined: 11-January 09
  • Reputation: 99
  • Gender:Male
  • Location:New Sarum
  • Experience:Web Guru
  • Area of Expertise:Entrepreneur

Posted 14 April 2009 - 06:27 AM

That's what he started with, the body tag wraps the content unless height or width properties are specified. So the body tag ends where the last div does.

You could use the min-height property to make sure that the height is atleast the viewport, however it doesn't work in IE6

Quote

Im wondering if just placing it inside a fixed div with z-index would work?


will mean that it moves as the page scrolls, also maybe look at http://ryanfait.com/resources/footer-stick...bottom-of-page/
0

#6 User is offline   Final 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 46
  • Joined: 25-March 09
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 14 April 2009 - 02:32 PM

thanks for your help guys :)
0

#7 User is offline   Final 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 46
  • Joined: 25-March 09
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 14 April 2009 - 02:35 PM

I used the min-height on the body, it seems to be a good work around thanks !:)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users