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 5 of 5
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Issues with navigation bar

    Good morning all,
    My navigation bar has two rows when all I want it to do is go across the page. I've tried fiddling around with the CSS but nothing came up yet. Could anyone shed some light on me?

    Here is my website link: http://www.angelfire.com/apwdesigns/strategicsolutions

    And CSS link: http://www.angelfire.com/apwdesigns/default.css

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Could please show your working page? The above link show the code as such since its source is in the form of html entities
    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>CityLights by Free Css Templates</title>
    <meta name="keywords" content="" />
    
    <meta name="description" content="" />
    <link href="default.css" rel="stylesheet" type="text/css" media="screen" />
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is all the coding for my homepage. www.angelfire.com/apwdesigns/strategicsolutions:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <!--

    Design by Free CSS Templates
    http://www.freecsstemplates.org
    Released for free under a Creative Commons Attribution 2.5 License

    Title : CityLights
    Version : 1.0
    Released : 20081119
    Description: A Web 2.0 design with fluid width suitable for blogs and small websites.

    -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>CityLights by Free Css Templates</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="default.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <!-- start header -->
    <div id="header">
    <div id="logo">
    <h1><a href="#">CityLights</a></h1>
    <p><a href="http://www.freecsstemplates.org/">By Free CSS Templates</a></p>
    </div>
    <div id="menu">
    <ul>
    <li class="current_page_item"><a href="#">Home</a></li>
    <li><a href="#">Recruiting Services</a></li>
    <li><a href="#">IT Profressionals</a></li>
    <li><a href="#">Employer Services</a></li>
    <li class="last"><a href="#">Training Services</a></li>
    <li><a href="#">Solutions</a></li>
    <li><a href="#">The Green Affect</a></li>
    </ul>
    </div>
    </div>
    <!-- end header -->
    <!-- start page -->
    <div id="banner">&nbsp;</div>

    <div id="page">
    <!-- start sidebar -->
    <div id="sidebar">
    <ul>
    <li id="categories">
    <h2>Categories</h2>
    <ul>
    <li><a href="#">Lorem Ipsum</a> (1) </li>
    <li><a href="#">Uncategorized</a> (4) </li>
    </ul>
    </li>
    <li>
    <h2>Lorem Ipsum Dolor</h2>
    <ul>
    <li><a href="#">Nulla luctus eleifend purus</a></li>
    <li><a href="#">Praesent scelerisque </a></li>
    <li><a href="#">Ut nonummy rutrum sem</a></li>
    <li><a href="#">Pellentesque tempus nulla</a></li>
    <li><a href="#">Fusce ultrices fringilla metus</a></li>
    </ul>
    </li>
    <li>
    <h2>Lorem Ipsum Dolor</h2>
    <ul>
    <li><a href="#">Pellentesque tempus nulla</a></li>
    <li><a href="#">Fusce ultrices fringilla metus</a></li>
    <li><a href="#">Praesent mattis condimentum </a></li>
    </ul>
    </li>
    <li>
    <h2>Lorem Ipsum Dolor</h2>
    <ul>
    <li><a href="#">Nulla luctus eleifend purus</a></li>
    <li><a href="#">Praesent scelerisque </a></li>
    <li><a href="#">Ut nonummy rutrum sem</a></li>
    <li><a href="#">Pellentesque tempus nulla</a></li>
    </ul>
    </li>
    <li>
    <h2>Lorem Ipsum Dolor</h2>
    <ul>
    <li><a href="#">Nulla luctus eleifend purus</a></li>
    <li><a href="#">Praesent scelerisque </a></li>
    <li><a href="#">Ut nonummy rutrum sem</a></li>
    <li><a href="#">Pellentesque tempus nulla</a></li>
    </ul>
    </li>
    </ul>
    </div>
    <!-- end sidebar -->
    <!-- start content -->
    <div id="content">
    <div class="post">
    <div class="title">
    <h2><a href="#">About this Template</a></h2>
    <p><small>Posted on August 20th, 2007 by <a href="#">Free CSS Templates</a></small></p>
    </div>
    <div class="entry">
    <p>This is <strong>CityLights</strong>, a free, fully standards-compliant CSS template designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>. This free template is released under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attributions 2.5</a> license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it </p>
    <p>This template is also available as a <a href="http://www.freewpthemes.net/preview/CityLights">WordPress theme</a> at <a href="http://www.freewpthemes.net/">Free WordPress Themes</a>.</p>
    </div>
    <p class="links"><a href="#" class="more">Read More</a> <a href="#" class="comments">No Comments</a></p>
    </div>
    <div class="post">
    <div class="title">
    <h2><a href="#">Praesent condimentum</a></h2>
    <p><small>Posted on August 20th, 2007 by <a href="#">Free CSS Templates</a></small></p>
    </div>
    <div class="entry">
    <p>Etiam arcu dui, faucibus eget, placerat vel, sodales eget, orci. Donec ornare neque ac sem. Mauris aliquet. Aliquam sem leo, vulputate sed, convallis at, ultricies quis, justo. Donec nonummy magna quis risus. Quisque eleifend. Phasellus tempor vehicula justo. Aliquam lacinia metus ut elit. Suspendisse iaculis mauris nec lorem.</p>
    <ol>
    <li><a href="#">Integer sit amet pede vel arcu aliquet pretium.</a></li>
    <li><a href="#">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</a></li>
    <li><a href="#">Phasellus nec erat sit amet nibh pellentesque congue.</a></li>
    <li><a href="#">Pellentesque quis elit non lectus gravida blandit. <br />
    </a></li>
    </ol>
    </div>
    <p class="links"><a href="#" class="more">Read More</a> <a href="#" class="comments">No Comments</a> </p>
    </div>
    <br style="clear: both;" />
    </div>
    <!-- end content -->
    <br style="clear: both;" />
    </div>
    <!-- end page -->
    <!-- start footer -->
    <div id="footer">
    <p class="legal">
    &copy;2007 CityLights. All Rights Reserved.
    &nbsp;&nbsp;&bull;&nbsp;&nbsp;
    Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>
    &nbsp;&nbsp;&bull;&nbsp;&nbsp;
    Icons by <a href="http://famfamfam.com/">FAMFAMFAM</a>. </p>
    </div>
    <!-- end footer -->
    </body>
    </html>


    And here is for the default.css

    /*
    Design by Free CSS Templates
    http://www.freecsstemplates.org
    Released for free under a Creative Commons Attribution 2.5 License
    */

    body {
    margin: 75px 0 0 0;
    padding: 0;
    background: #FFFFFF url(img01.jpg) repeat-x left top;
    text-align: justify;
    font: 15px Arial, Helvetica, sans-serif;
    color: #666666;
    }

    form {
    margin: 0;
    padding: 0;
    }

    input {
    padding: 5px;
    background: #FEFEFE url(img13.gif) repeat-x;
    border: 1px solid #626262;
    font: normal 1em Arial, Helvetica, sans-serif;
    }

    h1, h1 a, h2, h2 a, h3, h3 a {
    margin: 0;
    text-decoration: none;
    font-family: Tahoma, Georgia, "Times New Roman", Times, serif;
    font-weight: normal;
    color: #3CB7FF;
    }

    h1 {
    letter-spacing: -1px;
    font-size: 2.2em;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    }

    h2 {
    letter-spacing: -1px;
    font-size: 2em;
    }

    h3 {
    font-size: 1em;
    }

    p, ol, ul {
    margin-bottom: 2em;
    line-height: 200%;
    }

    blockquote {
    margin: 0 0 0 1.5em;
    padding-left: 1em;
    border-left: 5px solid #DDDDDD;
    }

    a {
    color: #3CB7FF;
    }

    a:hover {
    text-decoration: none;
    }

    /* Header */

    #header {
    width: 960px;
    margin: 0 auto;
    height: 42px;
    }

    #logo h1, #logo p {
    float: left;
    text-transform: lowercase;
    }

    #logo h1 {
    font-size: 2.4em;
    padding: 0px 0 0 0px;
    }

    #logo p {
    margin: 0;
    padding: 18px 0 0 4px;
    line-height: normal;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    }

    #logo a {
    text-decoration: none;
    color: #222426;
    }

    #logo p a {
    color: #222426;
    }

    #menu {
    float: right;
    margin-top: 5px;
    }

    #menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    }

    #menu li {
    display: block;
    float: left;
    height: 42px;
    }

    #menu a {
    display: block;
    padding: 2px 20px 2px 20px;
    background: #3CB7FF;
    margin-top: 10px;
    margin-right: 2px;
    text-decoration: none;
    text-align: center;
    text-transform: capitalize;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 12px;
    color: #FFFFFF;
    }

    #menu .last {
    margin-right: 0;
    padding-right: 0;
    }

    #menu a:hover {
    background: #1B2025;
    color: #FFFFFF;
    }

    #menu .current_page_item {
    }

    #menu .current_page_item a {
    background: #1B2025;
    color: #FFFFFF;
    }


    #banner {
    background: url(img03.gif) no-repeat left top;
    width: 960px;
    height: 250px;
    margin: 0 auto;
    margin-top: 20px;
    }

    /* Page */

    #page {
    width: 960px;
    margin: 0 auto;
    padding: 40px 0 0 0;
    }

    /* Content */

    #content {
    margin-right: 340px;
    padding: 0 0px 0 0px;
    }

    .post {
    margin-bottom: 10px;
    }

    .post .title {
    font-family: Tahoma, Georgia, "Times New Roman", Times, serif;
    }

    .post .title h2 {
    padding: 0px 30px 5px 0px;
    text-transform: lowercase;
    font-weight: normal;
    font-size: 2.2em;
    color: #3CB7FF;
    }

    .title h2 a {
    color: #3CB7FF;
    }

    .post .title p {
    margin: 0;
    padding: 10px 0 10px 20px;
    background: url(img02.gif) no-repeat left center;
    border-top: 4px #D8DFE6 solid;
    line-height: normal;
    color: #3CB7FF;
    }

    .post .title p a {
    color: #3CB7FF;
    }

    .post .entry {
    padding: 0;
    }

    .post .links {
    padding: 5px 0;
    border-bottom: 1px #D8DFE6 dotted;
    margin-top: 10px;
    text-align: left;
    }

    .post .links a {
    font-weight: bold;
    }

    .post .links a:hover {
    }

    .post .links .more {
    padding: 0 0 0 20px;
    background: url(img04.gif) no-repeat left 50%;
    }

    .post .links .comments {
    margin-left: 20px;
    background: url(img05.gif) no-repeat left 50%;
    padding: 0 0 0 20px;
    }

    /* Sidebar */

    #sidebar {
    float: right;
    width: 300px;
    }

    #sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    }

    #sidebar li {
    margin-bottom: 10px;
    }

    #sidebar li ul {
    padding: 0 0px 40px 30px;
    }

    #sidebar li li {
    margin: 0;
    padding-left: 30px;
    background: url(img02.gif) no-repeat 5px 50%;
    }

    #sidebar h2 {
    padding: 0px 30px 10px 30px;
    text-transform: lowercase;
    font-weight: normal;
    font-size: 1.6em;
    color: #3CB7FF;
    }


    /* Search */

    #search {
    padding: 20px 30px 40px 30px;
    }

    #search input {
    padding: 0;
    width: 70px;
    height: 29px;
    font-weight: bold;
    }

    #search #s {
    padding: 5px;
    width: 150px;
    height: auto;
    border: 1px solid #626262;
    font: normal 1em Arial, Helvetica, sans-serif;
    }

    #search br {
    display: none;
    }

    /* Categories */

    #sidebar #categories li {
    }

    /* Calendar */

    #calendar_wrap {
    padding: 0 30px 40px 30px;
    }

    #calendar table {
    width: 100%;
    text-align: center;
    }

    #calendar thead {
    background: #F1F1F1;
    }

    #calendar tbody td {
    border: 1px solid #F1F1F1;
    }

    #calendar #prev {
    text-align: left;
    }

    #calendar #next {
    text-align: right;
    }

    #calendar tfoot a {
    text-decoration: none;
    font-weight: bold;
    }

    #calendar #today {
    background: #FFF3A7;
    border: 1px solid #EB1400;
    font-weight: bold;
    color: #EB1400
    }

    /* Footer */

    #footer {
    padding: 20px 0 10px 0;
    border-top: 2px #EEEEEE solid;
    background: #F5F5F5;
    }

    #footer p {
    margin-bottom: 1em;
    text-align: center;
    line-height: normal;
    font-size: .9em;
    background: #F5F5F5;
    }

    #footer a {
    padding: 0 20px;
    text-decoration: none;
    color: #187BD9;
    }

    #footer a:hover {
    }

    #footer .rss {
    }

    #footer .xhtml {
    }

    #footer .css {
    }

    #footer .legal a {
    padding: 0;
    }

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    At the moment you have a fixed width of 960px set by #header, and your menu buttons with the current text are too big to fit in this width.

    Try reducing the padding on #menu a to:

    Code:
    padding: 2px 15px;
    PS: If you use the code tags for your html it makes it easier to read your posting.

  • #5
    New Coder
    Join Date
    May 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Thanks alot for helping me- finally got this issue fixed. Yay!


  •  

    Posting Permissions

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