Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do add a space after css div object.

    i've been trying to add space after my div, but have been unsuccessful so far. When the content become vertically larger than the browser the browser stays tight with the bottom of the browser. How can i add space near the bottom?

    http://insideautism.org

    PHP Code:
    /* Defaults */
    body {
        
    margin0;
        
    padding0;
        }

    /* Content */
    #content {
        
    positionabsolute;
        
    width710px;
        
    heightauto;
        
    left50%;
        
    margin-left: -355px;
        
    margin-top20px;
        
    borderblack 1px solid;
        }
    .
    header {
        
    width100%;
        
    background#c0c0c0;
        
    heightauto;
        }
    .
    nav {
        
    width100%;
        
    background#003399;
        
    heightauto;
        }
    .
    main {
        
    width100%;
        
    heightauto;
        
    padding10px;
        }
    .
    footer {
        
    position:relative;
        
    bottom:0px;
        
    width100%;
        
    height18px;
        
    background#c0c0c0;
        
    overflowhidden;
        } 

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    <body bottommargin="2">
    Omnis mico antequam dominus Spookster!

  • #3
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for that, i will probably use that in the future. I was able to convert it from absolute to relative, which greatly relieved this problem.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    No attribs!

    Arrgh! CSS please! All presentation attributes of the body element were deprecated in HTML 4.01 and aren't even supported in strict XHTML 1.0.
    Code:
    body {
        margin: 0;
        margin-bottom: 2;
        padding: 0;
        }
    or something along those lines.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Lol, I thought about that as I was posting wasn't sure if anyone cared...obviously one did!

    I knew that it wasn't supported in XHTML 1.0 but not that is was deprecated in html 4.01 ... The thigns you lear eh'.
    Omnis mico antequam dominus Spookster!

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    The wonderful world of Internet...

    I'm not to be credited; i checked on W3Schools. If you don't trust them, you can always check the official recommendation at the W3C site itself, but i find the way they decribe things somewhat cryptic at times...
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •