Multiple borders with borders around the image


Ronnie

I want to create multiple borders around my image with some padding as shown below. I prefer to do this with just CSS, but I don't know if this is possible.

When I googled I only found similar examples using box shadows to have multiple borders around objects.

I tried creating it using just a border and padding around the image. But the padding isn't even resolved, and using box shadows like the example above, I don't get what I want.

How would you guys handle this, is it even possible?

EDIT: Sorry, forgot to show what I currently have: PINpen link

this is what i do

Tigran Petrossian

It's very simple!

Padding, borders and a few boxes of shadows will do the trick.

img {    
    border-radius: 50%;
    padding: 3px;
    border: 1px solid #ddd;
    box-shadow: 0 0 0 7px #fff, 
                0 0 0 8px #ddd;
}

violin

Related


Multiple borders with borders around the image

Ronnie I want to create multiple borders around my image with some padding as shown below. I prefer to do this with just CSS, but I don't know if this is possible. When I googled I only found similar examples using box shadows to have multiple borders around o

Colored borders around multiple plots

Joachim Schork I want to draw colored borders around each figure window of a multiplot. Consider the following example: par(mfrow = c(2, 2)) plot(1, 1) plot(1, 1) plot(1, 1) plot(1, 1) output: However, the multimap should look like this: How can I do this in

Colored borders around multiple plots

Joachim Schork I want to draw colored borders around each figure window of a multiplot. Consider the following example: par(mfrow = c(2, 2)) plot(1, 1) plot(1, 1) plot(1, 1) plot(1, 1) output: However, the multimap should look like this: How can I do this in

borders around each cell and table

Swati My task is to maintain other people's code. In this fiddle I capture a snippet of an html file from this codebase https://jsfiddle.net/hqkw4x1s/ .lab { HEIGHT: 18px; FONT-WEIGHT: normal; TEXT-ALIGN: left; PADDING-LEFT: 4px; PADDING-RIGHT: 3px; BACKGROU

Add borders around headings and paragraphs

ninja I am trying to put a border around headings and paragraphs. Currently, I have two separate borders around headings and paragraphs. How can I put a border around them? <style type="text/css"> h1{ font-family: consolas; border: 2px solid #73AD21; border-r

Table has borders around it, but no cells

Wallace Is there a way to display an HTML table with borders around the entire table, but not around the cells within it? The table border property is deprecated in favor of CSS, but both the border property and the suggested CSS replacement outline individual

Remove borders around points in ggplot

Italian Marmite I have a scatterplot with two sets of distinct points based on different datasets. I wanted one of the points to have a border, so I used , pch = 21, which changed the points to a circle with a border and inside. I want the other set of points

Add borders around Bootstrap tabs

Becca I'm using Bootstrap tab markup like this: .nav-tabs { &.nav-tabs-alt { padding-top: 30px; li { a { color: @brand-info; font-size: 16px; } } li.active {

Access borders around content presenters

Paul I have a ListView using DataTemplate. When an item is selected the border is added and the background is added, but I'm not sure where. This is displayed in the visual tree as a border around the ContentPresenter but inside the ListViewItem. These propert

Table has borders around it, but no cells

Wallace Is there a way to display an HTML table with borders around the entire table, rather than around the cells within it? The table border property is deprecated in favor of CSS, but both the border property and the suggested CSS replacement outline indivi

Add borders around headings and paragraphs

ninja I am trying to put a border around headings and paragraphs. Currently, I have two separate borders around headings and paragraphs. How can I put a border around them? <style type="text/css"> h1{ font-family: consolas; border: 2px solid #73AD21; border-r

Table cell borders with multiple thicknesses (or div borders)?

Andrew Truckle I know how to style the border to double on a table cell or div border . But how to do it (taken from Microsoft Word): It has thick and thin borders. Can we do this easily using HTML/CSS? Thank you. renew: Here is some sample HTML: <!DOCTYPE htm

Table cell borders with multiple thicknesses (or div borders)?

Andrew Truckle I know how to style the border to double on a table cell or div border . But how to do it (taken from Microsoft Word): It has thick and thin borders. Can we do this easily using HTML/CSS? Thank you. renew: Here is some sample HTML: <!DOCTYPE htm

rotated image borders

Department of Homeland Security I'm trying to find keypoints in a rotated resampled image using fastcorner. my code: tfm = Translation((r/2)-1,(c/2)-1) ∘ LinearMap(RotMatrix(-theta)) ∘ Translation(-((r/2)-1),-((c/2)-1)) uR = warp(img1, inv(tfm), indices(img1))

borders for image bootstrap

Avaso I'm currently trying to set a border around the image, but unfortunately bootstrap doesn't make it easy. It seems they add padding to the columns to prevent the borders from fitting. I'm not sure if there is a way to do this without removing the padding

Set the borders of the still image

Ezri Y I am using ol v5.3.0 to view still images. I want to limit the image to the size of the ol div. When the image is minimized past the div size, it will no longer be minimized. I tried using the projection property of the static image with the original im

Remove image borders with JavaScript

Grosk I have an image with a border that should not work in Chrome, Safari, IE and Opera, but not in Firefox. I'm assuming it's a browser default issue, but I'm working on removing it because it's running as an AB split test and I can't modify the basic html/c

Remove image borders with JavaScript

Grosk I have an image with a border that should not work in Chrome, Safari, IE and Opera, but not in Firefox. I'm assuming it's a browser default issue, but I'm working on removing it because it's running as an AB split test and I can't modify the basic html/c

OpenCV detects image borders

yaqwsx I have a set of corrupted images - the images have been split in two by a vertical line and their order has been changed. Now I need to fix them on Raspberry Pi using OpenCV. How to solve? and quickly fix them? yaqwsx I finally managed to fix this - aft

rotated image borders

Department of Homeland Security I'm trying to find keypoints in a rotated resampled image using fastcorner. my code: tfm = Translation((r/2)-1,(c/2)-1) ∘ LinearMap(RotMatrix(-theta)) ∘ Translation(-((r/2)-1),-((c/2)-1)) uR = warp(img1, inv(tfm), indices(img1))

Set the borders of the still image

Ezri Y I am using ol v5.3.0 to view still images. I want to limit the image to the size of the ol div. When the image is minimized past the div size, it will no longer be minimized. I tried using the projection property of the static image with the original im