Try to fit element within tile