Abstract: Both a relative positioned resource and an absolute positioned resource may be generated using a single editor having a single syntax for both the relative and absolute positioned elements. A layout module generates an intermediate data structure based on element information. The element information includes content of at least one element, Cartesian coordinates of the at least one element, and dimensional information of the at least one element. A unified processing module generates a first resource having absolute positioned elements by processing the intermediate data structure, and generates a second resource having relative positioned elements by processing the same intermediate data structure.