Set size of view element from css attribute