Devider Line - Custom width

Hey i need some help with the divider line. I use the devider as a shortcode in a columnsection (muffin builder). ( shown below)
I want to change the width of the line, because the "narrow" option is to short and the other "defult and width" option goes over the complete column.
And i want that it stops a little bit after the h1 tag, so i need my on width in px.

Can you help me with that?

 <p><h1>TITEL IN CAPITALS HERE</h1></p>
[hr height="5" style="default" line="default" themecolor="1"]

Fusce ut velit laoreet, tempus arcu eu, molestie tortor. Nam vel justo cursus, faucibus lorem eget, egestas eros. Maecenas eleifend erat at justo fringilla imperdiet id ac magna. Suspendisse vel facilisis odio, at ornare nibh. In malesuada, tortor eget sodales mollis, mauris lectus hendrerit purus, porttitor finibus eros lorem eget mauris. Curabitur lacinia enim at ex blandit, vel pellentesque odio elementum.

Comments

  • Hi,
    then you will need to use a hr line but with HTML, not a shortcode.
    <hr style="width:200px; background:red;" />
    thanks
  • Thank you, that worked.
    i altought tried this, because i didnt want to change everything manually :)

    hr {
        display: block;
        border: none;
        outline: none;
        height: 2px;
        width: 45%;
        margin: 10px 0px 10px 0px !important;
    }

    This worked perfekt... I would love to use this custom css for my portfolio single pages, but there is noch Custom CSS field at the end?! Is it normal at the Portfolio Singles?

    Any idea how i could use this for all Portfolio Singles at once?
  • You have to inspect the code and check the classes added to the tag.
    In this case this will target all HR element in the single portfolios:

    .single-portfolio hr {
    display: block;
    border: none;
    outline: none;
    height: 2px;
    width: 45%;
    margin: 10px 0px 10px 0px !important;
    }
  • It works perfektly! Thank you very much for your support.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.