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 8805379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:51:03+00:00 2026-06-14T01:51:03+00:00

I am using Jquery to create a toolbar across the top of my page.

  • 0

I am using Jquery to create a toolbar across the top of my page.

I currently have it “formatted” correctly. I use formatted loosely as the buttons are laid out correctly and there exists a bar going across the top of my page as well.

However, the buttons are not within the toolbar. The only way I could get the buttons formatted into their locations (one on the left, one on the right) was to float the buttons to the left and right, but that in turn took them out of the toolbar.

Here is the code with the buttons in the right location:

#toolbar
{
        display: block;
        padding: 2px;
}
.right
{
        float: right;
}
.left
{
        float: left;
}
</style>
<title>Lobby</title>

</head>
<body>
        <span id="toolbar" class="ui-widget-header ui-corner-all">
                <input id='button' class='left' type="submit" value="My Decks" onclick="window.location.href='listDecks.php'"/>
                <input id='button' class='right' type='submit' name='log-out' value='Logout' onclick="window.location.href='logout.php'" />
        </span>

Originally I had which produced the buttons within the toolbar, but on the same side (left):

#toolbar
{
        display: block;
        padding: 2px;
}
</style>
<title>Lobby</title>

</head>
<body>
        <div align="left">
        <span id="toolbar" class="ui-widget-header ui-corner-all">

                <input id='button' class='left' type="submit" value="My Decks" onclick="window.location.href='listDecks.php'"/>
                <input id='button' class='right' type='submit' name='log-out' value='Logout' onclick="window.location.href='logout.php'" />
        </div>
        </span>

How can I get the buttons on opposite sides of the page as well as in the bar?

  • 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-06-14T01:51:04+00:00Added an answer on June 14, 2026 at 1:51 am

    You are not ending your span and div properly . in code above .Span is inside div but you are ending div before span . Fix that and see if it helps.

    Also I would use hyperlinks than buttons for case like this .

    <div align="left">
            <span id="toolbar" class="ui-widget-header ui-corner-all">
    
                    <input id='button' class='left' type="submit" value="My Decks" onclick="window.location.href='listDecks.php'"/>
                    <input id='button' class='right' type='submit' name='log-out' value='Logout' onclick="window.location.href='logout.php'" />
    
            </span></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery to create custom radio buttons and i have a problem.
I am using jquery to create two sets of tabs on a page. The
I am using jQuery mobile to create the following page. http://ielts.progmic.com/iOS/college.php?title=Royal+College+Of+Arts In the link
I'm using jQuery Cycle to create several slideshows on the same page. Some of
I'm using jQuery UI, and have built a toolbar (a div element), with button
I'm using jQuery to create a dialog that should pop up on top of
I'm using jQuery to create a simple, but large dropdown menu. I have some
I want to use jQuery to create a new div on the page when
I'm using jQuery Mobile to create a mobile (obviously) website. I have a list
I am using jQuery to create a set of combo buttons in my Chrome

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.