Tag Archives: HTML

How to execute JavaScript after inserting into element.innerHTML automatically

Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including <script>; you can not call any JS function (software/component does not have such functionality), and … Continue reading

Posted in Programming, Web | Tagged , , , | Leave a comment

CSS first-letter problem with display:inline

According to w3.org first-letter pseudo class works only with block level elements. Here is a paragraph from w3: The :first-letter pseudo-element must select the first letter of the first line of a block, if it is not preceded by any … Continue reading

Posted in Programming, Web | Tagged , , , | 1 Comment

Things that will make your website much faster

What will make my website faster? How to optimize page load time? How to make web site appear to load faster for end user? Updated Feb 9, 2011. This is excerpt from article: How big HTML images / CSS / … Continue reading

Posted in Computers, Programming, Web | Tagged , , , , , , , | Leave a comment

CSS pseudo-element first-letter using form label element

Today I spent 1/2 hour trying to understand, why my labels do not respect CSS rule first-letter. Here is an example snippet: #myform label:first-letter {text-decoration:underline} <form id=”myform” action=”/test/” method=”post”> <label title=”From”>From:</label> The problem was, that The ‘first-letter’ pseudo-element can only … Continue reading

Posted in Web | Tagged , | Leave a comment