css fix for resize