jldesign Posted March 23, 2021 Posted March 23, 2021 Site URL: https://jimmylu.design/home-1-1 Hi, I need help trying to achieve this highlighted text effect: https://johannaburai.com/ I managed to find css to have the entire block width highlighted, but is there a way to highlight only the text showing (and not the full width of the text box)? Thank you!
jldesign Posted March 24, 2021 Author Posted March 24, 2021 11 minutes ago, bangank36 said: I saw you use .highlight class for partial text of heading, did you manage to solve this? Not completely, is there a way to highlight only the H1 text (not the entire box width)? I also want to alternate colors for different H1 for each project. (see example: https://johannaburai.com/), Anyone know how to solve these 2 requests?
tuanphan Posted March 25, 2021 Posted March 25, 2021 It looks like you solved with this CSS? #block-yui_3_17_2_1_1616517997186_123692 h1 { color: #000; background: #ffba11; padding: 5px; font-size: 80px; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.