Results 1 to 4 of 4

Thread: Help with either footer or sidebar

Hybrid View

  1. #1
    Join Date
    Feb 2013

    Help with either footer or sidebar

    Hi all,

    Very new to HTML and web development. Trying to make my first website. You will see in a sec, how new I am.

    I am having a problem getting the footer to remain on the bottom, after the main content and side bar. In the main content.

    I've attached the code for someone to help with what I am doing incorrectly. Thanks for the help!

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Philadelphia Adult League Softball </title>
    <style type="text/css">
    html {
    height: 100%;
    width: 100%;
    body {
    margin: 0px;
    #container {
    margin: auto;
    padding: 0px;
    height: auto;
    width: 960px;
    background-color: #fffeef;
    text-align: left;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.2em;
    color: #313030;
    #header {
    padding: 0px;
    height: 430px;
    #main {
    margin-right: auto;
    margin-left: auto;
    margin-top: 20px;
    margin-bottom: auto;
    padding: 0px;
    min-height: 305px;
    height: auto;
    position: relative;
    #footer {
    height: 100px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    position: relative;
    padding-top: 20px;
    background-color: #C9C;
    a:link {
    color: #000000;
    font-weight: bold;
    a:visited {
    color: #7ac1b7;
    font-weight: bold;
    a:hover {
    color: #9e2520;
    font-weight: bold;
    #container #header #logo {
    height: 107px;
    #container #header #logo #PALS-logo {
    background-image: url(../../../../PALS%20website%20feb%2028/Images/images/pals-web-mock%20logo%20and%20text.png);
    display: block;
    height: 107px;
    width: 242px;
    background-color: #fffeef;
    background-repeat: no-repeat;
    position: relative;
    #container #header #banner {
    text-align: center;
    height: 257px;
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-top-style: outset;
    border-bottom-style: inset;
    border-top-color: #fffeef;
    border-right-color: #fffeef;
    border-bottom-color: #fffeef;
    border-left-color: #fffeef;
    #container #header #navbar {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: bold;
    color: #000;
    height: 35px;
    font-size: 23px;
    text-align: center;
    text-decoration: none;
    background-color: #8cfad2;
    padding-bottom: 10px;
    #container #header #navbar ul {
    list-style-type: none;
    padding-top: 12px;
    margin: 0px;
    background-color: #8cfad2;
    #container #header #navbar ul li {
    display: inline;
    text-transform: uppercase;
    padding-right: 40px;
    padding-left: 0px;
    padding-top: 11px;
    padding-bottom: 0px;
    background-image: none;
    background-repeat: no-repeat;
    background-position: center 0px;
    height: 35px;
    margin: 0px;
    text-decoration: none;
    color: #000;
    #container #header #navbar ul li a {
    text-decoration: none;
    #container #header #navbar ul li a:link {
    text-decoration: none;
    color: #000;
    #container #header #navbar ul li a:visited {
    text-decoration: none;
    color: #000;
    #container #header #navbar ul li a:hover {
    text-decoration: none;
    color: #CCC;
    padding-top: 11px;
    padding-bottom: 0px;
    background-image: url(../../../../PALS%20website%20feb%2028/Images/softball.gif);
    background-repeat: no-repeat;
    background-position: center 0px;
    height: 35px;
    margin: 0px;
    #container #main #sidebar {
    clear: right;
    float: right;
    width: 219px;
    background-image: url(../../../../PALS%20website%20feb%2028/Images/Greenbackingforcard.jpg);
    background-repeat: no-repeat;
    height: 282px;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    color: #392d32;
    font-size: 21px;
    line-height: 20px;
    position: absolute;
    left: 736px;
    top: 5px;
    #container #main #sidebar p #ccom {
    border: 10px solid #fffeef;
    padding: 0px;
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 5px;
    margin-left: 0px;
    .sbcc {
    font-size: 29px;
    color: #fffeef;
    .sbom {
    font-size: 19px;
    color: #fffeef;
    .sbft {
    font-size: 14px;
    colr: #fffeef;
    color: #fffeef;
    #container #main #content {
    min-height: 282px;
    width: 680px;
    clear: center;
    font-size: 14px;
    margin-left: 10px;
    #box {
    border:thin solid #fffeef;
    padding: 0px;
    float: left;
    font-size: 12px;
    text-align: left;
    background-color: transparent;
    margin-right: 10px;
    margin-left: 0px;

    <div id="container">
    <div id="header">
    <div id="logo"><a href="http://phillypals.com" title="Philadelphia Adult League Softball" id="PALS-logo">Philadelphia Adult League Softball</a>
    </div><!-- end logo -->
    <div id="navbar">
    <li><a href="home.html" title="Home" target="_self">Home</a></li>
    <li><a href="Play.html" title="Play" target="_self">Play</a></li>
    <li><a href="Community.html" title="Community" target="_self">Community</a></li>
    <li><a href="Sponsor.html" title="Sponsor" target="_self">Sponsor</a></li>
    <li><a href="Staff.html" title="Staff" target="_self">Staff</a></li>
    </div><!-- end navbar -->
    <div id="banner"><img src="../../../../PALS website feb 28/Images/Web_Cover_Page.jpg" width="940" height="257" alt="PALS Banner"></div><!-- end banner -->
    </div><!-- end header -->
    <div id="main">
    <div id="content">
    <div id="box"><h3 align="center">Competition</h3>
    <img src="../../../../PALS website feb 28/Images/Web content center main.jpg" width="175" height="110" alt="Competitive">
    <p>PALS offers a competitive and fun recreational softball experience. We offer umpires, equipment, and stats. The season's League Champions receive championship t-shirts and personalized trophy cards.</p></div>
    <div id="box"><h3 align="center">Community</h3>
    <img src="../../../../PALS website feb 28/Images/Web content left main.jpg" width="175" height="110" alt="Community">
    <p>PALS supports programs and organizations that are committed to serving the local community. A portion of league fees benefit the Philadelphia Ronald McDonald House and the Mill Creek Recreational Center. </p></div>
    <div id="box"><h3 align="center">Camaraderie</h3>
    <img src="../../../../PALS website feb 28/Images/Web content right main.jpg" width="175" height="110" alt="Camaraderie"><p>PALS softball is co-ed, requiring at least four women play the field. We offer sponsor bar specials, and encourage teams to meet up after the games, offering a great opportunity to spend time with friends and meet new people.</p></div>
    <!-- end content -->
    <div id="sidebar">
    <p> <span class="sbcc">Player </span><br>
    <span class="sbom">of the week</span><br>
    <img src="../../../../PALS website feb 28/Images/kellypow.jpg" name="ccom" width="119" height="119" id="ccom"><br>
    <span class="sbft">Kelly</span><br>
    </div><!-- end sidebar -->
    </div><!-- end main -->
    <div id="footer">
    <div id="footnav">add footer nav here
    </div><!-- end footnav -->
    <div id="contact">add footer contact info here
    </div><!-- end contact -->
    <div id="network">add footer social media icons here
    </div><!-- end network -->
    </div><!-- end footer -->
    </div><!-- end container -->

  2. #2
    Join Date
    Mar 2013
    Code seems to be correct..Where you got hitch with the problem? Exactly doesn't understand with use of container here.

    website design long island

  3. #3
    Join Date
    May 2005
    Gold Coast (MS)

  4. #4
    Join Date
    Feb 2013
    Thanks. I did figure it out. I was doing something incorrectly when adding content and style to the footer and for some reason, it was pushing the footer into the content area.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09202 seconds
  • Memory Usage 3,000KB
  • Queries Executed 13 (?)
More Information
Template Usage (29):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (27):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./includes/functions_threadedmode.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (71):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates