Skip to content

Tag: css

how to delay an insertBefore?

It is possible to stop an insertBefore, inside an addEventListener, to add a smooth css, so that the movement produced by the insertion of the div is not abrupt for the user? I have read many questions, i have tried using settimeout in various ways, without success: Answer this refers to a different context i…

Unable to make responsive aligment

Screenshot (The layout i look for) : My codes My current code : Works fine with large desktop, big screen and resolution But, When i check it with small desktop, mobile and small resolution screen, than the layout getting missed up. How to i make this responsive? Answer Removed most of the code from your CSS …

How can you strike through a variable in Javascript?

I want to strike through part answer[i], but not wordArray[i]. How should I go about this? Thanks. Answer Strike though a variable sounds weird, do you mean to strike a text (string)? In that case you have text-decoration: line-through; (see more about text-decoration) If that’s the case you can wrap yo…