View Full Version : help with image centering

10-03-2010, 02:12 PM
i wanna have an image on the center of the first page of my website, but for some reason i can;t center it!
i want it to be on the center regardless the size of the window.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-image: url(../za%20sajt/pozadinabela.jpg);
background-repeat: repeat;

<div align="center"><img src="../za sajt/watercolor copy.gif" width="428" height="334" align="absmiddle" /></div>


it's centered bit it;s always on top of the page.

10-03-2010, 06:47 PM
this article explains:

If you get stuck then let me know.