id se termine avec CSS

/*
	This will select all div elements with an ID 
	ending with -my-id using [arrtibute$=value] 
*/
div[id&="-my-id"] {
	/* add styles here */ 
}
CoderHomie