Layout via programmatic DOM access.