Navigation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bouzy
    New Member
    • Jun 2007
    • 30

    Navigation

    I have been wanting to create a simple text based navigation for my website in the making. All the tutorials I come across make buttons and stuff. All I want is text for Home Services Portfolio Contact... I have no idea how to make such a thing. I don't want someone to code it for me but if you could give example code to show me what to do, or just tell me that would be great. Hear is an example of what I want.


    Hear is my code so far, but that might be useless in this case.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtmll/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

    <title>Goldfi sh Graphics</title>

    <link type="text/css" rel="stylesheet " href="Goldfish. css" />

    </head>
    <body>

    <div id="container" >

    <div id="banner">
    <a href="index.htm l">
    <img src="images/banner.jpg" alt= "Goldfish Graphics Banner Image" border="0"/>
    </a>
    </div>


    <div id="navigation" >
    <img src="images/navigation.jpg" alt= "navigation background image" />



    <div id="navtext">
    <p>
    </p>



    </div>
    </div>

    <div id="sidebar">

    <div id="text2">

    <h5>Testimonies </h5>
    <p>
    ""
    </p>

    <p>
    <ul>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    </ul>

    </div>
    </p>

    </div>
    </div>

    <div id="content">
    <div id="text">
    <h2>Home</h2>
    <p id="home">
    Based in the Midwest, Goldfish Graphics is a freelance design business. Goldfish Graphics is
    dedicated to working with clients to turn their ideas into unique designs. By communicating
    with our clients, we produce quality websites, layouts, print graphics, and logos
    that are affordable.

    </p>
    <h4>News (7/02/07)</h4>

    <p id="news">
    Although the Goldfish Graphics site is up and running, I am still currently learning how to better make web sites.
    Because I am still learning, all web based projects I take on now will be 50% of the price they should be. With a little patience you can have quality web designs for half the price.
    </p>
    </div>
    </div>

    <div id="footer">
    </div>



    </div>







    </body>
    </html>


    ***************

    body {

    background-color: #5f656b;
    font-family: Tahoma, "Arial Unicode MS", Arial, sans-serif, serif;
    font-size: .8em;
    color: #eea103

    }

    /*Divs*/

    #content {

    height: 505px;
    width: 518px;
    background-image: url(images/content.jpg);
    background-repeat: no-repeat;
    margin-top: 4%;
    margin-left: 27.2%;






    }


    #sidebar {


    height: 505px;
    width: 153px;
    background-image: url(images/sidebar.jpg);
    background-repeat: no-repeat;
    margin-top: 4%;
    padding-top: 3%;
    padding-left: 3.5%;
    margin-left: auto;
    float: left;


    }


    #navigation {

    margin: 0%;
    padding-top: 0%;
    border-width: 0%;
    height: 28px;

    }



    #banner {

    border-width: 0%;
    margin: 0%;
    padding: 0%;
    margin-top: 0%;
    height: 119px;



    }

    #footer {

    height: 28px;
    width: 712px;
    background-image: url(images/footer.jpg);
    background-repeat: no-repeat;
    margin-top: 4.2%;
    }

    #container {

    width: 712px;
    margin: auto;
    position: relative;
    padding: 0%;
    background-color: #3c4246;


    }

    #home {

    width: 442px;

    }

    #news {

    width: 442px;

    }


    #text2 {

    padding-left: 3%;
    padding-top: 5%;

    }


    #text {

    padding-left: 5.5%;
    padding-top: 5%;

    }

    #footer {

    padding-top: .01%;
    padding-left: 3%;
    font-size: .7em;
    }

    a:link {


    }


    a: hover {


    }


    #links {

    padding: %;
    margin: 0%;

    }
  • jessnoonyes
    New Member
    • Jul 2007
    • 9

    #2
    Well you can either just do it like this:

    <a href="home.html ">Home</a> &nbsp; &nbsp; &nbsp; <a href="services" >Services</a> &nbsp; &nbsp; &nbsp; <a href="portfolio .html">Portfoli o</a> &nbsp; &nbsp; &nbsp; <a href="contact.h tml">Contact</a>

    as just a single line of text links with blank spaces in between,

    Or you can set up a table

    <table width="100%" cellpadding="2" cellspacing="2" ><tr>
    <td width="25%"><a href="home.html ">Home</a></td>
    <td width="25%"><a href="services" >Services</a>
    <td width="25%"><a href="portfolio .html">Portfoli o</a>
    <td width="25%"><a href="contact.h tml">Contact</a>
    </tr>
    </table>

    Comment

    • Bouzy
      New Member
      • Jun 2007
      • 30

      #3
      Whats the advantages of theme each? What I mean is will it be easy to position one or another?

      Comment

      • jessnoonyes
        New Member
        • Jul 2007
        • 9

        #4
        I would use the table method. If it's in percentages then it will automatically resize depending upon the browser resolution

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          Originally posted by jessnoonyes
          I would use the table method. If it's in percentages then it will automatically resize depending upon the browser resolution
          Hm. Never use tables for layout. That's what CSS is for.

          Comment

          Working...