Skip to content

Tag: css

Color specific text

I would like to have a specific text colored differently in HTML/PHP/CSS/JS. I have a text similar to this structure: @john please move the invite to the next week. What i would like to achieve is to have the wording “@john” colored in green while the rest of the text characters should remain in b…

Full screen overlay menu toggle

I want to create a full screen overlay menu. I am not able to close the menu on anchor click eg. if we click on Home. It scrolls down to the section but does not close the overlay. I have tried adding some jquery but I am not able to do it. I have tried to toggle the menus as

add css to iframe javascript form list of iframes

I am trying to manipulate an iframe (chatbox) when loaded on a webpage. The chatbox loads four iframes with changing id with each pageload. Because the iframe that needs to be manipulated is the last / 4th of the list, i used get elements by tagname (“iframe”). However, no style is added to the la…

How to make text responsive in html?

I have the following code: So when you run the code above, I would like the exact same format of the code and everything to be the exact same when the user is viewing it on a large screen, but on devices such as phones/tablets or anything smaller, this should be my expected output: I know the output in this

Align Text and Image in Div Created in Javascript

I’m trying to create a div in JS with an image on the left and a text that can dynamically change on the right. Something like this: [IMAGE] “text” This is what I have so far, but the text still appears beneath the image. Thanks in advance. Answer Figured it out. Flex needs to be on the cont…