Loading ...
Sorry, an error occurred while loading the content.

text alignment

Expand Messages
  • CISGWW@aol.com
    how do i align either the text or the image so that the text appears to the right side of the image and starts at the topright corner of the image? thanks for
    Message 1 of 2 , Jul 9, 2002
    • 0 Attachment
      how do i align either the text or the image so that the text appears to the
      right side of the image and starts at the topright corner of the image?

      thanks for helping a newbie!
      greg



      [Non-text portions of this message have been removed]
    • Ian Rastall
      ... You can use your stylesheet. In your CSS, you declare .float {float: left;} And then when you do your image, you write:
      Message 2 of 2 , Jul 9, 2002
      • 0 Attachment
        On Tue, 9 Jul 2002 12:44:29 EDT, you wrote:

        >how do i align either the text or the image so that the text appears to the
        >right side of the image and starts at the topright corner of the image?

        You can use your stylesheet. In your CSS, you declare

        .float {float: left;}

        And then when you do your image, you write:

        <img class="float" src="foo" width="foo" height="foo" alt="foo" />

        Don't forget the period before "float" in your style declaration. The
        finished HTML page might look like this:

        <html>
        <head>
        <title>Foo</title>
        <style type="text/css">
        .float {float: left;}
        </style>
        </head>
        <body>
        <img class="float" src="foo" width="foo" height="foo" alt="foo" />
        <p>This is the floated text. BTW, you don't need to call you style
        declaration "float". It can be anything.</p>
        </body>
        </html>

        Ian
        --
        That oughta be like hittin' fungoes
        with a corked bat. (Nathaniel Ward)

        http://www.aspipes.org/
      Your message has been successfully submitted and would be delivered to recipients shortly.