Results 1 to 2 of 2

Thread: Footer Layout

  1. #1
    Join Date
    Jun 2012
    Posts
    33
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Question Footer Layout

    The image below is the design for a footer, with links in top left, slogan top right, copyright bottom left and phone number bottom right. When I do this in html I can't get the objects on the bottom in the right place. I am trying to make a flexible screen so I don't want to be too specific with sizes.

    Click image for larger version. 

Name:	footer design.jpg 
Views:	318 
Size:	66.2 KB 
ID:	5318

    Below is the HTML and CSS I have done.

    HTML

    HTML Code:
    <div id="foot">
    
    	<div id="navigation">
            <ul>
            	<li><a href="#">Home page</a></li>
                <li><a href="#">About us</a></li>
                <li><a href="#">Contact us</a></li>
                <li><a href="#">Client access</a></li>
                <li><a href="#">Site Map</a></li>
            </ul>
        </div>
        
        <div id="navigation">
            <ul>
            	<li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
            </ul>
        </div>
        
        <div id="navigation">
            <ul>
            	<li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
                <li><a href="#">Service</a></li>
            </ul>
        </div>
        
        <div id="slogan">
        	Getting IT right for you and keeping you connected
        </div>
        
        <div id="copyright">
        	Website designed and developed by <a href="#">Kent Tec</a>
        </div>
        
        <div id="contact">
        	01843 232777
        </div>
        
    </div>

    CSS

    Code:
    /*-------Footer------*/
    
    #foot{
    	width:100%;
    	height: 200px;
    	overflow:hidden;
    	background-image:url(../images/footbg.jpg);
    	background-repeat:repeat-x;
    }
    
    /*--Links--*/
    
    #navigation {
    	position:relative;
    	overflow:hidden;
    	width:150px;
    	height:auto;
    	float:left;
    	top:10px;
    	left:10px;
    	font-family:"Agency FB", Tahoma, Verdana, Arial;
    	font-size:16px;
    }
    
    #navigation ul {
    	width:100%;
    	height:auto;
    	margin:0;
    	padding:0;
    	list-style-type:none;
    	text-align:left;
    }
    
    #navigation ul li {
    	margin:0;
    	padding:0;
    	display:block;
    	height:30px;
    	line-height:25px;
    }
    
    #navigation ul li a {
    	text-decoration:none;
    	color:#000;
    }
    
    #navigation ul li a:hover {
    	color:#0033FF;
    }
    
    /*--Links--*/
    
    #slogan {
    	float:right;
    	font-size:16px;
    	font-family:"Segoe Print", "MV Boli", "Lucida Calligraphy", "Freestyle Script", Script;
    	margin-top:10px;
    	width:500px;
    	text-align:right;
    }
    
    #copyright{
    	float:left;
    	font-family:"Agency FB", Tahoma, Verdana, Arial;
    	font-size:18px;
    	width:300px;
    }
    
    #contact {
    	float:right;
    	font-family:"Agency FB", Tahoma, Verdana, Arial;
    	font-size:24px;
    	color:#FFF;
    	width:200px;
    	text-align:right;
    	margin-top:125px;
    }
    
    
    /*-------Footer------*/

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there gemzilla,

    try it like this...
    Code:
    
    <!DOCTYPE html>
    <html lang="en">
    <head>
    
    <meta charset="utf-8">
    
    <title>untitled document</title>
    
    <style>
    #foot{
        min-width:776px;
        padding:10px;
        overflow:hidden;
        background-image:url(../images/footbg.jpg);
        font-family:'agency fb',tahoma,verdana,arial,sans-serif;
     }
    .navigation {
        overflow:hidden;
        float:left;
        margin:0 10px 10px 0;
        padding:0 44px 0 0;
        list-style-type:none;
        font-size:16px;
     }
    .navigation  li {
        height:30px;
        line-height:25px;
     }
    .navigation  a {
        text-decoration:none;
        color:#000;
     }
    .navigation a:hover {
        color:#fff;
     }
    #slogan {
        float:right;
        font-family:'segoe print','mv boli','lucida calligraphy','freestyle script',cursive;
        font-size:16px;
     }
    #copyright {
        clear:both;
        float:left;
        font-size:18px;
     }
    #copyright a {
        color:#000;
     }
    #copyright a:hover {
        color:#fff;
     }
    #contact {
        float:right;
        font-size:24px;
        color:#fff;
     }
    </style>
    
    </head>
    <body>
    
    <div id="foot">
    
    <ul class="navigation">
     <li><a href="#">Home page</a></li>
     <li><a href="#">About us</a></li>
     <li><a href="#">Contact us</a></li>
     <li><a href="#">Client access</a></li>
     <li><a href="#">Site Map</a></li>
    </ul>
    <ul class="navigation">
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
    </ul>
    <ul class="navigation">
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
     <li><a href="#">Service</a></li>
    </ul>
        
    <div id="slogan">Getting IT right for you and keeping you connected</div>
        
    <div id="copyright">Website designed and developed by <a href="#">Kent Tec</a></div>
        
    <div id="contact">01843 232777</div>
        
    </div>
    
    </body>
    </html>
    coothead

  3. The Following User Says Thank You to coothead For This Useful Post:

    gemzilla (12-24-2013)

Similar Threads

  1. Replies: 1
    Last Post: 03-20-2013, 09:48 PM
  2. Footer placement in layout wrong
    By PhxVyper in forum CSS
    Replies: 3
    Last Post: 08-18-2010, 02:37 AM
  3. Replies: 1
    Last Post: 06-23-2009, 11:15 PM
  4. CSS Div Footer Layout Question
    By dghosh2602 in forum CSS
    Replies: 3
    Last Post: 07-24-2008, 02:24 AM
  5. Replies: 3
    Last Post: 05-17-2007, 05:11 PM

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
  •