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

  • Home
  • SEARCH
  • 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 9174263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:43:25+00:00 2026-06-17T16:43:25+00:00

I am creating a simple eCommerce application using rails. I have a form on

  • 0

I am creating a simple eCommerce application using rails. I have a form on each product page that allows the user to select a number of color variants for that product and then a simple add to cart button.

The problem is that, on two different pages, the button appears in two different places while the code is exactly the same.

Here is the first example, it only shows three variants, and the button appears under these variants, like it should

enter image description here

The html to generate this is as follows (jsfiddle code example here http://jsfiddle.net/zYAVW/)

<form accept-charset="UTF-8" action="http://192.168.1.113:3000/orders/populate" method="post">    
<ul> # A bunch of styled list elements # </ul>
<br><br>
<button type="submit">Add to cart</button>
</form>

But on my other page, where I have around 85 list elements the button appears inline with the styled list elements, but uses the EXACT same code, there is no css styling for the button or form and I can’t figure out anyway to make it stay under the list.

Here is the image of the second page

enter image description here

(jsfiddle code example here http://jsfiddle.net/zBAMN/)

Does anyone know

  1. why this is happening?
  2. how to fix it?

Thanks!

  • 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-17T16:43:26+00:00Added an answer on June 17, 2026 at 4:43 pm

    Use overflow:hidden on the ul element.

    JSFiddle: http://jsfiddle.net/zBAMN/3/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating simple payment form that allows users to select from several different gateways
I'm creating simple form validation that excludes any entries that have a letter in
I'm creating a simple game using HTML and CSS. I have a background image
I have seen several methods for creating simple fixed width single column layout using
I am creating simple blog web application using play framework and i want to
i am creating simple side menu, such that when the user hover on item
I am new to maven and i have been creating simple web application with
I'm creating simple application, some kind of portfolio. I've heard that it's better to
I'm creating simple example on JSF. It's small Login application. My problem is duplicate
I am creating simple app on Silverlight 4. In folder of View I have

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.