Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By Brian Angel

Thread: Issue with the body div.

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    3
    Member #
    55656

    Issue with the body div.

    html: - Pastebin.com
    Css: - Pastebin.com

    My body div on my site as well as the canvas, does not seem to be stretching the full length of my site for the background. even though it is height: 100%;.

    Any ideas?

    Also an overall review of my code would be great as i am self-taught and this is the first time using @media.

    thanks

    Tanners

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    html, body {height: 100%;} That should give you what you want.

    One thing off the top; you don't want to use the wildcard reset. There are elements (e.g. ol) that can and should have margin and padding.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    3
    Member #
    55656
    Quote Originally Posted by TheGAME1264 View Post
    html, body {height: 100%;} That should give you what you want.

    One thing off the top; you don't want to use the wildcard reset. There are elements (e.g. ol) that can and should have margin and padding.
    thank you for your reply, though html, body {height: 100%;} is not working.

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Quote Originally Posted by Tanners View Post
    thank you for your reply, though html, body {height: 100%;} is not working.
    And it won't. Try:
    Code:
    body {height: 100vh;}
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  6. #5
    Junior Member
    Join Date
    Nov 2016
    Posts
    3
    Member #
    55656
    nope, still not working sadly.. hmm

  7. #6
    Member
    Join Date
    Oct 2010
    Location
    Philadelphia
    Posts
    82
    Member #
    24186
    Liked
    8 times
    Quote Originally Posted by Tanners View Post
    nope, still not working sadly.. hmm
    add overflow:hidden to the body selector and BAM.
    TheGAME1264 likes this.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:59 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com