HTML Help Urgent

Discussion in 'HTML & Website Design' started by Fabioftc, Sep 28, 2010.

  1. #1
    Hi Guys I am trying to put up a web page .
    But the image is from a flikr.com and I like to center the image .

    But when I coppy and paste the code from flikr the image set on left hand site of my webpage ,

    here is the code .

    <a href="http://www.flickr.com/photos/38628813@N08/5034487589/" title="Credit score by fabioftc, on Flickr"><img src="http://farm5.static.flickr.com/4154/5034487589_928a092edc.jpg" width="254" height="198" alt="Credit score " /></a>


    If you can help me with that by modigying this code and set in the middle .

    I will be so happy . thanks for now .
     
    Fabioftc, Sep 28, 2010 IP
  2. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can try this:

    <div style="margin:auto;width:254px;">
    <a href="http://www.flickr.com/photos/38628813@N08/5034487589/" title="Credit score by fabioftc, on Flickr"><img src="http://farm5.static.flickr.com/4154/5034487589_928a092edc.jpg" width="254" height="198" alt="Credit score " /></a>
    </div>
     
    GWiz, Sep 28, 2010 IP
  3. RumpledElf

    RumpledElf Well-Known Member

    Messages:
    1,054
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    100
    #3
    Putting the style="margin:auto;" just in the img tag might do it too.
     
    RumpledElf, Sep 28, 2010 IP
  4. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #4
    I would learn html/css before doin' a website. Those basics like "centering" are essential for coding a site.
     
    CSM, Sep 28, 2010 IP
  5. MagentoC

    MagentoC Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    right these are basic and easy stuff, once you are pro.. you'll love it
     
    MagentoC, Sep 29, 2010 IP
  6. 51face

    51face Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yeah... agree... it's so exciting how we can dig our creativity after we have a fair basic skill
     
    51face, Sep 30, 2010 IP