Unconfigured Ad Widget

Collapse

I need some quick help with some HTML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tenpercentfirearms
    Vendor/Retailer
    • Apr 2005
    • 13007

    I need some quick help with some HTML

    Please see my TaftIDPA website.



    Scroll down to my t-shirts for sale.

    What code do I use to move my buttons around for the colors and adding to cart. Ideally I would like to have the color of the button go below its corresponding shirt in the photo above. So instead of cascading down, the buttons go across.

    Here is my current button code so you don't have to view source.

    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="B5PSQM4M67B8G">
    <table><b>PINK</b>
    <tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
    <option value="Small">Small </option>
    <option value="Medium">Medium </option>
    <option value="Large">Large </option>
    <option value="X-Large">X-Large </option>
    <option value="2X-Large">2X-Large </option>
    <option value="3X-Large">3X-Large </option>
    </select> </td></tr>
    </table>
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    And that is all the html between buttons. Nothing more.

    Thanks for the help! I tried Googling with no success.
    www.tenpercentfirearms.com was open from 2005 until 2018. I now own Westside Arms.
  • #2
    gogohopper
    Veteran Member
    • Mar 2013
    • 4733

    No idea. But I use NVU, it's free, and it gets the job done for me.
    Originally posted by Webologist
    I am in a sympathy-free zone as well. A leftist brown shirt reaping what he sowed after profiting from it is sweet justice indeed.

    Comment

    • #3
      Bizy858
      Member
      • Nov 2011
      • 397

      W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

      Comment

      • #4
        Bizy858
        Member
        • Nov 2011
        • 397

        Great source for code.

        Comment

        • #5
          naeco81
          CGN/CGSSA Contributor - Lifetime
          CGN Contributor - Lifetime
          • Jun 2013
          • 1811

          CSS:
          Code:
          .paypal-form
          {
              float: left;
          }

          HTML:
          HTML Code:
          <div class="paypal-form">
          <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
          <input type="hidden" name="cmd" value="_s-xclick">
          <input type="hidden" name="hosted_button_id" value="B5PSQM4M67B8G">
          <table><b>PINK</b>
          <tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
          <option value="Small">Small </option>
          <option value="Medium">Medium </option>
          <option value="Large">Large </option>
          <option value="X-Large">X-Large </option>
          <option value="2X-Large">2X-Large </option>
          <option value="3X-Large">3X-Large </option>
          </select> </td></tr>
          </table>
          <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
          <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
          </form>
          </div>
          To change the color of the buttons themselves you will have to create your own images for the button, unless Paypal provides other button colors already.
          Originally posted by Mitch
          The architects of the assault weapon bans ... are simply trying to fight the Culture War. And we can't win, not in California anyway because you guys, the ones with the most to lose, refuse to do what you need to do to win the Culture Wars, which is to make Calguns and the gun rights community a truly big tent and stop driving people away simply because they are different from you.
          Crime rate per 100k people
          General population: 3,817
          Police officers: 108
          Legal CCW: 18

          Comment

          • #6
            tenpercentfirearms
            Vendor/Retailer
            • Apr 2005
            • 13007

            Originally posted by naeco81
            CSS:
            Code:
            .paypal-form
            {
                float: left;
            }

            HTML:
            HTML Code:
            <div class="paypal-form">
            <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
            <input type="hidden" name="cmd" value="_s-xclick">
            <input type="hidden" name="hosted_button_id" value="B5PSQM4M67B8G">
            <table><b>PINK</b>
            <tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
            <option value="Small">Small </option>
            <option value="Medium">Medium </option>
            <option value="Large">Large </option>
            <option value="X-Large">X-Large </option>
            <option value="2X-Large">2X-Large </option>
            <option value="3X-Large">3X-Large </option>
            </select> </td></tr>
            </table>
            <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
            <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
            </form>
            </div>
            To change the color of the buttons themselves you will have to create your own images for the button, unless Paypal provides other button colors already.
            I don't want to change the color. I just want to get rid of the left align and let them be placed along a row. I have them ordered to where they will be underneath their corresponding color with the photo above.

            Actually, I can change the color pretty easy using google to figure that out.

            I will go check my ccs. Thanks.
            Last edited by tenpercentfirearms; 09-06-2013, 8:27 AM.
            www.tenpercentfirearms.com was open from 2005 until 2018. I now own Westside Arms.

            Comment

            • #7
              tenpercentfirearms
              Vendor/Retailer
              • Apr 2005
              • 13007

              I tried the float, that isn't quite what I was looking for.

              Basically I want the buttons to be right underneath that photo of the different colored shirts. As it stands using the form commands, they are aligned down the page as you can now see. I don't want them to be on their own row, I want them in the same row across the page.
              www.tenpercentfirearms.com was open from 2005 until 2018. I now own Westside Arms.

              Comment

              • #8
                naeco81
                CGN/CGSSA Contributor - Lifetime
                CGN Contributor - Lifetime
                • Jun 2013
                • 1811

                Did you wrap each button HTML code with the div class call? I only did one in the example. That should give you the horizontal alignment you wanted. Alternatively you could use a table.
                Originally posted by Mitch
                The architects of the assault weapon bans ... are simply trying to fight the Culture War. And we can't win, not in California anyway because you guys, the ones with the most to lose, refuse to do what you need to do to win the Culture Wars, which is to make Calguns and the gun rights community a truly big tent and stop driving people away simply because they are different from you.
                Crime rate per 100k people
                General population: 3,817
                Police officers: 108
                Legal CCW: 18

                Comment

                • #9
                  tenpercentfirearms
                  Vendor/Retailer
                  • Apr 2005
                  • 13007

                  Originally posted by naeco81
                  Did you wrap each button HTML code with the div class call? I only did one in the example. That should give you the horizontal alignment you wanted. Alternatively you could use a table.
                  I did not! And I just did and it looks like it is working. Stand by and thank you!
                  www.tenpercentfirearms.com was open from 2005 until 2018. I now own Westside Arms.

                  Comment

                  • #10
                    naeco81
                    CGN/CGSSA Contributor - Lifetime
                    CGN Contributor - Lifetime
                    • Jun 2013
                    • 1811

                    Great. Glad I could help
                    Originally posted by Mitch
                    The architects of the assault weapon bans ... are simply trying to fight the Culture War. And we can't win, not in California anyway because you guys, the ones with the most to lose, refuse to do what you need to do to win the Culture Wars, which is to make Calguns and the gun rights community a truly big tent and stop driving people away simply because they are different from you.
                    Crime rate per 100k people
                    General population: 3,817
                    Police officers: 108
                    Legal CCW: 18

                    Comment

                    • #11
                      tenpercentfirearms
                      Vendor/Retailer
                      • Apr 2005
                      • 13007

                      Ok we are almost there. How can I center the buttons now and why is that view cart button over there instead of centered underneath like I am attempting in the code.
                      www.tenpercentfirearms.com was open from 2005 until 2018. I now own Westside Arms.

                      Comment

                      • #12
                        Ninety
                        Veteran Member
                        • Nov 2012
                        • 4062

                        I'd say you added that container code for the view cart button and not only for the buttons..
                        NRA Member
                        The Constitution does not bestow wisdom. It's up to the body politic to be wise. -Patriot
                        All that is required for evil to prevail is for good men to do nothing.
                        -Edmund Burke
                        I'd much rather go to my grave never needing my gun, than go there wishing I had it.
                        - Phil Dalmolin

                        The Battle of Athens was illegal too.

                        Comment

                        • #13
                          naeco81
                          CGN/CGSSA Contributor - Lifetime
                          CGN Contributor - Lifetime
                          • Jun 2013
                          • 1811

                          You can wrap anything you want centered with:

                          HTML Code:
                          <center>
                          stuff you want centered
                          </center>
                          Originally posted by Mitch
                          The architects of the assault weapon bans ... are simply trying to fight the Culture War. And we can't win, not in California anyway because you guys, the ones with the most to lose, refuse to do what you need to do to win the Culture Wars, which is to make Calguns and the gun rights community a truly big tent and stop driving people away simply because they are different from you.
                          Crime rate per 100k people
                          General population: 3,817
                          Police officers: 108
                          Legal CCW: 18

                          Comment

                          • #14
                            tenpercentfirearms
                            Vendor/Retailer
                            • Apr 2005
                            • 13007

                            Originally posted by naeco81
                            You can wrap anything you want centered with:

                            HTML Code:
                            <center>
                            stuff you want centered
                            </center>
                            I did that. It is still centered over by itself on the right. It didn't move down.
                            www.tenpercentfirearms.com was open from 2005 until 2018. I now own Westside Arms.

                            Comment

                            • #15
                              naeco81
                              CGN/CGSSA Contributor - Lifetime
                              CGN Contributor - Lifetime
                              • Jun 2013
                              • 1811

                              Okay I think I know what you're after. Replace your files with this HTML and this CSS.
                              Originally posted by Mitch
                              The architects of the assault weapon bans ... are simply trying to fight the Culture War. And we can't win, not in California anyway because you guys, the ones with the most to lose, refuse to do what you need to do to win the Culture Wars, which is to make Calguns and the gun rights community a truly big tent and stop driving people away simply because they are different from you.
                              Crime rate per 100k people
                              General population: 3,817
                              Police officers: 108
                              Legal CCW: 18

                              Comment

                              Working...
                              UA-8071174-1