Bringing Image to the Center

Discussion in 'CSS' started by ajaykumarmeher, Sep 26, 2007.

  1. #1
    Hello frnds,

    I m trying to bring the header image which reads Jharsuguda to the center part. Tried with float: none but it did not work.

    Any suggestion???

    Site is http://jharsuguda.info
     
    ajaykumarmeher, Sep 26, 2007 IP
  2. Crimsonc

    Crimsonc Peon

    Messages:
    616
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looks like you've solved it, but the page doesn't work in Firefox, everything is messed up.
     
    Crimsonc, Sep 27, 2007 IP
  3. ajaykumarmeher

    ajaykumarmeher Banned

    Messages:
    296
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ya I hv received lot of comment abt it..Will look into it in the weekend.
     
    ajaykumarmeher, Sep 27, 2007 IP
  4. Western

    Western Well-Known Member

    Messages:
    1,751
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    135
    #4
    we don't have any center code in cc
    but you can use Affiliate codes for it like
    left:30%;
    right:30%;
    it depends on your picture size
     
    Western, Sep 28, 2007 IP
  5. Crimsonc

    Crimsonc Peon

    Messages:
    616
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    any image you want to centralise you put it in a div or a span (i suggest div) and set margin: auto;
     
    Crimsonc, Sep 28, 2007 IP