Latest solutions
Responsive website using HTML, CSS, and Javascript
#viteSubmitted about 1 month agoI need more help with responsive design and more effective DRY CSS. There are moments were it feels like I am writing too much CSS for something where I can write less using more advance techniques/functions.
Latest comments
- @vivekrahul@StanishCode
Using the overflow property on a parent container for an image is an easy way for the parent div and the image to have the same border radius. An important note, the image must be as big as the parent container.
.image-div { display: inline-block; border-radius: 20px; overflow: hidden; } .image { text-align: center; padding: 15px; width: 100%; height: 100% }
Marked as helpful