Latest solutions
Newsletter Project
Submitted about 1 month agoIn my image section and also in my JavaScript Any improvement will be okay
Latest comments
- @danilo2420@Babs-unique
Good project dude Keep it up
- @MJspittaWhat are you most proud of, and what would you do differently next time?
Starting with mobile-first is better in terms of loading speed. I've not seen much difference but I enjoyed the work flow and i'll continue practicing this same approach from now on for all my projects.
What challenges did you encounter, and how did you overcome them?It was the first time i tried Mobile-first Responsive Design. When i was adopting for larger screens like desktops, i was a bit confused on how to restructure but i passed the hurdle.
What specific areas of your project would you like help with?Is there a better way I could have adopted to larger screens from the mobile-first design?
@Babs-uniqueGood project
- @Binh05What challenges did you encounter, and how did you overcome them?
I ran into issues with CSS selector specificity. The classes I added dynamically via JavaScript couldn't override the styles previously defined in my CSS. I wasn’t sure what keywords to search for, so I turned to AI for help.
Eventually, I realized the problem was caused by the fact that my original CSS used highly specific selectors, whereas the dynamically added classes had more generic selectors. For example:
- before
.active { ... }
- after
.card .content-right .active { ... }
However, more importantly, I’ve gained a much clearer understanding of how CSS specificity works.
What specific areas of your project would you like help with?I was trying to make the drawer image overflow hidden when it exceeds the container boundaries. However, when I set height: 100% without specifying the width, it took up the full width of the screen instead of hiding the overflow content.
To work around this, I set width: 123%, which helped achieve the visual result I wanted.
.card .img img { width: 123%; height: 100%; border-top-left-radius: .5rem; }
I'm not sure if this is a good solution, so I’d really appreciate any feedback or suggestions from others.
@Babs-uniqueLove this
- @ugljesadotbog@Babs-unique
His website was cool and fantastic
- @Mohamed-A-Yehia@Babs-unique
Your project is quite impressive
- @dotun2203@Babs-unique
Perfect