1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help with and image position on a website

Discussion in 'HTML & Website Design' started by mario70, Jun 2, 2011.

  1. #1
    I am a newbie to computer design so i am just learning it all as
    i go. I have a website but need to shift my front index image over about an
    inch but dont know how. Here is what the code looks like.
    ( background:#fff image(index_header.jpg) no-repeat center 33px; )

    I have tried to change center with right but it moves too far. How can i get it
    to move slightly? I have attached a screenshot of what i want it to do.
    I would really apreciate anyones help.
    SEMrush
     

    Attached Files:

    mario70, Jun 2, 2011 IP
    SEMrush
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    When you have issue with you code, either give us a live url or give us the markup and css to determine the issue. I am assuming and may be use margin or padding for the tag which have background style associated with.
     
    radiant_luv, Jun 3, 2011 IP
  3. wertheim

    wertheim Guest

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There are always more than one way to do something. Commonly there is the right way and there is usually a hack. In the "old days" we used spacers which were images of the same color as the background. Sometimes we made images only one pixel wide (or tall) to make an image behave. You can also edit an image to make it wider of more narrow to get it to fit just right. Everything for you depends on what tools you are using to author your page. Is it straight up HTML, or are you using CSS? Are you using tables and cells?
     
    wertheim, Jun 5, 2011 IP
  4. twowebros

    twowebros Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    HI,

    You have used
    ( background:#fff image(index_header.jpg) no-repeat center 33px; )

    replace it to.

    .bannersec.
    {
    background:url(index_header.jpg) no-repeat top right #fff ;
    width:?
    heigth:?
    }

    and difine width and height in it... you will achive what you want.

    have a nice day :)

    2webros
     
    twowebros, Jun 5, 2011 IP
  5. Jandu

    Jandu Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hello dear!

    use margin or padding properties. Try to adjust them and it will be done.
     
    Jandu, Jun 6, 2011 IP