Html Code help please.?

Tarleton D

New member
I was wondering if I want an image to be centred in the page, and the gaps between the sides and top of the page to be filled with a gradient, no matter the screen size. Whats the code for this if my image is called image.jpg
 
well the best bet is to code for the image like this
<center><img src="nnnn"></center>

then in the head section of your page you would want to use google and search for a site that will make it for u, figure out the code and put it there. Or you could try and use a background image gradient
 
That would be done with CSS not html, unless your working with tables.

The CSS would be something like:

But you would have to set up the div widths and related html to suit your image size...



html, body{
margin:0;
padding:0;
text-align:center;
}

#pagewidth{
width:300px;
text-align:left;
margin-left:auto;
margin-right:auto;
}
 
Back
Top