kertoon Posted October 14, 2015 Share Posted October 14, 2015 I have text in small size font size between two horizontal lines. I find the spacing is rather too wide. How do I reduce the spacing? Link to comment Share on other sites More sharing options...
dsonesuk Posted October 14, 2015 Share Posted October 14, 2015 Once you have found editor.css or created your own custom-editor.css insertp + hr {margin-top:-1.5em;}/* previous topic solution */hr + p {margin-top:-0.8em;}/*guessinng here*/Any hr directly following a paragraph is brought up closer, and same in reverse in second. Link to comment Share on other sites More sharing options...
kertoon Posted October 14, 2015 Author Share Posted October 14, 2015 I am doing this only for specific blog posts. Not for all posts. How do I go about it? Link to comment Share on other sites More sharing options...
dsonesuk Posted October 14, 2015 Share Posted October 14, 2015 (edited) You need to identify or create class that will separate these specific posts from other posts, if there is no way to do this presently, then you will need to make copy of post template page, and add class and use that instead of default.https://codex.wordpress.org/Post_Typeshttps://codex.wordpress.org/Post_Type_Templates Edited October 14, 2015 by dsonesuk Link to comment Share on other sites More sharing options...
kertoon Posted October 14, 2015 Author Share Posted October 14, 2015 (edited) For my blog post, how do I do it in HTML? Now this my HTML code: <hr />Text <br /><hr ><span style="font-size: x-small;">text</span><br /><hr /> Edited October 14, 2015 by kertoon Link to comment Share on other sites More sharing options...
dsonesuk Posted October 14, 2015 Share Posted October 14, 2015 That is not correct semantic valid html code, i can't give you a correct answer Link to comment Share on other sites More sharing options...
dsonesuk Posted October 14, 2015 Share Posted October 14, 2015 You should try to use paragraphs instead of br tags, span should be ideally within paragraph, when done this the css will work, as it is now using the br tag its difficult to apply stying. Link to comment Share on other sites More sharing options...
kertoon Posted October 15, 2015 Author Share Posted October 15, 2015 Ok. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now