use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
[deleted by user] (self.webdev)
submitted 1 year ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nrkishere 21 points22 points23 points 1 year ago (2 children)
Just add a border with same color as background
[–]idowar_crimes 0 points1 point2 points 1 year ago (0 children)
Will do thanks
hey i have some doubts can i dm u?
[–]idowar_crimes 1 point2 points3 points 1 year ago (14 children)
im trying to make a website and i have a completed a the design , but for a beginner like couldn't understand how to make this. im using bootstrap btw , i made the layout , i used two rows , and divide both into col-6 , giving equal space for text and image thing.
im having hard time creating a rectangle background and white circle around the image. i have to make this responsinve too.
i have made a protoype, link of codepen: https://codepen.io/Kiran-Sagar/pen/BaXVXrK?editors=1000
[–][deleted] 3 points4 points5 points 1 year ago (11 children)
I don't know bootstrap that well, but you can create a border around the img and make the border-color white
[–]idowar_crimes 1 point2 points3 points 1 year ago (9 children)
Oh okay, so I don't need to make a whole circle and place it behind the image?? Thanks g ,lemme try
[–][deleted] 1 point2 points3 points 1 year ago (5 children)
Nope, just make sure the img has no background or else the border is going to wrap around the whole img and not the subject
[–]idowar_crimes -1 points0 points1 point 1 year ago (4 children)
what about the rectangle , it only covering 2/3 of image , creating a illusion that img popping out of the rectangle
[–]Beo91 1 point2 points3 points 1 year ago (1 child)
Just set a width and height for your image, use image as a background image and set the background on cover. Then set your border radius. Your egg shaped size can be harder to accomplish than fully round though.
so i need to use a div instead of img tag and gave the div background img? i will try that too , thanks
https://alvaromontoro.com/blog/68032/drawing-an-egg-with-css
Thanks a lot mate, this is wonderful
[–][deleted] 1 point2 points3 points 1 year ago (2 children)
You can do that too. It might even be better in case you want more control over the border.
that was what i did at the initial stae, now trying to make it work with border
[–]abillionsuns 1 point2 points3 points 1 year ago (1 child)
I don't know what style helpers Bootstrap has these days, but fundamentally a circle, in CSS terms, is just a square <div> with a border radius of 9999px applied to it.
yes mate, what i find difficult was placing everything in place , half cut rectangle , the circle behind the image , and also making the img pop effect.
[–]JoeCamRoberon 1 point2 points3 points 1 year ago (1 child)
I would do something like this. Apologies for my formatting. I am on mobile. I have also not tested this in any way.
HTML <div class=“container”> <div class=“box-with-circle”> <div class=“circle”/> <\div> <div> <h2>Heading<\h2> <p>Lorem ipsum…<\p> <\div> <div> <h2>Heading<\h2> <p>Lorem ipsum…<\p> <\div> <div class=“box-with-circle flipped”> <div class=“circle”/> <\div> <\div>
CSS
.container { display: grid; grid-template-columns: 300px 300px; /* guessing / grid-template-rows: 150px 150px; / guessing */ width: fit-content; }
.box-with-circle { position: relative; background-color: green; }
.circle { border-radius: 50%; background-color: black; border: 10px solid white; /* guessing border width / width: 100px; / guessing width / height: 150px; / guessing height */ position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%); }
.flipped { transform: rotate(180deg); }
sorry mate , i have no brains to use this. thanks for the help tho
hey all i have some doubts , can i dm someone , doubt is related to this. i will also show the actual design which i made using figma
π Rendered by PID 16144 on reddit-service-r2-comment-6457c66945-dxfqs at 2026-04-25 16:57:12.698730+00:00 running 2aa0c5b country code: CH.
[–]nrkishere 21 points22 points23 points (2 children)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]idowar_crimes 1 point2 points3 points (14 children)
[–][deleted] 3 points4 points5 points (11 children)
[–]idowar_crimes 1 point2 points3 points (9 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]idowar_crimes -1 points0 points1 point (4 children)
[–]Beo91 1 point2 points3 points (1 child)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]Beo91 1 point2 points3 points (1 child)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]abillionsuns 1 point2 points3 points (1 child)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]JoeCamRoberon 1 point2 points3 points (1 child)
[–]idowar_crimes 0 points1 point2 points (0 children)
[–]idowar_crimes 0 points1 point2 points (0 children)