Home>Support>CSS Editor: changing the height of an element

CSS Editor: changing the height of an element

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

In the SiteOrigin CSS editor, I highlight an element named .wpdiscuz-post-rating-wrap.wpd-custom-field. A rectangular box is displayed in blue. Let’s say the height measures 3 inches.
These are the .wpd-custom-field declarations displayed in the editor:
display: table
border: 0

The element inside .wpd-custom-field is named .wpd-rating. If I highlight wpd-rating, now I see the same size rectangle, except there is a narrow aqua bar across the top and across the bottom. The center area for the .wpd-rating element is still blue.
These are the .wpd-rating declarations displayed in the editor:
display: flex
border: 0

Let’s say the top and bottom aqua bars measure 1/2 inch each and the blue center measures 2 inches (1/2+1/2+2=3 inches).

I want to eliminate this unnecessary 1/2 inch space above and below the data.

Using the CSS Editor, how can I decrease the height of the .wpd-custom-field element so it is the same height as the .wpd-rating element (2 inches)?

Here’s a link to the webpage: https://virtualrdn.com/banana-chocolate-chip-buckwheat-pancakes/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 3 days ago Andrew Misplon
    Hi, I Work Here

    Hi VirtualRDN

    Thanks for reaching out.

    Our free support scope covers basic usage and troubleshooting. We’re able to dive quite deep into issues like this within our premium support scope where we have the budget to do so. In this case, it’s a bit challenging to assist without completing the Custom CSS task. At a glance wpd-custom-field and wpd-rating are both 115px high. Part of the height of wpd-rating is a top and bottom margin. You can perhaps try setting the top and bottom margin of that div to zero and then increase the static height you’ve already assigned.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More