-
Closed
The topic Making content boxes rounded is closed to new replies
Hi,
I’m trying to make content boxes round and in CSS
I have this:
.XXXX {
margin:0 0 25px;
overflow:hidden;
padding:20px;
background-color:#6BD5F1;
border:1px solid #afcde3;
-webkit-border-radius: 20px;
border-radius: 20px;
}
But how do I specify all boxes? what do I put under X?
Thanks
Hmm, very interesting. My primary browser is Chrome. When I tried with Internet Explorer and Firefox it displays fine only in Chrome it doesn’t and it’s only this one widget. Not a big since it’s only on one browser.
Open style.css file and find this:
.widget-content
around line 431 and remove this line:
position: relative;
or just mark it like this:
/*position: relative;*/
And your widget will have normal round borders like others.
Regards
Tried cleaning browser cache in Chrome, still same 🙁
Thanks Jaroslav that worked and I had to clear cache afterwards.
Now when checking on mobile other widgets have same issue?
Since I’m modifying /wp-content/themes/evolve-plus/style.css main file, do I run a risk of messing up something else?
I do have Evolve child theme and all of modifications are done thru theme’s custom CSS. Can I add modifications there?
Thanks!
try to add in your Custom CSS yet:
.widget-title-background {
-webkit-border-radius: 20px 20px 0 0;
border-radius: 20px 20px 0 0;
}
Went in style.css main file and removed that comment.
Added above to my custom CSS and on mobile its still the same using chrome browser even after clearing cache.
Tried using default browser that came with the phone and its displayed fine?
Must be issue with Chrome browser on the phone, do you get same effect using Chrome on mobile?
Thanks!
update the code, so it will look like:
.widget-title-background {
-webkit-border-radius: 20px 20px 0 0;
border-radius: 20px 20px 0 0;
margin-top:11px;
}
Is above code everything needed to make rounded corners or I need to add it to existing ?
/*rounded widget corners START */
.widget-content {
margin:0 0 25px;
overflow:hidden;
padding:0 15px 20px 15px;
border:1px solid #afcde3;
-webkit-border-radius: 20px;
border-radius: 20px;
}
.widget-title {
padding-top:20px;
}
.widget-title-background {
-webkit-border-radius: 20px 20px 0 0;
border-radius: 20px 20px 0 0;
}
/*rounded widget corners END*/
or
/*rounded widget corners START */
.widget-title-background {
-webkit-border-radius: 20px 20px 0 0;
border-radius: 20px 20px 0 0;
margin-top:11px;
}
/*rounded widget corners END*/
The topic Making content boxes rounded is closed to new replies