SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Location
    West Coast Canada
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    image and links alinment

    Is there a way to nudge my images down a wee bit to align them with my links.

    Is there a "nudge" element or something like that, that I could use

    Thanks
    chevywes

  2. #2
    Design Your Site Team bronze trophy Erik J's Avatar
    Join Date
    May 2007
    Location
    Countryside, Sweden
    Posts
    3,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the image is an inline in forground:
    Code CSS:
    img{ vertical-align: 50%; /* takes other units too and names, e.g. middle or text-top or top */
    If the image is in background:
    Code CSS:
    background-position: 0 50%; /* from left and top */
    Happy ADD/ADHD with Asperger's

  3. #3
    SitePoint Member
    Join Date
    Aug 2008
    Location
    Lutterworth
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this other option using CSS directly on your image:

    (Delete and amend the CSS '0' Margins to your needs)

    <img src="image.gif" style="margin-top:0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">


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
  •