Results 1 to 5 of 5

Thread: centering an image

  1. #1
    Join Date
    Dec 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default centering an image

    how to put an image in the center of the screen?

  2. #2
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    By centering, do you mean just straight down the middle, or do you want it to be able to scroll in the middle as you go?

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    <center>[imagetag]</center>

    (<center> is actually another name for <div align="center"></div>, so use that if you want.)

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33
    <center>[imagetag]</center>
    Please don't ever recommend deprecated markup.

    The OP should apply the following CSS declaration to the element containing the image (assuming that it is horizontal centring that's under discussion).

    Code:
    text-align: center;
    Mike

  5. #5
    Join Date
    Dec 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    what i want to do is that i want to put this script http://dynamicdrive.com/dynamicindex10/matrixeffect.htm as my welcome page and i want to put it in the center of the screen.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •