We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

modifying CSS Layout file - can anyone help?

alirob12
alirob12 Posts: 809 Forumite
Part of the Furniture Combo Breaker
edited 17 December 2010 at 2:39PM in Techie Stuff
Hi

I have added a paypal button to my site, but unfortunatelly it is not displaying properly in either in IE8 - its stretched and distorted, and in Firefox - it has 2 funny lines above it. I know something needs to be altered in the layout file, but i have no idea what. I have tried but unfortunatelly - unsuccessful. If i change the index.php to index.htmp - the paypal button is as it schould. any idea anyone?

Thank you

thanks

Comments

  • In Line 54 in layout.css:
    input, textarea {
    border: 1px solid #999999; color: #290302;
    display: block;
    height: 16px;
    width: 22em;
    }

    Not sure why you set height and width of ALL inputs including buttons. If you don't need then, simply remove or comment out the last two lines, e,.g.
    input, textarea {
    border: 1px solid #999999; color: #290302;
    display: block;
    /* height: 16px;
    width: 22em; */

    }

    If you do need to keep it as it is then best thing would be:
    <form method="post" action="https://www.paypal.com/cgi-bin/webscr"&gt;
    .......
    </form>

    to:
    <form class="paypal-form" method="post" action="https://www.paypal.com/cgi-bin/webscr"&gt;
    .......
    </form>

    and in layout.css, add a new class block:
    .paypal-form input {
    border: 0 none !important; height: auto !important;
    width: auto !important;
    padding: 0 !important;

    }

    or:
    .paypal-form input {
    border: 0 none !important; height: 86px !important;
    width: 21px !important;
    padding: 0 !important;

    }

    The dimensions are based on the image itself: https://www.paypal.com/en_GB/i/btn/btn_paynow_SM.gif

    Hope this helps. :)
  • alirob12
    alirob12 Posts: 809 Forumite
    Part of the Furniture Combo Breaker
    Brilliant!!! Spot on!! Nicely sorted!! Thank you very much!! I spent ages trying to get it sorted. Thank you.
    Just wondering you by any chance know how to centre the google map - I copy the link and sometimes it is displayed correctly and sometimes it is centred in the wrong place?
    Many thanks
  • alirob12
    alirob12 Posts: 809 Forumite
    Part of the Furniture Combo Breaker
    thank you... any idea how i can fix my map too??
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.4K Banking & Borrowing
  • 253.7K Reduce Debt & Boost Income
  • 454.4K Spending & Discounts
  • 245.4K Work, Benefits & Business
  • 601.2K Mortgages, Homes & Bills
  • 177.6K Life & Family
  • 259.3K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.