How to select with a specific style attribute?
maybe try
$('div').filter(function() {
var self = $(this);
return self.width() === 420 &&
self.css('margin-top') === '10px' &&
self.css('margin-bottom') === '10px' &&
self.css('text-align') === 'left';
});
It would be easier however to select the element by one attribute such as id or css class, or by it's position to an element that has an id or css class.