Results 1 to 11 of 11

Thread: [RESOLVED] align

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Resolved [RESOLVED] align

    how can i align a image to center, is it possible or not? if it is tell me how please?

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: align

    You can try:

    Code:
    <img src="" alt="" align="middle">
    or you can keep changing the v space and h space of the image until it is in the center of the page.

    or you could wrap the image in div tags than center the div and see if that works.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: align

    doesnt work.

    well i found out how to:


    <HEAD>
    <TITLE></TITLE>
    <STYLE type="text/css">
    BODY {text-align: center}
    </STYLE>
    <BODY>
    <img src="http://www.vbforums.com/image.php?u=25658&dateline=1094028584" alt="" align="middle">
    </BODY>

    this aligns all BODY to center, but its possible to rename it.
    Last edited by Justa Lol; Dec 6th, 2008 at 06:01 AM.

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: align

    Quote Originally Posted by Justa Lol
    doesnt work.
    Did you try the other suggestions?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: align

    i needed it to be center, no spaces or stuff... center of screen only.

  6. #6
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: align

    Did that resolve your problem? If so please mark your thread "Resolved".
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  7. #7
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    285

    Re: align

    Hi there Justa Lol,

    try it like this...
    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    
    <style type="text/css">
    #myimage {
        width:64px;
        height:64px;
        display:block;
        margin:auto;
     }
    </style>
    
    </head>
    <body>
    
    <div>
    <img id="myimage" src="http://www.vbforums.com/image.php?u=25658&dateline=1094028584" alt="">
    </div>
    
    </body>
    </html>
    


    ~ the original bald headed old fart ~

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: [RESOLVED] align

    i thought i hit resolved... lol... sorry.

  9. #9
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    285

    Re: align

    Hi there Nightwalker83,

    note that align, hspace and vspace are all deprecated attributes....

    ...and CSS styling should be used in their place.
    Last edited by coothead; Dec 13th, 2008 at 07:12 PM.


    ~ the original bald headed old fart ~

  10. #10
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: align

    Quote Originally Posted by coothead
    Hi there Nightwalker83,

    note that align, hspace and vspace are all deprecated elements....

    ...and CSS styling should be used in their place.
    Ah ok, thanks for the information!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  11. #11
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    285

    Re: [RESOLVED] align

    You're welcome.


    ~ the original bald headed old fart ~

Posting Permissions

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



Click Here to Expand Forum to Full Width