Results 1 to 8 of 8

Thread: Space under images? (bottom of div)

  1. #1
    Join Date
    Jan 2009
    Location
    Chattanooga, TN
    Posts
    41
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Space under images? (bottom of div)

    I'm trying to use these images to be at the very bottom of my page, but a small space of the div is sticking them out under them. What would I enter to get rid of the space?

    Site

    HTML
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Mountain Meadows Church of God</title>
        <link href="styles.css" rel="stylesheet" type="text/css">
    <script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    </head>
    <body>
        <div id="header"></div>
        <div id="buttons"></div>
    <div id="container">
            <div id="outer">
    <img src="images/side_list_top.jpg" width="143" height="18">
    <p><img src="images/services.jpg" width="125" height="83"></p>
    <p><img src="images/cog_logo.jpg" width="125" height="103"></p>
    <p><img src="images/gvcog.jpg" width="125" height="90"></p>
    <p><img src="images/less3.gif" width="120" height="90"></p>
    <p><img src="images/faithnews.gif" width="125" height="50"></p>
    <p><img src="images/cov_conn.jpg" width="125" height="50"></p>
    <p><img src="images/gpn.jpg" width="125" height="50"></p>
    <p><img src="images/imo.jpg" width="125" height="50"></p>
    <p><img src="images/widow.png" width="125" height="118"></p>
    <p><img src="images/mike-denise.jpg" width="125" height="155"><br /></p>
    </div>
                <div id="wrapper">
                    <div id="content">
                        <p>
                            <strong>1) Content here.</strong>
                            column long long column very long fill fill fill long text text column text silly very make long very fill silly make make long make text fill very long text column silly silly very column long very column filler fill long make filler long silly very long silly silly silly long filler make column filler make silly long long fill very.                    </p>
                        <p>
                            very make make fill silly long long filler column long make silly silly column filler fill fill very filler text fill filler column make fill make text very make make very fill fill long make very filler column very long very filler silly very make filler silly make make column column                </p>
                        <p>
                            fill long make long text very make long fill column make text very silly column filler silly text fill text filler filler filler make make make make text filler fill column filler make silly make text text fill make very filler column very                    </p>
                        <p>
                            column text long column make silly long text filler silly very very very long filler fill very fill silly very make make filler text filler text make silly text text long fill fill make text fill long text very silly long long filler filler fill silly long make column make silly long column long make very                    </p>
    <img src="images/content_bottom.jpg"></div>
                </div>
                <div id="navigation">
    <p><script type="text/javascript">
    AC_AX_RunContent( 'id','MediaPlayer','width','192','height','190','classid','CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95','standby','Loading Windows Media Player components...','type','application/x-oleobject','src','videos/welcome.wmv','name','MediaPlayer','showcontrols','true','showstatusbar','false','showdisplay','false','autostart','false','filename','videos/welcome.wmv' ); //end AC code
    </script><noscript><OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
          <PARAM NAME="FileName" VALUE="videos/welcome.wmv">
    
          <PARAM name="ShowControls" VALUE="true">
          <param name="ShowStatusBar" value="false">
          <PARAM name="ShowDisplay" VALUE="false">
          <PARAM name="autostart" VALUE="false">
          <EMBED TYPE="application/x-mplayer2" SRC="videos/welcome.wmv" NAME="MediaPlayer"
    WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
    </OBJECT></noscript></p>
    <img src="images/video_bottom.jpg" width="230" height="32"></div>
    <div id="extra">
    <p><strong>3) More stuff here.</strong>
    very text make long column make filler fill make column column silly filler text silly column fill silly fill column text filler make text silly filler make filler very silly make text very very text make long filler very make column make silly column fill silly column long make silly filler column filler silly long long column fill silly column very</p><img src="images/video_bottom.jpg" width="230" height="32"></div>
                <div id="footer">
                </div>
            </div>
    </body>
    </html>
    CSS
    Code:
    @charset "utf-8";
    /* CSS Document */
        <style type="text/css">
            html, body {
                margin: 0;
                padding: 0;
            }
            
            body {
                font: 76% arial, sans-serif;
                text-align: center;
            }
            
            p {
                margin: 0 10px 10px;
            }
            
            a {
                display: block;
                padding: 10px;
            }
            
            div#header h1 {
                height: 80px;
                line-height: 80px;
                margin: 0;
                padding-left: 10px;
            }
            
            div#header {
                background-color: #1e6490;
    			background-image:url(images/top.jpg);
    			text-align: center;
                width: 748px;
    			height: 155px;
                margin: 0 auto;
            }
    		div#buttons {
                background-color: #1e6490;
    			background-image: url(images/btn.jpg);
    			text-align: center;
                width: 748px;
    			height: 33px;
                margin: 0 auto;
            }
            
            div#container {
                text-align: left;
                background-color: #dff4f7;
    			background-position:top center;
    			background-image: url(images/container.jpg);
    			background-repeat:no-repeat;
                width: 748px;
                margin: 0 auto;
                z-index: 0;
            }
            
            div#content {
                background: #b8d7e2;
            }
            
            div#navigation {
                background: #b8d7e2;
            }
            
            div#extra {
                background: #b8d7e2;
            }
            
            div#footer {
    			height:66px;
                background-color: #1e6490;
    			background-image: url(images/container_bottom_bg.jpg);
    			background-position:bottom;
    			background-repeat:no-repeat;
            }
            
            div#footer p {
                margin: 0;
                padding: 5px 10px;
            }
            
            div#content {
                float: left;
                width: 423px;
                margin-top: 46px;
                margin-left: 33px;
                margin-bottom: 46px;
                background-color: #b8d7e2;
    			background-image:url(images/content_top.jpg);
    			background-position:top;
    			background-repeat:no-repeat;
    			padding-top: 45px;
            }
            
            div#navigation {
                float: right;
                width: 230px;
                margin-top: 46px;
                margin-right: 32px;
    			background-image:url(images/video_top.jpg);
    			background-position:top;
    			background-repeat:no-repeat;
    			text-align:center;
    			text-indent: 0px;
    			padding-top: 45px;
    			padding-bottom: 0px;
    		}
            
            div#extra {
                float: right;
                clear: right;
                width: 230px;
                margin-top: 16px;
                margin-right: 32px;
    			background-image:url(images/video_top.jpg);
    			background-position:top;
    			background-repeat:no-repeat;
    			text-align:center;
    			padding-top: 45px;
                background-color: #b8d7e2;
    			padding-bottom: 0px;
            }
            
            div#footer {
                clear: both;
                width: 100%
            }
            
    		div#buttons {
                position: relative;
            }		
    		
            div#container {
                position: relative;
            }
            
            div#outer {
    	position: absolute;
    	width: 143px;
    	right: -160px;
    	background: #1e6490;
    	background-image:url(images/side_list_bottom.jpg);
    	background-position:bottom;
    	background-repeat:no-repeat;
    	top: 0px;
    	text-align:center;
            }
        </style>
    Thanks!
    Last edited by dillankid; 01-15-2009 at 09:59 PM. Reason: Resolved.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Your link is broken.

  3. #3
    Join Date
    Jan 2009
    Location
    Chattanooga, TN
    Posts
    41
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    Fixed

    And I meant to say I want the images to touch the bottom of their div, not the page.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Ok, so which images are you referring to? The "flowery" ones in the main content or the ones in the right sidebar (they don't seem to exist)?

  5. #5
    Join Date
    Jan 2009
    Location
    Chattanooga, TN
    Posts
    41
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    I'm referring to the "flowery" ones with the small darker blue gap under them.
    (content, navigation, and extra div id's.)

  6. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    That seems to happen because of your doctype (no idea why, there's nothing wrong with it). Try changing from strict to transitional, change this:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    to this:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    You could also use the images as background images instead, I'm sure that wouldn't cause any problems.

    Good luck!

  7. The Following User Says Thank You to Snookerman For This Useful Post:

    dillankid (01-15-2009)

  8. #7
    Join Date
    Jan 2009
    Location
    Chattanooga, TN
    Posts
    41
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    That's weird...but it worked! Thanks...now I can finish this thing...

  9. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!

    Good luck with your site!

Bookmarks

Posting Permissions

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