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

Hello,
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.

Thanks.

: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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
 
<style>
 
option:before {content:'Sample';}
 
</style>
 
</head>
 
<body>
 
    <select>
        <option></option>
    </select>
 
</body>
</html>

Syndicate content