css styling for widget and shortcode
-
Is there a way to style the form such that it uses placeholder text within the form box instead of text labels? Also, how do I center the submit button only?
I am using a shortcode on my home page and a widget on my sidebars, so need custom css for both.Here’s the css I’ve cobbled together so far:
.widget_sf_widget_constantcontact {
background-color: #acd8ef !important;
padding-left: 10px !important;
padding-right: 10px !important;
padding-top: 10px !important;
padding-bottom: 10px !important;
text-align: left;}
}
widget_sf_widget_constantcontact label{
clear:both;float:right; width:35%; margin-top:5px
}
.widget_sf_widget_constantcontact input[type=”text”]{
float:right; width:60%
}
.widget_sf_widget_constantcontact input[type=”submit”]{margin-top:10px;color:#48638f;align:center;}#sf_shortcode_constantcontact_0_form input[type=”submit”]{background-color: #acd8ef !important; color: #48638f;}
#sf_shortcode_constantcontact_label{
clear:both;float:right; width:25%; margin-top:5px
}
#sf_shortcode_constantcontact_0_form input[type=”text”]{
float:right; width:70%
}
.#sf_shortcode_constantcontact_0_form input[type=”submit”]{
margin-top:10px
}The website is: https://www.emotionallyhealthychildren.org/wordpress
Thanks for your help
- The topic ‘css styling for widget and shortcode’ is closed to new replies.