Ahmed K wrote: > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > "http://www.w3.org/TR/REC-html40/loose.dtd"> > <html> > <body> > <div style="width:200px;background-color:yellow"> > <img src="arrow.gif" style="float:right;vertical-align:middle"><p>s</p> > </div> > </body> > </html> > > doesn't seem to work though.. > i need this to work for the image to look right: ---> vertical-align:middle > > >
You could use "padding" commands to position elements inside of the layer: padding-top:20px measn 20 pixels to the upper margin of the div layer and padding-left:20px 20 pixels to the left margin of the div layer.
