How do I add buttons to my donation forms that look good?
Options
I tried adding the code and I am completely stuck. Can you help? I added the code from the Nature Conservancy but I can't seem to get it to work. Here's the wrapper code that I am using:
<div class="wrapper-header clearfix">
<div class="nav-content">
<div class="logo">
<img id="logo_image" src="../images/content/pagebuilder/logo-sample.gif" alt="RESOLVE Logo" />
</div>
<ul class="nav-links">
<li><a class="nav-link" href="http://www.resolve.org/"><span style="font-size: 120%;"><strong>Home</strong></span></a></li>
<li><a class="nav-link" href="http://www.resolve.org/about/"><span style="font-size: 120%;"><strong>About Us</strong></span></a></li>
<li><a class="nav-link" href="http://www.resolve.org/about/contact.html"><span style="font-size: 120%;"><strong>Contact Us</strong></span></a></li>
</ul>
</div>
</div>
<p>
<span style="display: none;">25703</span></p>
<style type="text/css"><!--
#site-header { margin-bottom:0px; }
#site-header .wrapper { background-color:#fff; }
.coldesc-two #coltwo { padding:0 }
h3 { margin-top: 15px; }
#payment_typecc_type_row { display:none; }
div.responsive { font-size:1em; }
div.form-message-text { font-size: 10pt; }
#layout > .wrapper { padding-top: 0.25em; }
h2.section-header-container > #single_designee_row { display: none; }
#verisign embed, #verisign img { width: 80px!important; }
label + div.donation-level-user-entered { margin: 0 }
div.donation-level-container { border: 0; margin:5px 0; float:left; position:relative; display:inline-block; /*width:125px;*/ }
input[type="radio"][id^="level_standardexpanded"] { /*opacity: 0;*/ position: relative; left: 24px; top:24px; }
label[for^="level_standardexpanded"] { background:url(http://familybuilding.resolve.org/images/wrapper/201310-DonationWrapper/radio_bg.png) top left repeat-x; border:solid 1px #ccc; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; padding: 12px 0; /*left: -18px;*/ /*top:-18px;*/ position: relative; width: 102px; display: inline-block; }
label[for^="level_standardexpanded"][for$="amount"] { display: none; }
input[id^="level_standardexpanded"][id$="amount"] { left: 8px; bottom: 36px; position: relative; width:72px; height: 15px; }
label[for="level_standardexpanded25703"] div.donation-level-label-container, label[for="level_standardexpanded30081"] div.donation-level-label-container { position: relative; top: 36px; text-align: left; font-size: 8.5pt; font-style: italic; }
label[for="level_standardauto_repeatname"] { display: inline-block; }
label.custom-element-checkbox-label { display: inline-block; max-width: 250px; }
label.custom-element-checkbox-label[for="premium_opt_out_radio"] { max-width:100%; }
div.donation-level-container-generic-repeat { margin-top:25px; margin-bottom:15px; }
div.donation-level-amount-container, div.donation-level-label-container { width:102px; text-align:center; }
div.donation-level-label-input-container { width:0; height:0; }
#level_standard_row { width:100%; }
#level_standard_row span.FormLabelText { display:none; }
/*.selected-amount { background:red; } */
.selected-amount~label { background:url(http://familybuilding.resolve.org/images/content/pagebuilder/radio_bg_gr.png) bottom left repeat-x; border:solid 1px #00703c; }
#level_standard_row span.field-required { display:none; }
#level_standard_row, #level_standard_row div.form-content { margin-top:0; }
div.don-standard-levels { margin-top:-25px; margin-bottom:25px; }
input[name="currency_locale"] + div.form-row { width:1180px; margin-left:-142px; }
div.donation-form-content h2:first-of-type { border-top:0; }
#responsive_payment_typecc_type_row, #responsive_payment_typepay_typeradio_row { width:inherit; margin:inherit; }
div.don-standard-levels { max-width:600px; }
#donation-bar { background-color:#e3e5d7; }
#donation-bar .donation-text { width: 650px; margin:8px 0 0 63px; }
#donation-bar .donation-image { margin-right:63px; }
#donation-bar .donation-image img { float:right; }
div.payment-field-container span.payment-type-option, div.payment-field-container span.internal-payment span.payment-type-option { border:solid 1px #ccc; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
div.payment-field-container span.payment-type-option.selected { background:url(http://familybuilding.resolve.org/images/content/pagebuilder/radio_bg_gr.png) bottom left repeat-x; border:solid 1px #00703c!important; }
div.payment-field-container span.internal-payment { border:0 }
div.payment-field-container span.external-payment span.payment-type-option { padding: 6px 5px 5px; }
div.html-caption-container { overflow:inherit; }
@media only screen and (max-width:1200px) {
div.responsive { max-width:100%; margin: 0; width: 100%; padding: 0; }
div.donation-form-content > div, div.donation-form-content > h2 { margin-left:50px; margin-center:50px; }
input[name="currency_locale"] + div.form-row { width:100%; margin-left:0; }
/*.donation-form-content { margin-left: 50px; }*/
#layout .wrapper { padding:0; }
#donation-bar .donation-text { width: 60%; margin:10px 0 0 50px; }
#donation-bar .donation-image { margin-center:50px; width:30%; overflow:hidden; }
.photoCreditImg img { max-width:inherit; }
#donation-bar h1 { font-size:1.5em; }
}
@media only screen and (max-width:1100px) {
#donation-bar .donation-image { margin-center: 0; }
}
@media only screen and (max-width: 800px) {
#donation-bar .donation-text { max-width: 60%; }
}
@media only screen and (max-width: 700px){
#donation-bar .donation-text { max-width: 100%; width: 100%; }
div.donation-form-content > div, div.donation-form-content > h2 { margin-left:25px; margin-center:25px; }
#donation-bar .donation-text { width: 80%; margin:5px 0 0 25px; }
}
@media only screen and (max-width: 700px){
div.donation-form-content > div, div.donation-form-content > h2 { margin-left:15px; margin-center:15px; }
}
--></style>
<div class="wrapper-body">
<convio:session name="63" param="3"></convio:session>
</div>
I am not sure what I am doing wrong. Also, is possible to have the top of the donation form look like the top of our usual donation form (https://secure2.convio.net/res/admin/Donation2Preview?idb=1679364925&df_id=3876&mfc_pref=T&3876.donation=form1&idb=1237534715) ?
I'll owe you one if you can help me. Thanks in advance.
<div class="wrapper-header clearfix">
<div class="nav-content">
<div class="logo">
<img id="logo_image" src="../images/content/pagebuilder/logo-sample.gif" alt="RESOLVE Logo" />
</div>
<ul class="nav-links">
<li><a class="nav-link" href="http://www.resolve.org/"><span style="font-size: 120%;"><strong>Home</strong></span></a></li>
<li><a class="nav-link" href="http://www.resolve.org/about/"><span style="font-size: 120%;"><strong>About Us</strong></span></a></li>
<li><a class="nav-link" href="http://www.resolve.org/about/contact.html"><span style="font-size: 120%;"><strong>Contact Us</strong></span></a></li>
</ul>
</div>
</div>
<p>
<span style="display: none;">25703</span></p>
<style type="text/css"><!--
#site-header { margin-bottom:0px; }
#site-header .wrapper { background-color:#fff; }
.coldesc-two #coltwo { padding:0 }
h3 { margin-top: 15px; }
#payment_typecc_type_row { display:none; }
div.responsive { font-size:1em; }
div.form-message-text { font-size: 10pt; }
#layout > .wrapper { padding-top: 0.25em; }
h2.section-header-container > #single_designee_row { display: none; }
#verisign embed, #verisign img { width: 80px!important; }
label + div.donation-level-user-entered { margin: 0 }
div.donation-level-container { border: 0; margin:5px 0; float:left; position:relative; display:inline-block; /*width:125px;*/ }
input[type="radio"][id^="level_standardexpanded"] { /*opacity: 0;*/ position: relative; left: 24px; top:24px; }
label[for^="level_standardexpanded"] { background:url(http://familybuilding.resolve.org/images/wrapper/201310-DonationWrapper/radio_bg.png) top left repeat-x; border:solid 1px #ccc; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; padding: 12px 0; /*left: -18px;*/ /*top:-18px;*/ position: relative; width: 102px; display: inline-block; }
label[for^="level_standardexpanded"][for$="amount"] { display: none; }
input[id^="level_standardexpanded"][id$="amount"] { left: 8px; bottom: 36px; position: relative; width:72px; height: 15px; }
label[for="level_standardexpanded25703"] div.donation-level-label-container, label[for="level_standardexpanded30081"] div.donation-level-label-container { position: relative; top: 36px; text-align: left; font-size: 8.5pt; font-style: italic; }
label[for="level_standardauto_repeatname"] { display: inline-block; }
label.custom-element-checkbox-label { display: inline-block; max-width: 250px; }
label.custom-element-checkbox-label[for="premium_opt_out_radio"] { max-width:100%; }
div.donation-level-container-generic-repeat { margin-top:25px; margin-bottom:15px; }
div.donation-level-amount-container, div.donation-level-label-container { width:102px; text-align:center; }
div.donation-level-label-input-container { width:0; height:0; }
#level_standard_row { width:100%; }
#level_standard_row span.FormLabelText { display:none; }
/*.selected-amount { background:red; } */
.selected-amount~label { background:url(http://familybuilding.resolve.org/images/content/pagebuilder/radio_bg_gr.png) bottom left repeat-x; border:solid 1px #00703c; }
#level_standard_row span.field-required { display:none; }
#level_standard_row, #level_standard_row div.form-content { margin-top:0; }
div.don-standard-levels { margin-top:-25px; margin-bottom:25px; }
input[name="currency_locale"] + div.form-row { width:1180px; margin-left:-142px; }
div.donation-form-content h2:first-of-type { border-top:0; }
#responsive_payment_typecc_type_row, #responsive_payment_typepay_typeradio_row { width:inherit; margin:inherit; }
div.don-standard-levels { max-width:600px; }
#donation-bar { background-color:#e3e5d7; }
#donation-bar .donation-text { width: 650px; margin:8px 0 0 63px; }
#donation-bar .donation-image { margin-right:63px; }
#donation-bar .donation-image img { float:right; }
div.payment-field-container span.payment-type-option, div.payment-field-container span.internal-payment span.payment-type-option { border:solid 1px #ccc; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
div.payment-field-container span.payment-type-option.selected { background:url(http://familybuilding.resolve.org/images/content/pagebuilder/radio_bg_gr.png) bottom left repeat-x; border:solid 1px #00703c!important; }
div.payment-field-container span.internal-payment { border:0 }
div.payment-field-container span.external-payment span.payment-type-option { padding: 6px 5px 5px; }
div.html-caption-container { overflow:inherit; }
@media only screen and (max-width:1200px) {
div.responsive { max-width:100%; margin: 0; width: 100%; padding: 0; }
div.donation-form-content > div, div.donation-form-content > h2 { margin-left:50px; margin-center:50px; }
input[name="currency_locale"] + div.form-row { width:100%; margin-left:0; }
/*.donation-form-content { margin-left: 50px; }*/
#layout .wrapper { padding:0; }
#donation-bar .donation-text { width: 60%; margin:10px 0 0 50px; }
#donation-bar .donation-image { margin-center:50px; width:30%; overflow:hidden; }
.photoCreditImg img { max-width:inherit; }
#donation-bar h1 { font-size:1.5em; }
}
@media only screen and (max-width:1100px) {
#donation-bar .donation-image { margin-center: 0; }
}
@media only screen and (max-width: 800px) {
#donation-bar .donation-text { max-width: 60%; }
}
@media only screen and (max-width: 700px){
#donation-bar .donation-text { max-width: 100%; width: 100%; }
div.donation-form-content > div, div.donation-form-content > h2 { margin-left:25px; margin-center:25px; }
#donation-bar .donation-text { width: 80%; margin:5px 0 0 25px; }
}
@media only screen and (max-width: 700px){
div.donation-form-content > div, div.donation-form-content > h2 { margin-left:15px; margin-center:15px; }
}
--></style>
<div class="wrapper-body">
<convio:session name="63" param="3"></convio:session>
</div>
I am not sure what I am doing wrong. Also, is possible to have the top of the donation form look like the top of our usual donation form (https://secure2.convio.net/res/admin/Donation2Preview?idb=1679364925&df_id=3876&mfc_pref=T&3876.donation=form1&idb=1237534715) ?
I'll owe you one if you can help me. Thanks in advance.
Tagged:
1
Comments
-
It would be easier for us to have something to see, and some specific questions.
Also we can't see your donation preview links, since we'd need to be logged in as admins in your instance. Publish and send links to the live form.
So is this your usual donation form?
https://secure2.convio.net/res/site/Donation2?df_id=3876&3876.donation=form1
Can you post a link to the problem form?0 -
Hi Marnee -
Unfortuantely, we can't access the preview link you shared because we don't have access to your Convio instance.
You also don't necessarily have to add the code to the wrapper, if you want to play around in a test form you can insert a style tag into an HTML caption and the styles will only apply to that single form instead of having impacts across other forms that use that same wrapper.
The code below is built off of TNC's code and will get you pretty well along:
input[type="radio"][id^="level_standardexpanded"] {
position: relative;
left: 24px;
top: 24px;
}
label[for^="level_standardexpanded"] {
background-color: #ddd;
border: solid 1px #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 12px 0;
/* left: -18px; */
/* top: -18px; */
position: relative;
width: 150px;
display: inline-block;
}
div.donation-level-amount-container,
div.donation-level-label-container {
text-align: center;
display: inline-block;
}
div.donation-level-amount-container {
text-indent: 10px;
}
div.donation-level-amount-container+div.donation-level-label-container {
text-align: center;
display: inline-block;
margin: 0;
}
input[id^="level_standardexpanded"][id$="amount"] {
left: 8px;
bottom: 36px;
position: relative;
width: 72px;
height: 15px;
}
label[for="level_standardauto_repeatname"] {
display: inline-block;
}
label.custom-element-checkbox-label {
display: inline-block;
max-width: 250px;
}
label.custom-element-checkbox-label[for="premium_opt_out_radio"] {
max-width: 100%;
}
div.donation-level-container-generic-repeat {
margin-top: 25px;
margin-bottom: 15px;
}
div.donation-level-label-input-container {
width: 0;
height: 0;
}
#level_standard_row {
width: 100%;
}
#level_standard_row span.FormLabelText {
display: none;
}
label[for^="level_standardexpanded"][for$="amount"] {
display: none;
}
input[id^="level_standardexpanded"][id$="amount"] {
left: 8px;
bottom: 36px;
position: relative;
width: 72px;
height: 15px;
}
label[for="level_standardexpanded5329"] div.donation-level-label-container {
position: relative;
top: 36px;
text-align: left;
font-size: 8.5pt;
font-style: italic;
}
Please note that the "Other amount" field and label #'s are used in the styles. So you'll need to use that form's id in the place of "level_standardexpanded5329"
You'll also need some javascript to handle the radio button selection to happen behind the scenes of the donation amount label selection. For examples of how to handle this - view the source of this reusable from WWF or the script at ~line 3400 from TNC's form.
0
Categories
- All Categories
- Shannon parent
- shannon 2
- shannon 1
- 21 Advocacy DC Users Group
- 14 BBCRM PAG Discussions
- 89 High Education Program Advisory Group (HE PAG)
- 28 Luminate CRM DC Users Group
- 8 DC Luminate CRM Users Group
- Luminate PAG
- 5.9K Blackbaud Altru®
- 58 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 409 bbcon®
- 2.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- donorCentrics®
- 1.1K Blackbaud eTapestry®
- 2.8K Blackbaud Financial Edge NXT®
- 1.1K Blackbaud Grantmaking™
- 527 Education Management Solutions for Higher Education
- 1 JustGiving® from Blackbaud®
- 4.6K Education Management Solutions for K-12 Schools
- Blackbaud Luminate Online & Blackbaud TeamRaiser
- 16.4K Blackbaud Raiser's Edge NXT®
- 4.1K SKY Developer
- 547 ResearchPoint™
- 151 Blackbaud Tuition Management™
- 61 everydayhero
- 3 Campaign Ideas
- 58 General Discussion
- 115 Blackbaud ID
- 87 K-12 Blackbaud ID
- 6 Admin Console
- 949 Organizational Best Practices
- 353 The Tap (Just for Fun)
- 235 Blackbaud Community Feedback Forum
- 55 Admissions Event Management EAP
- 18 MobilePay Terminal + BBID Canada EAP
- 36 EAP for New Email Campaigns Experience in Blackbaud Luminate Online®
- 109 EAP for 360 Student Profile in Blackbaud Student Information System
- 41 EAP for Assessment Builder in Blackbaud Learning Management System™
- 9 Technical Preview for SKY API for Blackbaud CRM™ and Blackbaud Altru®
- 55 Community Advisory Group
- 46 Blackbaud Community Ideas
- 26 Blackbaud Community Challenges
- 7 Security Testing Forum
- 3 Blackbaud Staff Discussions
- 1 Blackbaud Partners Discussions
- 1 Blackbaud Giving Search™
- 35 EAP Student Assignment Details and Assignment Center
- 39 EAP Core - Roles and Tasks
- 59 Blackbaud Community All-Stars Discussions
- 20 Blackbaud Raiser's Edge NXT® Online Giving EAP
- Diocesan Blackbaud Raiser’s Edge NXT® User’s Group
- 2 Blackbaud Consultant’s Community
- 43 End of Term Grade Entry EAP
- 92 EAP for Query in Blackbaud Raiser's Edge NXT®
- 38 Standard Reports for Blackbaud Raiser's Edge NXT® EAP
- 12 Payments Assistant for Blackbaud Financial Edge NXT® EAP
- 6 Ask an All Star (Austen Brown)
- 8 Ask an All-Star Alex Wong (Blackbaud Raiser's Edge NXT®)
- 1 Ask an All-Star Alex Wong (Blackbaud Financial Edge NXT®)
- 6 Ask an All-Star (Christine Robertson)
- 21 Ask an Expert (Anthony Gallo)
- Blackbaud Francophone Group
- 22 Ask an Expert (David Springer)
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 6 Ask an All-Star Sunshine Reinken Watson and Carlene Johnson
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 14 Ask an All-Star (Elizabeth Johnson)
- 7 Ask an Expert (Stephen Churchill)
- 2025 ARCHIVED FORUM POSTS
- 322 ARCHIVED | Financial Edge® Tips and Tricks
- 164 ARCHIVED | Raiser's Edge® Blog
- 300 ARCHIVED | Raiser's Edge® Blog
- 441 ARCHIVED | Blackbaud Altru® Tips and Tricks
- 66 ARCHIVED | Blackbaud NetCommunity™ Blog
- 211 ARCHIVED | Blackbaud Target Analytics® Tips and Tricks
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- Luminate CRM DC Users Group
- 225 ARCHIVED | Blackbaud eTapestry® Tips and Tricks
- 1 Blackbaud eTapestry® Know How Blog
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- 1 Blackbaud K-12 Education Solutions™ Blog
- 280 ARCHIVED | Mixed Community Announcements
- 3 ARCHIVED | Blackbaud Corporations™ & Blackbaud Foundations™ Hosting Status
- 1 npEngage
- 24 ARCHIVED | K-12 Announcements
- 15 ARCHIVED | FIMS Host*Net Hosting Status
- 23 ARCHIVED | Blackbaud Outcomes & Online Applications (IGAM) Hosting Status
- 22 ARCHIVED | Blackbaud DonorCentral Hosting Status
- 14 ARCHIVED | Blackbaud Grantmaking™ UK Hosting Status
- 117 ARCHIVED | Blackbaud CRM™ and Blackbaud Internet Solutions™ Announcements
- 50 Blackbaud NetCommunity™ Blog
- 169 ARCHIVED | Blackbaud Grantmaking™ Tips and Tricks
- Advocacy DC Users Group
- 718 Community News
- Blackbaud Altru® Hosting Status
- 104 ARCHIVED | Member Spotlight
- 145 ARCHIVED | Hosting Blog
- 149 JustGiving® from Blackbaud® Blog
- 97 ARCHIVED | bbcon® Blogs
- 19 ARCHIVED | Blackbaud Luminate CRM™ Announcements
- 161 Luminate Advocacy News
- 187 Organizational Best Practices Blog
- 67 everydayhero Blog
- 52 Blackbaud SKY® Reporting Announcements
- 17 ARCHIVED | Blackbaud SKY® Reporting for K-12 Announcements
- 3 Luminate Online Product Advisory Group (LO PAG)
- 81 ARCHIVED | JustGiving® from Blackbaud® Tips and Tricks
- 1 ARCHIVED | K-12 Conference Blog
- Blackbaud Church Management™ Announcements
- ARCHIVED | Blackbaud Award Management™ and Blackbaud Stewardship Management™ Announcements
- 1 Blackbaud Peer-to-Peer Fundraising™, Powered by JustGiving® Blogs
- 39 Tips, Tricks, and Timesavers!
- 56 Blackbaud Church Management™ Resources
- 154 Blackbaud Church Management™ Announcements
- 1 ARCHIVED | Blackbaud Church Management™ Tips and Tricks
- 11 ARCHIVED | Blackbaud Higher Education Solutions™ Announcements
- 7 ARCHIVED | Blackbaud Guided Fundraising™ Blog
- 2 Blackbaud Fundraiser Performance Management™ Blog
- 9 Foundations Events and Content
- 14 ARCHIVED | Blog Posts
- 2 ARCHIVED | Blackbaud FIMS™ Announcement and Tips
- 59 Blackbaud Partner Announcements
- 10 ARCHIVED | Blackbaud Impact Edge™ EAP Blogs
- 1 Community Help Blogs
- Diocesan Blackbaud Raiser’s Edge NXT® Users' Group
- Blackbaud Consultant’s Community
- Blackbaud Francophone Group
- 1 BLOG ARCHIVE CATEGORY
- Blackbaud Community™ Discussions
- 8.3K Blackbaud Luminate Online® & Blackbaud TeamRaiser® Discussions
- 5.7K Jobs Board