Professional Web Applications Themes

How to center an image in Dreamweaver - Macromedia Flash Sitedesign

I'm using Dreamweaver MX 2004. How can I center an image horizontally and vertically in a page? Sounds fairly simple, just not sure how to do it. Thanks!...

Sponsored Links
  1. #1

    Default How to center an image in Dreamweaver

    I'm using Dreamweaver MX 2004. How can I center an image horizontally and
    vertically in a page? Sounds fairly simple, just not sure how to do it.
    Thanks!


    Sponsored Links
    Bradlie Guest

  2. #2

    Default Re: How to center an image in Dreamweaver

    Try using css if that's not beyond your project's scope. In the css, create a
    wrapper tag with "margin: auto;" and give it a width and height equal to your
    image and then place the img tag inside the wrapper div tag.

    If you don't want to mess with css, the closest you could get would be to
    center the image with center tags and lower it to the center of the page with
    breaks. Not as pretty but most visitors won't know the difference.

    You should try posting the ? in the DW forum to get faster responses.



    jameslyon Guest

  3. #3

    Default Re: How to center an image in Dreamweaver

    http://www.peachpit.com/articles/article.asp?p=30943&seqNum=5
    anishu Guest

  4. #4

    Default Re: How to center an image in Dreamweaver

    anishu, the first link is just for adding white space not for centering.
    The second is for using tables in a different but still doesn't touch on dynamic centering.
    jameslyon Guest

  5. #5

    Default Re: How to center an image in Dreamweaver

    aligning it from left to right is simple.. for vertical you need a script try
    this it has always worked for me.




    <CENTER>
    <TABLE WIDTH="100%" HEIGHT="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD WIDTH="100%" ALIGN="MIDDLE" HEIGHT="100%">
    <CENTER>
    <table width="9%" height="36" border="0" cellpadding="0" cellspacing="0"
    bordercolor="#111111" id="AutoNumber1" style="border-collapse: collapse">
    <tr>
    <td width="100%" height="19"><div align="center">[Past everything that
    you want to center in HTML format]</div></td>
    </tr>
    </table>
    </CENTER>
    </TD>
    </TR>
    </TABLE>
    </CENTER>

    ~Flash~ Guest

  6. #6

    Default Re: How to center an image in Dreamweaver

    Here is this script in use...

    http://home.gate.net/~ziptank/agt
    ~Flash~ Guest

Similar Threads

  1. How to center image in canvas
    By Frederic Laruelle in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: May 1st, 06:36 PM
  2. Center background image
    By Studio52 in forum Macromedia Dynamic HTML
    Replies: 5
    Last Post: July 4th, 11:24 AM
  3. Center image using position: absolute?
    By Dafydd ab Hugh in forum Macromedia Dynamic HTML
    Replies: 2
    Last Post: August 25th, 09:19 PM
  4. Can't center image on HP 1115
    By larrysimon in forum Adobe Photoshop Elements
    Replies: 8
    Last Post: September 4th, 01:40 PM
  5. center the background image
    By Michael Fesser in forum Adobe Dreamweaver & Contribute
    Replies: 3
    Last Post: July 19th, 08:26 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139