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.

CSS Forum


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



Reply
footer 100% across screen
Old 02-08-2012, 11:38 AM footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
I have a layout that includes a central container or wrapper

How do I add a footer under this that goes all the way across

I have created a new div but for some reason it sits in the middle of my screen half way up my layout ???
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
 
Register now for full access!
Old 02-08-2012, 12:04 PM Re: footer 100% across screen
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
A link to where this can be seen would be most helpful.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 02-08-2012, 12:48 PM Re: footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
This is where I am at so far

http://www.bitsmail.co.uk/saco/layout10-content.html

My inspiration or rather the man who owns the company was this site -
http://www.earthday.org/2012
I love the site but trying to translate it to a working site & in dark green rather than blue - I am struggling to love it

might have to post for a review & get some ideas of people
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 02-08-2012, 03:41 PM Re: footer 100% across screen
vultren's Avatar
Webmaster Talker

Posts: 583
Name: Tony
Location: Seattle Washington
Trades: 1
Quote:
Originally Posted by tonya View Post
This is where I am at so far

http://www.bitsmail.co.uk/saco/layout10-content.html

My inspiration or rather the man who owns the company was this site -
http://www.earthday.org/2012
I love the site but trying to translate it to a working site & in dark green rather than blue - I am struggling to love it

might have to post for a review & get some ideas of people
You need to make another div out side of the container for the footer.

Check out the site I sent you on the other topic you posted. Use the same code for that too.
__________________

Please login or register to view this content. Registration is FREE

I am here to give advice as well as learn.

Please login or register to view this content. Registration is FREE
.
vultren is online now
Reply With Quote
View Public Profile
 
Old 02-08-2012, 04:53 PM Re: footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Thanks again

I have not done my dev work recently so am feeling really really rusty !!!!

Brain just not functioning at all
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 02-08-2012, 04:56 PM Re: footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Did you do a similar thing where you have a small graphic in front of a clickable link like 'learn more'

I also like the use of the boxes to surround text

Yes like it a lot - will use some inspiration if you don't mind
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 02-08-2012, 05:14 PM Re: footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
vultren - why is your footer bg div before the footer container div ???

I would have thought it had to be other way around ???
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 02-08-2012, 08:56 PM Re: footer 100% across screen
vultren's Avatar
Webmaster Talker

Posts: 583
Name: Tony
Location: Seattle Washington
Trades: 1
Quote:
Originally Posted by tonya View Post
vultren - why is your footer bg div before the footer container div ???

I would have thought it had to be other way around ???
Because the footer bg has the background in the css. bg=background. Then the container gets the same properties as the main container tag so it matches the site.
__________________

Please login or register to view this content. Registration is FREE

I am here to give advice as well as learn.

Please login or register to view this content. Registration is FREE
.
vultren is online now
Reply With Quote
View Public Profile
 
Old 02-09-2012, 09:23 AM Re: footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
OK I am getting there

This is what I have so far !!! Copied your code - is that ok ????

http://www.bitsmail.co.uk/saco/default.htm

Only problem I have now is that #container2 is an absolute position - so I can have it over the #masthead but then the footer wants to sit under the masthead which means setting a height for container2 - when content changes I am stuffed !! any way around this - don't really want to amend every page as its a template ??? - shall I post as separate post ??

If you look at company history you can see the problem
__________________
Tonya

::
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 tonya; 02-09-2012 at 09:24 AM.. Reason: added missed link
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 02-09-2012, 01:39 PM Re: footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Thing is it doesnt sit right at the bottom ! It sits in position but doesnt limit the page - what I mean is it isnt always at the bottom - why is that ???

The page seems to go on underneath the footer I want it to end !!
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 02-09-2012, 04:42 PM Re: footer 100% across screen
vultren's Avatar
Webmaster Talker

Posts: 583
Name: Tony
Location: Seattle Washington
Trades: 1
Quote:
Originally Posted by tonya View Post
Thing is it doesnt sit right at the bottom ! It sits in position but doesnt limit the page - what I mean is it isnt always at the bottom - why is that ???

The page seems to go on underneath the footer I want it to end !!
Your page height isn't set correctly so the footer sticks to the bottom.



Quote:
Originally Posted by tonya View Post
OK I am getting there

This is what I have so far !!! Copied your code - is that ok ????

http://www.bitsmail.co.uk/saco/default.htm

Only problem I have now is that #container2 is an absolute position - so I can have it over the #masthead but then the footer wants to sit under the masthead which means setting a height for container2 - when content changes I am stuffed !! any way around this - don't really want to amend every page as its a template ??? - shall I post as separate post ??

If you look at company history you can see the problem
I don't mind. Feel free to use the code.

You need to make the footer float so it's under the content.
__________________

Please login or register to view this content. Registration is FREE

I am here to give advice as well as learn.

Please login or register to view this content. Registration is FREE
.
vultren is online now
Reply With Quote
View Public Profile
 
Old 02-09-2012, 05:04 PM Re: footer 100% across screen
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Thanks for the advice - think its fixed now

The page only continues to scroll past the footer when the screen res is changed in the browser

spent ages fiddling with the css to fix it.

created an outside main-page div that set height to 100% ??? thinking that would do the trick - sort of ?? LOL

enough for tonight - back on monday & thanks for advice so far
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 02-09-2012, 06:55 PM Re: footer 100% across screen
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
So you want to create a footer that sticks to the bottom of the page, at 100% width?

Code:
<style type="text/css">
/*footer div*/
#footer {
position:absolute;
bottom:0;
left:0;
width:100%;

/*extra stuff*/
background:rgba(0,0,0,0.5);
border-top:1px solid rgba(255,255,255,0.5);
}

/*for padding*/
#padding {padding:5px 10px;}
</style>

<!--HTML code-->
<div id="footer"><div id="padding">Hello!</div></div>
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to footer 100% across screen
 

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 0.40056 seconds with 12 queries