SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Align text and image in header

    Hi, This is probably very simple but I cannot work out what I need to do to get this right.

    I simply want to get an image to display to the right of some text in my header section but I want the image to be just after the text, and not right over to the right.

    The site is working but I want to make a change to the header, an example page is - http://www.hitchintownfc.co.uk/nicktest.shtml

    I normally muddle my way through with css stuff but this is eluding me

    Thanks, Nick.

  2. #2
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    6 Thread(s)
    Hi Canary Nick

    float both elements: for example:
    HTML Code:
    <html>
    <head>
      <style>
        p {float: left;}
        div {width: 800px;}
      </style>
    </head>
    <body>
    <div>
        <p>This is my text</p>
        <p><img src='path/to/image' /></p>
    </div>
    </body>
    </html>
    Steve
    ictus==""


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
  •