css changes and positioning of attr