Div element to texture

Is it possible to render a div element to a texture?