HTML question


  1. Posts : 394
    Desk Top with Win 7 Home Premium 64 bit and Lap Top with Windows 8.1 Pro 64 bit
       #1

    HTML question


    I am taking an on line HTML tutorial. On my web page that I am making, I am trying to center a graphic. I'm getting it done, but not in the way that I should do it according to the tutorial. Of course, it's possible that I'm am misunderstanding the lesson. According to the instructions, if I want to center the image the code should be: <img align= center src="name of file"> when I do it that way, the image is on the left side. However, if I put: <img <center> src="name of file"></center> it will put the image at the center of the page as I want it. Is there something that I am not understanding?
      My Computer


  2. Posts : 53,364
    Windows 10 Home x64
       #2

    This may be browser specific issue you are having. Try this code, it should work <img src="name of file" align="center">

    This code should also work, and is a correct tag:

    <center><img src="name of file"></center>

    A Guy
      My Computer


  3. Posts : 650
    Windows 7 Ultimate x64
       #3

    here is another online HTML reference I use to look up tags:

    Sizzling HTML Jalfrezi - HTML by Example
      My Computer


  4. Posts : 394
    Desk Top with Win 7 Home Premium 64 bit and Lap Top with Windows 8.1 Pro 64 bit
    Thread Starter
       #4

    A Guy said:
    This may be browser specific issue you are having. Try this code, it should work <img src="name of file" align="center">

    This code should also work, and is a correct tag:

    <center><img src="name of file"></center>

    A Guy
    I tried both and the only one that works is <center>img src="file name"></center>
    But here's what seems crazy. After I read your what you said about it passably being a browser issue, I downloaded and installed IE 9 and I still get the same results. I even tried it on my netbook and got the same result. I then thought that maybe there is something with the file itself--possible some sort of code that I put above it that may be causing the problem. So, I made a fresh and simple new HTML file. I got the same results there. So, it's crazy--that tag should work. Thank for your response though.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:24.
Find Us