Perhaps all of you tried sooner or later to center an image right in the middle of the browser screen.
I know there are many solutions to this one but I think the easiest way to center an image on a page is to use a CSS on the HTML tag like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html style="width:100%; height:100%; background:url(logo.png) no-repeat center;"> <head> <title>RaduM</title> </head> </html>
You can leave a response, or trackback from your own site.
One Response to “Center image really quick and easy using CSS”
Leave a Reply




[...] The tip is the one I have told you about in a older post of mine: Center image really quick and easy using CSS. [...]