What's the HTML Code?

  • Thread starter Thread starter Chris C
  • Start date Start date
C

Chris C

Guest
First off, the above information has been deprecated as of HTML 4.0 and XHTML 1.1. And none of these methods allowed for stopping an image from repeating, other than the last one.
Using CSS is THE most efficient way to get your page layout to be easy to modify in the future, AND provide the ability to hide/display images, much less position them on the web page.


That depends upon which HTML element the image is associated with.

For example for the entire document, it would be using the <BODY> tag's "background" and "align" attributes.
Example: <body background="myimage.jpg" align="center">
Of course, for the example above, you would have to have the left/top padding built in.


Then if you are using an HTML <TABLE> tag, the attributes are the same:
Example: <table background="myimage.jpg" align="center"> ... </table>


Of course, if you are using the HTML <IMG> tag, you can use the old deprecated HTML tag <CENTER>.
Example: <center><img src="myimage.jpg" align="middle"></center>
 
I need the non-CSS html code for adding and centering a background on page. . i do not want the image to repeat.
 
Back
Top