Way to add options for "content" in :before/:after pseudo classes

is there a way to add options (align=absmiddle exactly) for an image defined by content attribute? Code looks like:
#object:before {content:url('image.png');}

The thing I'm trying to do is to create page menu, with rounded images before and after it when hovered.


:before and :after on form elements

I'm trying to use the :before or :after pseudo classes on the following select and option elements in conjunction with the content CSS:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
option:before {content:'Sample';}

Syndicate content