The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] How to set margin for "Leave a Reply" header?
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 17, 2021 1:56 pm
(@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?
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 17, 2021 2:46 pm
(@asti)
Illustrious Member
Joined: 8 years ago
@supertrooper,
Could you please leave some example URL?
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 17, 2021 2:53 pm
(@supertrooper)
Trusted Member
Joined: 5 years ago
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8210
Mar 17, 2021 3:20 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@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.
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 17, 2021 6:32 pm
(@supertrooper)
Trusted Member
Joined: 5 years ago
@asti
Your fix works perfectly.
Thanks for the great support.