Hi Ciaran,
I want to add the HR so that there is a better separation between the news articles. The HR is now very narrow and I want to make it thicker and longer. I saw this tip but it doesn't work for me.
hr {
height: 0;
max-width: 100%;
}
Can you help further?
Greetz Maikel
Adjust Horizontal Ruler
- Issue
- webneus
- Commercial Templates
- Thursday, 06 June 2024
- Subscribe via email
References
try this
hr {
height: 1px;
max-width: 300px;
margin: 15px auto 20px;
background-color: transparent;
border-top: 5px solid var(--primary);
}
- more than a month ago
- Commercial Templates
- # 2
Hello
Could you try placing the CSS at the start of the field rather than at the end? If there is any errors in CSS, CSS after the error will not get applied.
Ciaran
Could you try placing the CSS at the start of the field rather than at the end? If there is any errors in CSS, CSS after the error will not get applied.
Ciaran
- more than a month ago
- Commercial Templates
- # 5
Too bad.
Apart from the fact that you inserted the code in the wrong template style, I can't think of anything else...
Sorry
Apart from the fact that you inserted the code in the wrong template style, I can't think of anything else...
Sorry
- more than a month ago
- Commercial Templates
- # 7
Just a try. When I look at your picture, could it be that the code above the rule is missing the final "}" ??
- more than a month ago
- Commercial Templates
- # 9
Hello
I am not seeing the suggested CSS in your source code. Do you have multiple template styles created? If so, could you try adding the CSS to each of the styles.
Ciaran
I am not seeing the suggested CSS in your source code. Do you have multiple template styles created? If so, could you try adding the CSS to each of the styles.
Ciaran
- more than a month ago
- Commercial Templates
- # 11
Hi Maikel
To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....
Edit to taste
Ciaran
To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....
hr:not([size]) {
border-top-width: 5px;
max-width: 300px;
}
Edit to taste
Ciaran
- more than a month ago
- Commercial Templates
- # 13
Hi Eumel7,
Unfortunately this doesn't work for me. Placed it in the Custom CSS
But thanks!
Maikel
Unfortunately this doesn't work for me. Placed it in the Custom CSS
But thanks!
Maikel
- more than a month ago
- Commercial Templates
- # 14
I'm not ciaran but maybe my solution will help you too.
You have to copy the code into your template styles in the settings in the tab: "CUSTOM CODE"...
You can then adjust the numerical values of the code as you wish
You have to copy the code into your template styles in the settings in the tab: "CUSTOM CODE"...
hr {
max-width: 90%;
margin: 15px auto 20px;
border-top: 10px;
}
You can then adjust the numerical values of the code as you wish
- more than a month ago
- Commercial Templates
- # 15
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »