The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] How to set margin for "Leave a Reply" header?
How-to and Troubleshooting
(@supertrooper)
Trusted Member
Joined: 5 years ago
In order to insert the "Leave a Reply" header the following code has been inserted in the functions.php file:
add_action('wpdiscuz_comment_form_before', function() {
echo '<h2 style="max-width: 750px;margin: 0px auto;">' . __(' Leave a Reply', 'wpdiscuz') . '</h2>';
});
The problem is that the left margin varies depending on the device type and the screen width. e.g. desktop, tablet or mobile phone.
Is there a way to "replace " by a percentage of the screen width in order to have a proportional margin?
(@asti)
Illustrious Member
Joined: 8 years ago
@supertrooper,
Could you please leave some example URL?
(@supertrooper)
Trusted Member
Joined: 5 years ago
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8192
Mar 17, 2021 11:20 am
@supertrooper,
Please remove those " " and configure the margin using the CSS code below:
div#respond h3 {
margin-left: 7% !important;
}
Just change the red marked value as you like.
(@supertrooper)
Trusted Member
Joined: 5 years ago
@asti
Your fix works perfectly.
Thanks for the great support.