border-radius:3% doesn't generate rounded edges any more

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
heynen
 
 
Posts: 128
Joined: Sun Dec 31, 2017 4:27 pm

border-radius:3% doesn't generate rounded edges any more

Post by heynen »

Dear all,

I have several objects that all have a name that begins with "news".

For these objects, I have defined the following style:

Code: Select all

<style>
[id*="news"]
{border-radius:15px;cursor:pointer;}
</style>
This code is inserted between the "head" tags of the page. Before, this would generate nice rounded edges for any object named "news". Since I am working with version 18, this doesn't work any more: The edges are rectangular now. The "cursor:pointer" style works, but not the "border-radius". Also, if I add the "border-radius" style directly into the object, it works.

You can see it here: https://www.freiblatt.de/Medien.php
The first box on the page has rounded edges, because I added the "border-radius" command directly into the html of the box.
The second box doesn't have rounded edges, although I have added the "border-radius" command into the style that belongs to this object.

Hope anyone can help!

Thanks, Malte
Last edited by heynen on Fri Jul 07, 2023 9:34 pm, edited 1 time in total.
User avatar
BaconFries
 
 
Posts: 5914
Joined: Thu Aug 16, 2007 7:32 pm

Re: border-radius:3% doesn't generate rounded edges any more

Post by BaconFries »

Are you using the latest build WYSIWYG Web Builder 18.3.0 (last update: July 7, 2023)
See the following;
https://www.wysiwygwebbuilder.com/download.html
heynen
 
 
Posts: 128
Joined: Sun Dec 31, 2017 4:27 pm

Re: border-radius:3% doesn't generate rounded edges any more

Post by heynen »

Thank you, yes, I updated an hour ago, but that didn't solve the problem.
PS: I have made the problem description (see above) more detailed now.
User avatar
wwonderfull
 
 
Posts: 1579
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: border-radius:3% doesn't generate rounded edges any more

Post by wwonderfull »

try this code

Code: Select all

<style>[id*="news"]{border-radius:15px;cursor:pointer;}</style>
User avatar
Pablo
 
Posts: 23334
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: border-radius:3% doesn't generate rounded edges any more

Post by Pablo »

First note that many objects have their own 'border radius properties, so in most cases you do not have to add it via code.

Also, it looks like you have applied the border-radius to the inner div. It may be better to apply it the outer div.

Code: Select all

[id*="wb_news"]{border-radius:15px;cursor:pointer;}
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: border-radius:3% doesn't generate rounded edges any more

Post by crispy68 »

Your code is right; however it may be overwritten by other CSS. So write the code like this:

Code: Select all

<style>
[id*="news"]
{border-radius:15px !important;cursor:pointer;}
</style>
Also, make sure that your ID's begin with the word 'news'. Your 2nd box ID is named 'ueber_uns' and missing this word. Change it to something like 'news_ueber_uns'.
User avatar
wwonderfull
 
 
Posts: 1579
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: border-radius:3% doesn't generate rounded edges any more

Post by wwonderfull »

I myself use alot of custom codes for css js and even html but as @pablo said if there is a dedicated property for border radius for the grids. I still dont understand why we are poking it with custom codes. Its like coming from the window although we have a door.
heynen
 
 
Posts: 128
Joined: Sun Dec 31, 2017 4:27 pm

Re: border-radius:3% doesn't generate rounded edges any more

Post by heynen »

Thank you everyone, it's great to receive so many helpful answers quickly!

So now I have multiple ways to solve the problems, thank you!

And, true, I didn't know that I can just add the rounded edges directly in the grid properties. That sounds like the cleanest solution (but for now, it's quicker for me to just add it in the extra code, so that it will be applied to all "news" objects at the same time).

Thanks again,

Malte
Post Reply