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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:27:57+00:00 2026-06-07T16:27:57+00:00

I am having difficulties manipulating an input field, image and text all in the

  • 0

I am having difficulties manipulating an input field, image and text all in the same line. I have set float to the image and text but it doesnt solve the issue. How can I make the image, text and input be all in one line for all browsers?

enter image description here

CSS

h1 {
    letter-spacing: 2px;
    font-style: italic;
    padding: 5px;
    color: #898989;
    font-size: 140%;
    font-weight: lighter;
    margin: 0px;

}



h2 {
    color: #333333;
    font-weight: bold;
    font-size: 105%;
    margin: 0px;

}

input, select {
    border: 1px solid #C3C3C3;
    background: #ffffff;
    padding: 3px 4px;
    color: #222;
    margin: 0px 5px 0px 0px;
    border-radius: 7px 7px 7px 7px;
    font-family: trebuchet, 'trebuchet ms', 'tahoma', sans-serif;
}

input:focus, select:focus {
    outline: none;
}

.InputGroup {
    display: inline-block;
    padding: 3px 4px;
    border: 1px solid #FFF;
    border-radius: 7px 7px 7px 7px;
}

input.medium, select.medium{
    width:55%;
}

.youTubePng {

float:left; padding-right: 5px;


}

.youTubeLink {
padding-right:5px; float:left; padding-top: 3px;

}

HTML

<form autocomplete="off" enctype="multipart/form-data" method="post"  name="form">
                    <h1 style="padding-left:0;">Video(Optional)</h1>
                     <img src="images/YouTube.png" class="youTubePng" />
                     <h2 id="youTubeLink">Link:</h2>

                    <input id="ytinput" name="ytinput" type="text" class="field text medium" value="<? $url ?>" maxlength="255" tabindex="1"    />


       </form>
  • 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-07T16:27:58+00:00Added an answer on June 7, 2026 at 4:27 pm

    First: remove the </html> from your <form>.
    Try to wrap the desired into a <label> !
    Remove the <h2> and replace it with a <span>

    jsBin demo

    <label for="ytinput">
        <img src="images/YouTube.png" class="youTubePng" />
        <span id="youTubeLink">Link:</span>
    </label>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having difficulties creating a query. I have googled a lot but did not
I am having difficulties with a program that I have been working on all
I am having difficulties in returning an input field value through a JS function.
I having difficulties setting my footer properly. I have a Bottom navigation bar as
I'm having difficulties working with some legacy enums that have multiple zero values. Whenever
I'm having difficulties adding momentum to my spinning wheel. I have this wheel (something
I am having difficulties to code a simple jquery enlarge image feature on a
I am having difficulties scaling the size of an image on an HTML canvas
I'm having difficulties reading an app.config using the ConfigurationManager. I have a custom section,
I'm having difficulties seeing why one way works and way doesn't. I have; switch

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.