• Resolved Alzee99

    (@alzee99)


    When I insert a text box between paragraphs, WordPress adds several lines of white space above and below the box.

    Can anyone tell me how to reduce these white spaces?

    Is there a reverse code, similar to nbsp; (with ampersand) — but to reduce, rather than add, space?

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • There might be
    tags below the paragraph, kindly delete those to reduce space.

    If not can you kindly share your link please.

    Regards,
    PD

    Thread Starter Alzee99

    (@alzee99)

    Hi PD. No, there are no tags below the paragraph, this is text that I am creating. So, when I put a text-box between two paragraphs, a lot of white space gets added above and below the box. Which I need to reduce.

    I need a code similar to nbsp; (with ampersand in front) to reduce (as opposed to adding space like nbsp; does).

    Thanks,

    AL

    Sorry, as per I know there is no such tag, you have to use css to reduce space.

    Thread Starter Alzee99

    (@alzee99)

    That can’t be right, PD. There must be code to reduce white space for a single instance.

    I don’t want to change the paragraph spacing, just reduce the extra white space that gets inserted whenever I add a text box.

    What code would you use if you wanted to reduce spacing between two paragraphs — but only do it occasionally, not all the time?

    Thanks again.

    Thread Starter Alzee99

    (@alzee99)

    Does anyone have any advice on this?

    I think there must be a code for the reverse of   — which tells the system to move one space to the right.

    The solution would be a code that tells the system to move one space to the left. But where to find the code?

    Surely someone must know that code?

    Thanks (in advance) for the help.

    Thread Starter Alzee99

    (@alzee99)

    Issue resolved — I manged to figure out how to write code to eliminate the unwanted white space.

    May I know the code please.

    Thread Starter Alzee99

    (@alzee99)

    Sure, PD. I discovered that by centering the text box — by adding margin space — I was inadvertently adding margin space on all four sides of the box, rather than just left and right. Moving the box 50px in from the left margin therefore added 50px to the top and bottom margins as well.

    So the solution is: Insert code telling the system to add only to the side or sides of the box that you want it to add to. For example: instead of inserting “margin:50px” you should specify “margin-left:50px” or “margin-right:20px” etc. That way, no white space gets added above or below the box.

    It took me many hours to figure this out!

    Hi,

    Thanks for the info. Will keep this in my mind.

    regards,
    PD

    Thread Starter Alzee99

    (@alzee99)

    You’re very welcome! Have a great day..

    Best,

    AL

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘White space when inserting Text Box’ is closed to new replies.