Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

Quick HTML question...

Old 09-02-02, 12:46 AM
  #1  
DVD Talk Special Edition
Thread Starter
 
Join Date: Jul 2000
Location: San Diego, California
Posts: 1,809
Quick HTML question...

If all I wanted was just an image in the center and nothing else, what would be the best way to do that? Do I just add a lot of breaks and center an image? I just want the image to load centered in the middle of the screen, with no scrolling needed or anything.

TIA.
freedexter is offline  
Old 09-02-02, 02:54 AM
  #2  
DVD Talk Gold Edition
 
Join Date: Feb 1999
Location: HB, CA
Posts: 2,601
Create a table with one cell. Set the table for 100% height and width. Set the alignment in the cell to centered.


Code:
<table height="100%" width="100%">
  <tr>
    <td align="center">
      <img src="file">
    </td>
  </tr>
</table>
belboz is offline  
Old 09-02-02, 06:37 AM
  #3  
Senior Member
 
Join Date: Sep 1999
Location: VA
Posts: 751
You can use the div tag:

<div align="center"> <img src="pic"> </div>
jmaxlow is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive Advertising Cookie Policy Privacy Statement Terms of Service

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.