Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6604807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:12:22+00:00 2026-05-25T19:12:22+00:00

Hello I have a django app which has a horizontal navigation. What happen recently,

  • 0

Hello I have a django app which has a horizontal navigation. What happen recently, I decide to connect from my windows machine to use my app. This is what my horizontal nav looked like below.

enter image description here

For some reason, backup data and help are moved into a new line. But I want these two tabs to be in the same horizontal nav line. I tried using a different web browsers and the menu still looked the same.

One thing I can think of why this has happen is might be my resolution but I am not sure. My windows machine has a screen resolution of 1440 X 900 wile my linux machine has a resolution of 1024 x 768.

I wonder if there to make all my tabs stay in the same line. Might need to add some css to do it.

base_menu.html

   <ul id="toc">
            <li><a href="{% url mmc.views.return_clients %}"><span>Home</span></a></li>
            <li><a href="{% url mmc.views.quote_step1 %}"><span>Create quote/order</span></a></li>
            <li><a href="{% url mmc.views.search_item %}"><span> Item Search</span></a></li>
            <li><a><span>Service orders</span></a><br/>
            <ul class="subnav">
                    <li><a href="{% url mmc.views.order_list %}"><span>Storage orders</span></a></li>
                    <li><a href="{% url mmc.views.order_list_service 1 %}"><span>Delivery orders</span></a></li>
                    <li><a href="{% url mmc.views.order_list_service 2 %}"><span>Collection orders</span></a></li>
            </ul>
            </li>
            <li><a><span>Collection/Delivery</span></a><br/>
            <ul class="subnav">
                    <li><a href="{% url mmc.views.service_list 1 %}"><span>Delivery list</span></a></li>
                    <li><a href="{% url mmc.views.service_list 2 %}"><span>Collection list</span></a></li>
            </ul>
            </li>
            <li><a href="{% url mmc.views.invoice_list %}"><span>Export for invoicing</span></a></li>
            <li><a href="{% url mmc.views.dbbackup %}"><span>Backup data</span></a></li>
            <li><a href="{% url mmc.views.help_index %}" target="_blank" onclick="return showAddAnotherPopup(this);"><span>Help</span></a></li>
    </ul>

Update: base.css file

ul#toc {
    height: 2em;
    list-style: none;
    margin-left: 200px;
    padding: 0;
    position relative;
}   

ul#toc li{
    background:#ffffff url(../images/tab.png);
    float: left;
    margin: 0 1px 0 0;

}

ul#toc span {
    background: url(../images/tab.png) 100% 0;
    display: block;
    line-height: 2em;
    padding-right: 10px;
}

ul#toc a {
    color: #000000;
    height: 2em;
    float: left;
    text-decoration: none;
    padding-left: 10px;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:12:23+00:00Added an answer on May 25, 2026 at 7:12 pm

    My windows machine has a screen resolution of 1440 X 900 while my linux
    machine has a resolution of 1024 x 768.

    Are you sure this isn’t reversed?

    Your problem would make more sense if your windows resolution was smaller.


    If that’s the case, one thing you can do is to set a specific pixel width for the nav.

    Then, if the resolution is smaller than the viewport, you will have a horizontal scroll but the nav will all be one line.

    EDIT

    From the comment below How would I set up a specific width on my nav?

    If ul#toc is the nav container, then

    ul#toc {
        height: 2em;
        list-style: none;
        margin-left: 200px;
        padding: 0;
        position relative;
        width:1440px; //OR SOME OTHER #
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Django app has a Person table, which contains the following text in a
Hello I have a django app dealing with Sales/purchases. What I want to do
Hello I have been recently working on Django search forms recently and have tired
Hello I need to have multiple language support of my django admin application.I can
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello I have a table on which I have denied SELECT privs to a
My code in the view: from django.contrib import messages messages.add_message(request, messages.INFO, 'Hello world.') I
i have a django form which generates the qrcode, the form does show up
I have a Django site in which I show a success message to the
Hello i have recently started using vim editor ( actually the plugin for netbeans

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.