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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:38:48+00:00 2026-05-11T13:38:48+00:00

This seems like it should be something easy, yet it is driving me mad!!

  • 0

This seems like it should be something easy, yet it is driving me mad!!

I need to be able to position a button, or other input element for that matter to the right of a header element, which also contains text.

The basic markup is:

<h3>Order Details  <input type='button' value='Refund' id='btnRefund'  /></h3> 

The desired result is that the text ‘Order Details’ is at the left of the H3 Element and the button is at the right. The obvious solution is to add align:right to the button, however this causes the button to appear outside the H3 element or not inline with the text.

I’ve tried various combination of the position property on the H3 element and wrapping the text in div and span tags.

I’m sure I kick myself when I get the solution to this.

Edit/Update: I am sticking with nickf’s answer (for now anyway) as I’m dealing with quite an old system with the H3 already styled in the external style sheet including background colour etc. There are also many instances of the H3 tag being used without any further elements nested in it and to me it does not make sense to have a div tag replicating the style of the H3 tag to accomodate this.

If I were starting from scratch I might have considered Mark’s answer.

  • 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. 2026-05-11T13:38:49+00:00Added an answer on May 11, 2026 at 1:38 pm

    You have to put it first

    <h3><input type='button' style='float: right'>Order Details</h3> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems like there should be something shorter than this: private string LoadFromFile(string path)
Seems like in Perl this should be easy or a module, but I have
It seems like this should be straightforward but I'm boggling. I've got my listview
First check out this code. I seems like it should work for me, but
Anybody have a slicker way to do this? Seems like it should be easier
This seems like a pretty softball question, but I always have a hard time
This seems like a simple question, but I can't find it with the Stack
This seems like a very simple and a very common problem. The simplest example
This seems like a silly question but I would really like your comments and
This seems like such a trivial problem, but I can't seem to pin how

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.