Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 9:04 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ]  Bookmark and Share
Author Message
 Post subject: Footer image not behaving.
PostPosted: Sat Jun 21, 2008 1:29 am 
Offline
500+ Club
User avatar

Joined: Mon Jun 26, 2006 7:51 pm
Posts: 926
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

_________________
I'm back and I'm 18 :)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 21, 2008 1:49 am 
Offline
500+ Club
User avatar

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

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 21, 2008 2:49 am 
Offline
500+ Club
User avatar

Joined: Mon Jun 26, 2006 7:51 pm
Posts: 926
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.

_________________
I'm back and I'm 18 :)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 21, 2008 3:01 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
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:
#leaf2{
      position:absolute;
      bottom:0px;
        width:100%;
        height:47px;
        background-image:url(images/footer.jpg);
}


Hope it helps.

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley