It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

Footer image not behaving.

Footer image not behaving.

Postby Tomi on Sat Jun 21, 2008 12:29 am

Ok, I'm a total noob to Xhtml/CSS. I have decided to learn both so I made this design, sliced it and coded it. Obviously with some help from people :) (thanks!).

It was all going fine untill i came to put the footer in. As you can see here:
http://www.jrcdesigns.co.uk/test/Leafy/ Its sitting near the top of the page...

It should be at the bottom, i have no idea why it is there. I have asked 4 coders all of which have no idea lol...

Please find both the CSS and XHTML code in the source.

Thanks
Tomi
User avatar
Tomi
500+ Club
 
Posts: 925
Joined: Mon Jun 26, 2006 6:51 pm
Location: Essex, England

Postby rangana on Sat Jun 21, 2008 12:49 am

Which div is it? The text2? Anyway, i'm not certain which one are you referring, but see if adding clear:both helps ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby Tomi on Sat Jun 21, 2008 1:49 am

The div I'm talking about is <div id="leaf2">, its at the bottom of the code.

I have tried clear:both before and it didn't work.
User avatar
Tomi
500+ Club
 
Posts: 925
Joined: Mon Jun 26, 2006 6:51 pm
Location: Essex, England

Postby rangana on Sat Jun 21, 2008 2:01 am

First of all, id is unique in every page. You have two container ids.

Fix your markup error as well as your CSS error.

You also had a lot of divs which I'm certain, that it's divitis

I'm not always fund of using absolute positioning as it gives you a brittle layout, but in your case, since you've got a lot of divs, and you miss to put them in one container, then I would suggest changing your rule in leaf2 to this:
Code: Select all
#leaf2{
      position:absolute;
      bottom:0px;
        width:100%;
        height:47px;
        background-image:url(images/footer.jpg);
}


Hope it helps.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 0 guests