Functioning for both via stylesheet