Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2016
    Posts
    1
    Member #
    53381

    CSS Button styling - Need some help -html css

    Hi ,

    I need some help with this button styling ,

    see link (clikc on edit code)
    add to cart test | CSSDeck

    as you can see is the add to cart text out of line ... and does the 'imput' command fill up my button.
    how can i center the text back into the button?


    please advice

    thanks,

  2.  

  3. #2
    Junior Member Krazyhawk's Avatar
    Join Date
    Feb 2016
    Location
    IL, USA
    Posts
    23
    Member #
    53438
    Liked
    7 times
    The button element has an opening and closing tag. Anything you put within it will be text within that button.

  4. #3
    Junior Member flowboat's Avatar
    Join Date
    Oct 2015
    Posts
    18
    Member #
    52240
    Liked
    8 times
    Make imput 40 go away, better.
    Last edited by flowboat; Mar 31st, 2016 at 01:07 AM.

  5. #4
    Junior Member
    Join Date
    Mar 2016
    Location
    Chicago, IL
    Posts
    24
    Member #
    53671
    Liked
    8 times
    The button tag is not meant to enclose other tags. You will have to separate the button from the other elements and add the onclick event separately to the other elements.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:58 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com