#myDIV { width: 331px; height: 346px; margin-left:25px; margin-right:-5px; float:left; display:inline-block; border: 3px solid red; animation: mymove 1s infinite alternate; } @keyframes mymove { from {border-color:red ;} to {border-color: black;} } .category-title { width:325px; height:40px; padding-top:10px; text-align:center; color: red; text-transform: uppercase; font-weight: 800; background: #afafaf url(wp-content/themes/magazine-pro/images/widget-bg.jpg) top center repeat-x; }