Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS Help with border radius in wordpress app

rasdalln

New Coder
Hi, complete code novice here...but I'm sure this will be a basic question to answer!

Trying to round the corners of images inside a pop-up box linked to a map. Within the plugin, there is a "template" section for editing the pop-up, and a more general CSS section for amends. The CSS box seems to be able to edit the border-radius for the actual pop-up box, but I am unsure how to achieve this for the image inside the box. Any help appreciated!

Thanks,
Nathan

Note: The first section of code is found in the CSS area and the second is the template for the pop-up box.

CSS:
#mapsvg-map-3 .mapsvg-tooltip {

}

}
#mapsvg-map-3 .mapsvg-details-container {

}
#mapsvg-map-3 .mapsvg-directory-item {

}
#mapsvg-map-5 .mapsvg-popover {

background-color: #fffdf3;
  padding: 1px 1px;
  border-radius: 0px;
 
}


}
#mapsvg-map-3 .mapsvg-filters-wrap {

}




Code:
<!-- Show all images: -->
{{#each images }}
  <!-- Image fields "thumbnail", "medium", "full" -->
  <!-- are available in this block                -->
 
<img src="{{medium}}"/>

{{/each}}
<br>
<!-- DB Object fields are available in this template. -->
<br>
<h4>{{title}}</h4>
<!-- When you need to render a fields as HTML, use 3 curly braces instead of 2:-->
<p>{{{description}}}</p>
 
In your selector tag, delve deeper into the tag and select the img element as well.

Code:
#mapsvg-map-5 .mapsvg-popover img{

background-color: #fffdf3;
  padding: 1px 1px;
  border-radius: 25px;
 
}

Give that a try.

And what coding language is that?
 
Back
Top Bottom