CODE ARCHIVE

Years of coding.

Technical articles, programming tutorials, code snippets and source files shared over the years.

KNOWLEDGE & EXPERIENCE

Knowledge worth sharing.

A collection of programming solutions, experiments and technical knowledge shared throughout my journey as a developer.

34Articles
23Categories
283Tags

ARTICLES

Published articles

Clear filter

Filtered by DOM · 2

  1. Set “top,left” of an element with the position relative to the parent in jQuery

    The .offset([coordinates]) method set the coordinates of an element but only relative to the document. Then how can we set coordinates of an element but relative to the parent? The.position() method get only "top,left" values rel…

    Read original article
  2. How to parse and process HTML/XML in PHP

    Simple HTML DOM is a great open-source parser: simplehtmldom.sourceforge It treats DOM elements in an object-oriented way, and the new iteration has a lot of coverage for non-compliant code. There are also some great functions li…

    Read original article