Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › margin-left is -4px for search – hides start of search box › Reply To: margin-left is -4px for search – hides start of search box
Hi,
That CSS is actually intented, and is correct, as on the parent element there should be a “0 0 0 10px” margin an “0 5px” padding. However these values are overwritten by higher specificity CSS rules from the frontend-builder-plugin-style.css file, which I’m guessing belongs to the font-end builder plugin.
It resets some of the margins to and paddings to 0, and the text alignment on the icon containers. This custom CSS will resolve all of these problems:
[html].proinput,
.proinput * {
box-sizing: content-box !important;
}
.proinput {
margin: 0 0 0 10px !important;
padding: 0 5px !important;
}
div.asp_m.ajaxsearchpro .probox .promagnifier .innericon,
div.asp_m.ajaxsearchpro .probox .prosettings .innericon,
div.asp_m.ajaxsearchpro .probox .proclose .innericon {
text-align: center !important;
}[/html]
I guess I have to consider adding these rules to the higher compatibility CSS generator script for the upcoming release, to make sure they overwrite the default rules from that page builder.
I hope this helps!