Announcement

Collapse
No announcement yet.

Centering Add to Cart css

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Centering Add to Cart css

    Hi
    Could anyone help me with a bit of CSS.

    I just want the Add to Car button to be central under the price. Sounds easy, it probably is but I can't find the answer. I have tried quite a few things in the html and css file, including removing "set right" in the html, but I can only make it either fully right or fully left.

    Any ideas welcome!

    http://www.nicestuff.co.uk/acatalog/Radios-p1.html

    #2
    Is this of any help?

    Align in CSS
    Regards

    Jason

    Titan Jewellery (Swift Design)
    Zirconium Rings
    Damascus Steel Rings

    Comment


      #3
      I did have a look yesterday but the style is surrounded by two float lefts and one float right. You would be best creating a new div for that button within the layout and then styling it :

      <div class="button_center">!Add to cart layout!</div>

      Then css:

      .button_center { margin-left:auto;margin-right:auto;display:block;}

      Assuming your using and image as the add to cart button. However your input style also calls a float left so you may still run into trouble, removing that style may cause unwanted affects somewhere else in your design.
      Many Thanks
      Lee
      www.mdnsupplies.co.uk
      www.hookandloopfasteners.co.uk

      Comment

      Working...
      X