Creating A Call To Action Button
by Christina on Tuesday 8th February, 2011 at 11:02 COMMENTS (13)
We thought we would introduce you to our new Call To Action button creating tool.
Call to Action buttons tell your visitor what you want them to do. They visually draw your visitor's eyes to the button so they can't miss it.
As an example on the right hand side of this page you can see our green "sign up" call to action button.
The best place to use them are on landing pages, where there is no navigation away from that page, ensuring the visitor is lead to where you want them to go.
Here is an example of a landing page:-
Download FREE SEO Guide
The call to action button is at the bottom of the page after we have told the visitor the benefit of using our downlaod.
The visitor knows to click on the button, and once they do this they are lead to the page where you want to collect their information or sell your product.
We thought we would make life a bit simpler for those of you starting out and have provided you with the code for creating a Call To Action Button.
Visit our Call to Action tool, enter in a few details about colour, type and the message you want on the button and the tool will create the button, enabling you to see it before you copy the code into your website.
Have you found this tool helpful?
The EssexSEO Team
COMMENTS
We welcome your comments, help us make this one of the best Free Call to Action button creators around.
I like your generator. I am having trouble, however: I cannot seem to get white script for my call to action text. I am using #002EB8 (a shade of blue) for my button color, and #FFFFFF for my text color. When I test it here on your site it looks lovely. The moment I copy/paste the code into my webpage the button looks fine, however, my text comes through red. How can I fix that? Thanks for your help!
.button will be used for anything with the class button and .button a will be used only where a tags use the class of button.
Let us know if this helps.
First, let me tell you that this lil generator is excellent. Definitely useful.
I seem to be having trouble with compatibility in IE8. It is my understanding that IE8 is rather terrible at rendering CSS (actually, it took my website that I put quite a decent amount if time into and TRASHED it).
Are the troubles related only to IE8 or is it something I may have done when I added the code to my site?
Any further assistance or ideas will be greatly appreciated. :)
Does anyone know if this is limited to IE8 (and therefore works in IE7 and/or IE9)?
There are several work arounds available across the internet including this one I found on a forum, not sure it works though;
[LT]!--[if lt IE 8]>
[LT]script src=\"[HTTP]//ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js\" type=\"text/javascript\">[LT]/script>
[LT]![endif]-->
Let me know how you get on.
Thanks for your reply from June 6. I must confess that I am relatively illiterate in this; I am not following what I should do with the .button, .button a, etc.
Here is my code, the modifications from what your generator would produce are on purpose on my part (such as font size, padding, etc., however, my white text is red and I am having no success getting it to be white. I suspect what you suggested would work, however, I do not know how to implement or deploy what you suggested.
As mentioned, here is my code:
<style type="text/css">
.button {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-style: normal;
font-weight: bold;
text-shadow: #000 0px 4px 4px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-khtml-border-radius: 10px;
background-image: url(i/bg_highlight.png);
background-repeat: repeat-x;
background-position: center center;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #EDEDED;
border-right-color: #333;
border-bottom-color: #333;
border-left-color: #EDEDED;
-moz-box-shadow: 0px 3px 4px #000;
-webkit-box-shadow: 0px 3px 4px #000;
box-shadow: 0px 3px 4px #000;
background-color: #000699;
font-size: 29px;
text-align: center;
text-decoration: none;
color: #FFFFFF;
margin: 4px;
padding-top: 18px;
padding-right: 2px;
padding-bottom: 18px;
padding-left: 2px;
display: inline-block;
cursor: pointer;
}
.button:hover {
text-decoration: none;
background-color: #0265CB;
color: #ffffff;
}
</style>
Thanks much for your help. My apologies for not getting back to you sooner; we had a mishap at our business back in June that we are still recovering from.
.button is a class and so can be attached to specific tags but the a tag (links) have their own agenda, so it is best to set the .button to a .button a or even a.button to ensure the a tag is updated.
Alter;
.button {
to
.button a {
You can then also change;
.button:hover {
to
.button a:hover {
That should do it. Let me know how it goes.
I had tried that, to no avail. Actually, in fact, what happens is that the button disappears completely when I change the ".button" to ".button a" . I have just my text and nothing else (although the link does work, it just is not visually appealing).
What else should I be looking for?
Thanks for your help!
One last item: currently I have two mouse-over java buttons that I intend to replace with two generated by your product. Is there a possibility that I am creating my own issues by integrating this with my existing. ie, should I disable (or flat-out remove) my existing buttons and script and then see what happens?
I answered my own question re: should I disable or eliminate other java mouse-over buttons that I am using.
I created a new page with just the code for a call to action button using your product. I got the same color results using ".button". I modified both locations to ".button a" and the color changed to all red, both the button and the text. The size also changed (I can deal with that). On hover the colors changed as desired, but the all red in the beginning is not what I'm looking for.
Hopefully this makes sense and is not confusing things here...
Thanks!
How do i add fixed width and height to this button, so all buttons have the same size and have the text centred?
thx Edda
The best way is to add the following lines ;
width: auto;
height: auto;
This will make sure the width and height will adjust to the size of whatever it contains.
If you want to specify an exact width and height then use ;
width: 200px;
height: 90px;
Setting the actual pixel amounts as required.
Hope this helps.
David

