May 12, 2008

100% Height Issue With Stretching Top To Bottom - Full Page - Problem with content not stretching from top to bottom.

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > CSS (Cascading Style Sheets)

free web hosting

100% Height Issue With Stretching Top To Bottom - Full Page - Problem with content not stretching from top to bottom.

sonesay
Another CSS problem thats been annoying me. I got this tempalte off http://www.xs4all.nl/~peterned/examples/csslayout1.html the css file is here http://www.xs4all.nl/~peterned/examples/css/layout1.css I went ahead and applied it to my template. Their main divs contain 1 main container, 3 sub divs (header, content, and footer).
HTML
<div id="container">

<div id="header">
</div>

<div id="content">
</div>

<div id="footer">
</div>

</div>

I've had to add a few more divs inside the header div to include my table for banner and navigation.
HTML
<div id="header">
<?php include("includes/_header_section.php"); ?>
<?php include("includes/_login_section.php"); ?>
<div id="content_section_heading"> </div>
</div>

my output template file http://sonesay.trap17.com/gag/new_template.php its css http://sonesay.trap17.com/gag/css/new_style.css

I need the content part to cover all the space between the header and footer to cover the #cotainers bg color.


my original problem which lead me to redo the above template was the output of my news (sample version) http://sonesay.trap17.com/gag/news_test.php. Once the page got too long the footer which is surpose to be fixed at the bottom moves. I ran the document at w3 validator and it checked out ok.

http://sonesay.trap17.com/gag/news_test.php is using CSS from http://sonesay.trap17.com/gag/css/style.css sorry its abit clutered and have alot of unused ids and classes there.

Notice from BuffaloHELP:
Always use proper bbcode tags.

 

 

 


Reply

BuffaloHELP
Try adding
CODE
DIV#content_section_heading

with position, height and width values.

When you place ID on DIV tags, you have to define it in CSS every time. Or, you could have defined DIV to be full width and height all the time. But that's at designer's choice. To make every DIV to be in full height and width:
CODE
DIV { height:100%; width:100% }


Reply

jlhaslip
Do you want something like this: http://jlhaslip.trap17.com/samples/templat...amed/index.html

Snag that page and check it out.

Reply

sonesay
Yeah Jihaslip thats the desired effect but I dont like frames(or fame effect) sad.gif. I prefer the vertical scroll bar to span all the way from top to bottom and have the page appear as one long page. But I think the problem occurs when the page gets too long and the footer comes off position as here http://sonesay.trap17.com/gag/news_test.php but its just cosmetic.

I've tried the sugestion by buffalohelp its still not doing what I want it to do. There is another template i may look at its at http://www.openwebdesign.org/design/3270/zenlike/ its similar to what i want but without the top and bottom being set at 0 hopefully this wont lost position when i put in the content.

Thanks for the link to that example on frame like layout. I would probably like to use something like that for future projects. As for now Il' keep trying to fix it or maybe try get it working on the zenlike template. But I really should keep working on finishing the site as much as Id like things to be exactly as I want it to be I know because of differrent browsers its almost impossible.

Again thanks for your hlep guys trap17 rules!

 

 

 


Reply

delivi
thanks for sharing the information, this is really very useful

I was searching for an effective method that works in all browsers.

Reply

jlhaslip
Found this link in my travels.

http://ryanfait.com/sticky-footer/

Might work for you???

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. div not stretching to top - 297.34 hr back.
  2. stretching div to 100% height - 1044.28 hr back.
  3. div "top to bottom" 100% - 1302.67 hr back.
Similar Topics

Keywords : 100percent, height, issue, stretching, top, bottom, full, page, problem, content, stretching, top, bottom,

  1. Problem With My Email : [urgent]
    Can't send or receive email. (1)
  2. Flash Problem
    sometimes the buttons will load the wrong link. (4)
    Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
    www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
    mess around and click the buttons for a little bit you will notice this happening. This is a problem
    because people visiting the site will sometimes click the button once and be like oh I guess the
    link is broken and never come back, if anyone has a solution to what could be the problem it would
    be awesome. This is one of my first custom flash banners and im just confused what....
  3. I'm In Love! Now What Do I Do?
    This is the first time I've ever had a problem with a girl. (5)
    I am a jock, I'm man enough to admit it. I'm one of the big strong men on campus. I've
    never had a problem asking out, flirting, or approaching girls. Unless it comes to this one girl.
    I've known her since 8th grade and fell in love with her the first time I saw her. After I got
    to know her a little more she turned out to be even more amazing. But, she isn't the same as
    most girls when it comes to giving off signals. I don't think she has ever even gone out with
    anyone, so I don't want to come on overly strong and just skip dating and t....
  4. Problem With Time/date On My Computer
    (6)
    This strange issue has been happening to me recently. I notice that when I shut down my computer,
    and then start it up the next time, the time and date of my computer remains the same as that of the
    time and date that I shut down my computer, and it continues from that time and date until I adjust
    it manually myself. For example, if I shut down my computer on 3 May 2008, 10pm, even when I switch
    on my computer on 4 May 2008 9am, the date and time shows 3 May 2008, 10 pm. I don't understand
    why, I did not automatically synchronize it with an internet server, and I....
  5. Full Web Building Tutorials
    finding the sites that help allot with webdesign (1)
    I have been using the site http://www.w3schools.com/ for quit some time now, and i really really
    like it it helps allot if your a beginner and has allot to offer if you have some webdesign
    knowledge. At W3Schools you will find all the Web-building tutorials you need, from basic HTML and
    XHTML to advanced XML, SQL, Database, Multimedia and WAP W3 publishes a series of tutorials, though
    most web developers are unaware of it. Mainly, though, W3C's site houses a collection of
    proposals, drafts, and Recommendations, written by geeks for geeks. And when I say geeks, I d....
  6. Gamma Servers' Problem
    This topic is for all who have their account on Gamma Server & ha (1)
    Okay I see a lot of chaos all around and my site zoebelkin.co.cc is still down. Everything including
    FTP, CPanel etc are down. My site is on the gamma server. I see that all the servers are moved
    around a lot and the IP blocks also changing. So what is the new IP set for 'gamma'. When
    doing a reverse check on gamma I see it is still assigned to it's previous IP but when I'm
    trying to access the previous IP's port 80 then I get a Server not found error. Also the
    gamma.xisto.com name for the server fails to open the default Apache page which it used to ....
  7. Ip Problem
    (2)
    I CANNOT ACCESS MY SITE: http://pinoyteens.net from IP: 124.6.174.5 and 222.127.170.30 I'm
    having a dynamic IP, this really begins to suck.....
  8. Connection Problem!
    ??? (3)
    There are many softwares which need internet connection, and there is a problem. The program itself
    does connect to the internet at my home and different places, but not at my University! So, how
    can I force this program ti be connected to the internet. The thing is the internet is present, but
    the program, somehow, can not find it. List all the ways!!!....
  9. I Have A Problem With A Question
    R.S. question does not make logical sense (8)
    I was doing a mok exam for my R.S. GSCE (Religous Studies) and it was the paper from the previous
    year i think. Then a question came up "the amount of religion in the is proof god exists, do you
    agree? give reasons for both sides of this argument" So whats the problem, the problem is it is
    logically impossible to argue both sides Why? : Proof means something that establishes something a
    true or factual beyond all arguable doubt. So if i were to argue that it is proof for why God
    exists, which i wouldnt because it isnt, for me to argue that it isnt proof would make t....
  10. I Cant Log In To Cpanel
    I get "Unable to connect" page (6)
    I am trying to get ot my cpannel but it won't let me connect. I am using Firefox, I cleaned out
    my cashe and my cookies. I go ot http://mysite.trap17.com/cpanel and i get a page with this
    message: QUOTE(errorpage) Unable to connect Firefox can't establish a connection to the
    server at racuria.trap17.com:2082. * The site could be temporarily unavailable or too busy.
    Try again in a few moments. * If you are unable to load any pages, check your
    computer's network connection. * If your computer or network is protect....
  11. Frontpage Problem
    Strange message when press Submit (0)
    Trying to set up a "skeleton" form generated with Frontpage 2000. After installing Frontpage
    Extensions, when I hit Submit on the form I get this response: *-*-* :-| :^| :-/ :-( 8-( *-*-*
    * status=1 * osstatus=0 * msg=FrontPage security violation. * osmsg= I'm new at
    this, and don't understand any of the above response. Please explain the above stuff and suggest
    how to fix it. Thanks, Jack Here's the brief code: <!--webbot
    bot="SaveResults" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/CS....
  12. Can Anyone Help Me With My Graphic Card - 8600 Gt
    temperature problem :D (8)
    Hi, My system specs are as follows: QUOTE Processor : Intel Core 2 Quad Q6600 @ 2.4 GHz
    Motherboard: nVidia 650i Ultra RAM : 2 GB GfxCard : XFX 8600 GT (512 MB) Problem is all of my
    nVidia component are now managed by a single Control panel - nVidia Control panel and it doesn't
    show any tab for graphic's card temperature. I want to know the temperature of my graphics
    card. does any body know any software for this ?? or at least a work around ? thanks /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  13. Nvidia Display Driver Problem
    (2)
    Hello everyone I have a problem with my new pc: my card the 8500gt 512mb graphics ... Game
    slow-loading computer freezes, when I launch a video: message (the display driver NV4_disp not
    working properly) + blue screen, reboot. My configuration: QUOTE -- Lg_95c abit motherboard.
    -- Dual Core 3.4 GHz -- PSU 300w -- 2 gbs ddr2 ram (no problem with memtest) -- NVidia graphics
    card 8500gt 512mb As recommended by Trap17, use an online translator if you don't speak
    English well. http://translate.google.com/translate_t?langpair=fr|en ....
  14. Heart Problem
    love (0)
    i'vee been cheated by some one,, im so sad,, Totally unrelated and copied advertising
    removed. Readme ~ Rules ~ AUP ....
  15. Sub Domain Problem : Urgent
    Cannot access my sub domains (10)
    Hi, I am having some serious problems with my sub domains. I registered a site with trap17 named
    http://zoebelkin.co.cc . Then I made 2 sub domains for the site. One is for the forums section
    and the other is for the gallery section. 1> forums.zoebelkin.co.cc 2> gallery.zoebelkin.co.cc
    Whenever I type these in the browser adress bar the browser gives an output that it cannot find the
    web sites. But they are complete and should show something. Also using www. in front of the sub
    domains didn't help. Is www. needed in front of the sub domains. Could you just....
  16. Create Page?
    How? (5)
    Hi, everyone! I need to create a script just within a page. Read the following story: I have
    an account at one of file sharing hosts. I am tired of every time log in and tell others what I have
    at it (files). If there is way to create a script that logs in me and just list the files i have
    on this account from specified folder. If you know, let me know as usual.....
  17. Selling Bone Marrow, Dire Problem.
    (7)
    I'm an American, and I've been out of "the system" for over a decade. I can't be
    officially employed, because it would generate income tax. The tax would be automatically withheld
    from me, and go towards subsidizing lovely things like human torture, war atrocities, warrant-less
    domestic wiretapping, and general treason and inhumane practices. So, I'm left to work under
    the table. This has hit me pretty hard, and now I have a ton of cavities I can't pay to have
    filled. If left unchecked, this will soon kill me slowly and painfully. So as I'm ....
  18. Rpg Maker 2003 Music Problem
    (1)
    I have been working with RPG Maker 2003 and I have run into a problem. When I open the BMG tab I
    try to listen to music. However, when I click play nothing happens. I have the Rtp file with the
    standard midis in it. But they just wont play. The WAV files included do play. The only way they
    seem to play is if I put all of the files into my windows media player. Once the first song has
    played and as long as the player is running I can listen to songs via the RM2K3 program. However,
    if I stop the player or mute the player I can't hear them on the program. I'....
  19. Problem Creating Email Accounts In Cpanel
    (13)
    this is the message i recieve... "The e-mail account xxxxxxxx@ wildcatexotics.com with the login
    Sorry, you have exceeded the maximum allowed email accounts. and password xxxxxxxx with a quota of
    unlimited megabytes was successfully created." can an admin please help me with this issue?....
  20. Envizion's Front Page
    (12)
    Ok, so I've done a really simple Front Page for my Game Development Team, ENVIZION. I was going
    for clean and dark, so let me know if this works. If not, I think I'll go with something a
    little brighter and a bit more intracate. http://www.envizion.trap17.com ....
  21. Dandruff Problem
    (27)
    I am a average built, Indian, Male, aged 20 person. I have a very serious problem with the
    dandruff. It comes back within an hour after taking a head bath. It is bothering me a lot. It is
    very itching and really irritating. I have tried applying lemon on my head but in vain. The dandruff
    still comes back. My mom advised me not to apply lemon too much on head so I have stopped applying
    that also on head. I went to a doctor and he asked me to shampoo hair with a medicated shampoo
    called SELSUN. But still the dandruff problem is lasting and with no effect with the medic....
  22. Web Page Tree Menu: Style Sheet - Javascript
    (4)
    I got bored and lazy working on the things that I should do... so I end up creating this tree menu
    for anyone to use if they find it interesting. Well the idea is to create a tree menu in a webage.
    Instead of those linear menu it would be better to add more dynamic to your webpage with a tree
    menu. Others use image rollovers. As expecte the tree menu should behave like the one in Windows
    Explorer. When you click a node depending on its state it will pull down or pull up its chlid nodes.
    I have achieved by exploiting one style sheet property, display . Basically this s....
  23. Make 100% Free Money Online $4000+
    free money making system (16)
    /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> Hello I am
    posting this site here as I am making money with it every month..It is a step-by-step money making
    system..Best thing is it is 100% free..First I thought that it might be a scam but now as I am
    making 4000$ per moth so now I have to believe it.. I will advise you that
    please give it a try before making any decision..You will also make money..no experience is needed
    and its free..so you have nothing to lose.. you will surely love it.. ....
  24. C Problem: "two Or More Data Types In Declaration"
    also need help with malloc (4)
    What does it mean when I get the error QUOTE two or more data types in declaration of (function
    name) It's almost the exact same as a function I have in another program that compiles and
    works fine. Also, can someone explain malloc or give me a tutorial? Like where and how you use it,
    and if there are any restrictions to where you can use it. Shortened topic title to fix page
    distortion on the home page. Edit: Made new title make sense >_> ....
  25. Imap Problem
    i want to check if the message is not seen (1)
    i'd like to know which message i had not been seen, so i searched the manual and fid 2 flags
    says Unseen == 'U' || Recent == 'N' mean. but i don,t understand what does Unseen ==
    'U' || Recent == 'N' mean(what he mean by flags )? i want to check if the
    message is not seen, so how to do that? i tried CODE $inbox =
    @imap_open("{mail.mysite.com:110/pop3}",
    "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['S
    ESSION_MAIL_HOST']."", $_SESSION&....
  26. Downloading Content Using Rapidshare!
    illegal or not? (10)
    Hi. I recently visited a friend of mine, who's older brother downloads pornographic movies on
    his computer. He told me he visits sites that use rapidshare, and he downloads his movies that way.
    I think it may be illegal since that website has links to download lots of movies, but I'm not
    sure. It just seems that it may be illegal, because when was the last time you could download so
    many full movies for free? I'm sorry if I did something against these forum rules, but my
    brother-in-law said i could use this site to seek help. I really care for my friend a lot....
  27. Cpanel Demo Page
    for new applicants and guests (44)
    Hello TRAP17 members and dear guests, I have received permission to show demo version of cPanel
    offered to all hosting members of TRAP17. This demonstration page will show what TRAP17 offers to
    our hosting members, including what other services that are attached with cPanel. Please use this as
    your guide when posting a question or simply take a tour before you can decide to host with us.
    Click this link to see cPanel demo page From time to time I will work on to show a greater detail.
    And the link may change in the future so please do not bookmark this page. I hope ....
  28. Did You Face Problem Opening Pdf With Firefox?
    (14)
    Hello, I have a question to ask since the 1st day of my download of firefox ... Whenever i open a
    pdf file online using firefox, the firefox is get not responding and my comp got hanged ... i have
    to manually end the firefox program via windows task manager .. I tried to wait the pdf to load, but
    it seems that it takes forever .. so im guessing it's the trail version's bug .. but after a
    few updates, I still have the problems with my firefox ... Is this my computer's problem or
    firefox problem ? If it's a firefox bug, it's impossible that no1 report ....
  29. Php Unique Hit Counter
    Count page hits with php. (27)
    Hello all, Here is a neat and helpful PHP script that can count unique page views on your website.
    First you need to open up a new page in your text editor and paste in this code. CODE <?php
    $filename = "hits.txt"; $file = file($filename); $file =
    array_unique($file); $hits = count($file); echo $hits; $fd
    = fopen ($filename , "r"); $fstring = fread ($fd , filesize
    ($filename)); fclose($fd); $fd = fopen ($f....
  30. C Code, Can U Solve This?
    Another interesting problem (22)
    Hello, Look at the code given below CODE void fun(void) { /* Put your code here so
    that main does not print 20 */ } int main() { int i = 20; fun();
    printf("i = %d\n", i); return 0; } 1. You are allowed to put your code
    ONLY in fun. 2. You are not allowed to change even one character in main. 3. You should not use
    functions like exit(),abort() in the function fun. How do I manipulate and change the value of i?
    Have fun.......

    1. Looking for 100percent, height, issue, stretching, top, bottom, full, page, problem, content, stretching, top, bottom,

Searching Video's for 100percent, height, issue, stretching, top, bottom, full, page, problem, content, stretching, top, bottom,
Similar
Problem With
My Email :
[urgent] -
Can't
send or
receive
email.
Flash
Problem -
sometimes
the buttons
will load
the wrong
link.
I'm In
Love!
Now What Do
I Do? - This
is the first
time
I've
ever had a
problem with
a girl.
Problem With
Time/date On
My Computer
Full Web
Building
Tutorials -
finding the
sites that
help allot
with
webdesign
Gamma
Servers'
Problem -
This topic
is for all
who have
their
account on
Gamma Server
& ha
Ip Problem
Connection
Problem!
- ???
I Have A
Problem With
A Question -
R.S.
question
does not
make logical
sense
I Cant Log
In To Cpanel
- I get
"Unable
to
connect"
page
Frontpage
Problem -
Strange
message when
press Submit
Can Anyone
Help Me With
My Graphic
Card - 8600
Gt -
temperature
problem :D
Nvidia
Display
Driver
Problem
Heart
Problem -
love
Sub Domain
Problem :
Urgent -
Cannot
access my
sub domains
Create Page?
- How?
Selling Bone
Marrow, Dire
Problem.
Rpg Maker
2003 Music
Problem
Problem
Creating
Email
Accounts In
Cpanel
Envizion'
;s Front
Page
Dandruff
Problem
Web Page
Tree Menu:
Style Sheet
- Javascript
Make 100%
Free Money
Online
$4000+
- free money
making
system
C Problem:
"two Or
More Data
Types In
Declaration&
quot; - also
need help
with malloc
Imap Problem
- i want to
check if the
message is
not seen
Downloading
Content
Using
Rapidshare&#
33; -
illegal or
not?
Cpanel Demo
Page - for
new
applicants
and guests
Did You Face
Problem
Opening Pdf
With
Firefox?
Php Unique
Hit Counter
- Count page
hits with
php.
C Code, Can
U Solve
This? -
Another
interesting
problem
advertisement



100% Height Issue With Stretching Top To Bottom - Full Page - Problem with content not stretching from top to bottom.



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE