Jump to content

[Solved] Put the order button right next to the price


Recommended Posts

At the moment my order button is slightly below the fold on some regular used resolutions (1280*800). Therefore I'm now trying to get the order button on the same height as the price. This with the price and quantity to the left and the order button next to it on the right.
It shouldn't be too difficult to fix but I can't seem to get the order button right next to the quantity and price. I can't get it on the same height as the price which doesn't look right design wise.

Does anyone have a solution for this?

Here is an example of a product page that I'm trying this for: http://www.ruconnected.nl/kabels/15-hdmi-kabel.html

Link to comment
Share on other sites

I'll give it a try.

You need to put the order button inside the paragraph with the price as follows:

<!-- prices -->



€ 22,95
                       <!-- de tekst incl. BTW laten zien incl. BTW-->
                                                        
           <input type="submit" name="Submit" value="Bestellen"></p>



The rest is just a matter of styling. Just make sure your styling matches the below:

#primary_block form#buy_block {
   float: right;
   font-size: 1.1em;
   margin-top: 1em;
   width: 375px;
}

#primary_block form#buy_block p.price {
   float: none;
   font-size: 1.05em;
   margin: 0;
   text-align: right;
   width: 100%;
}

input.button_cart, input.button_cart_disabled {
   background-image: url("../img/button-cart.jpg");
   background-position: left top;
   background-repeat: no-repeat;
   border: medium none;
   color: #FFFFFF !important;
   cursor: pointer;
   display: block;
   float: right;
   font-size: 16px !important;
   font-weight: 700;
   height: 50px;
   letter-spacing: -1px;
   line-height: 50px;
   padding-right: 10px;
   text-align: right;
   text-decoration: none !important;
   width: 200px;
}



I hope this helps. That's how I got the result you see in the image.

Marty Shue

Link to comment
Share on other sites

Thanks a lot, although I can't seem to get it to work. If I do these changes in firebug the quantity field always stays below the order button instead of next to it. In your picture that doesn't seem to be a problem. What am I missing here...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...