Inline input elements: search bar and submission button created using jQuery Mobile

I have a specific goal in mind:

However, this is the outcome I am seeing:

To better understand the issue, please check out the JSFiddle using a web-kit browser (Chrome or Safari): http://jsfiddle.net/KqEqN/

The problem occurs when the screen is narrowed even though there seems to be enough space for the button. I've tried adjusting the CSS to add padding to the right of the button with no success. And where did that random horizontal line come from?

Answer №1

Being new to jQuery Mobile, I may not be approaching this correctly. My suggestion is to consider adding additional classes rather than trying to override jQuery Mobile's theme.

To resolve the issue, try the following:

.ui-input-search {
    width: 75px;
    display: inline-block;
}

See it in action here: http://jsfiddle.net/AbCdE/

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How can I use HTML/CSS to adjust the margin-top of text without affecting the background

Looking for a solution to move specific text downwards within its container without affecting the entire layout. @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,300"); * { margin: 0; padding: 0; box-sizing: border-box; } ...

What is the best way to eliminate excessive margin-bottom on a floating image?

Is it possible to maintain the same margin at the right and bottom of an image when using <img> inside <p><img style="float:left">dummy text dummy text dummy text dummy text</p>? ...

Changing the background color based on the selected value in the dropdown menu: a step-by-step guide

I am looking to update the header color based on the selected option in a drop-down menu. For example, if option 1 is chosen, the data-background-color will switch to green. HTML: <div class="card-header" data-background-color="blue" style="position: ...

Resolving Problems with Ion-Split-pane in the Latest Versions of Angular and Ionic

There seems to be a perplexing issue with the ion-split-pane element that I just can't wrap my head around. Once I remove the split-pane element, the router-outlet functions perfectly fine. The navigation is displayed after a successful login. The on ...

The setInterval function for the automated image slider is experiencing issues and is not functioning properly

I am facing an issue where the third photo in the slider does not appear initially. Eventually, the slide fails completely, causing the photos to change rapidly. Strangely, after the slide fails, the third photo sometimes appears sporadically. I am puzzl ...

instructions for creating a hover effect where one div vanishes when hovering over another div

Is there a way to make the line visible when hovering over my circular div? #line { display: none } <div id='circle'> <div id= 'line'> ...

Differences in Cross-Browser Styling for ListView Item Templates

I'm following up on my previous query regarding ListView's ItemTemplate table styling. I am still working on achieving the desired look for the ItemTemplate: ______________________________________________ | |___________Title_______ ...

HTML (Bootstrap) alerts do not always fit on a single line

Just recently ventured into the world of HTML/CSS and decided to take on my first website project using Bootstrap. Unfortunately, I've hit a roadblock and can't seem to figure out why the three rows are not aligning properly in one line. The last ...

Exploring and organizing data for customized lists in Ruby/ERB

I am looking to create a list layout similar to the one found here: This is the code I have so far: <div class="wrapper"> <ol> <% CraigslistZipCode.select("distinct region, fee").each do |record| %> <li><%= record.region ...

The picture above just won't stay within the div

Ensuring my website is responsive across all devices has been a priority for me. However, I have encountered an issue where, upon scaling down the size of the web browser, an image positioned within a div starts to overflow. While attempting to address thi ...

Tips for utilizing numerous tables with multiple selection tags

I am struggling with a jQuery issue involving multiple container elements with the class "product-sizes". Each container contains a select option for choosing between inches and centimeters, which triggers the corresponding table display. The problem arise ...

Creating my very own slider

I'm currently working on a slider and encountering a few challenges. 1) The animation on the first slide isn't functioning as expected. 2) The spacing for the last box initially appears incorrect, but adjusts as the slider progresses. 3) I&apo ...

Include the attribute exclusively for the initial division within a group of corresponding elements

Looking to change the appearance of this HTML code without being able to edit it directly? <form method="POST" id="go123pago"> <div align="center" style="width:220px"> <div style="float:left;padding:10px;width:190px"> ...

"Troubleshooting: Why Won't My Entire Div Display on the

Struggling with a website rebuild due to my limited knowledge of HTML/CSS. For some reason, this whole div section isn't showing up as it should. Here is the problematic div: <div class="container clearfix"> <div class="border-shade sli ...

unique navbar color transition effect specifically for the homepage

I have successfully created a function called changeColour in my code that changes the color of the navbar when scrolling past a certain point. However, I am encountering an issue where I only want this effect to be applied on the Home page. I would like a ...

Tips for showcasing the individual product page in full width on woocommerce

Here is a link to the single product page: I am wondering if it's possible to extend the product summary drop-down menus all the way to the right without impacting the mobile site? Thank you. ...

styling a flex container with aligned text and buttons

I'm attempting to align text on the left and button controls on the right within a display: flex div. <CustomFieldContainer> <StyledWellContainer> <FieldDetails key={id}> <H4 bold>{label}</H4> <Styled ...

When running `node compile.js`, no combined CSS file is being created

I have finally mastered the art of setting up and executing the "node compile.js" file in the claro theme folder to compile each *.less file into its corresponding *.css file. However, I noticed that the old claro.css file remains unchanged. Is this the in ...

What is the best way to arrange multiple images on top of a single image?

I have a collection of six adorable kitten images in my portfolio. How can I arrange these images on top of a beautiful lake wallpaper without any white space? I want the word "Portfolio" and the six kittens displayed over the lake background, followed by ...

How do I center text in a table header and align it to the right with its siblings in HTML?

When working on my projects, I often come across a design challenge. I need to align cell text in the center of the header and then right-align it with the data above and below, all within a bordered table. The cells in the image below are spread across di ...