How do I put text on 50% of the page width?

Discussion in 'HTML' started by Day Brown, Mar 5, 2005.

  1. Day Brown

    Day Brown Guest

    and have <img src=witch.gif size=50%> next to it?
    I must be missing something, read about tables and frames, but didnt see
    'text flow'....
    Day Brown, Mar 5, 2005
    #1
    1. Advertising

  2. Day Brown wrote:

    > and have <img src=witch.gif size=50%> next to it?


    What? Oh, you started the question in the subject.

    For a start you need to learn ahout http://validator.w3.org/ - quotes around
    attribute values are only optional sometimes (its simplist just to use them
    all the time as they are never forbidden), and the alt attribute is
    required for <img> elements. I think you mean width rather then size too,
    there is no size attribute for images.

    > I must be missing something, read about tables and frames, but didnt see
    > 'text flow'....


    Well, presentation is the job of CSS, not HTML. You would probably want to
    wrap the text in a suitable container (probably a <div> since it doesn't
    sound like there is anything in HTML that has more accurate semantics for
    your data). You can constrain the width with the "width" property, then let
    the image appear next to it (or vice versa) with the "float" property.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Mar 5, 2005
    #2
    1. Advertising

  3. Day Brown

    Toby Inkster Guest

    Toby Inkster, Mar 6, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AndrewF
    Replies:
    1
    Views:
    768
    Bruce Barker
    Oct 10, 2005
  2. Eric
    Replies:
    0
    Views:
    541
  3. Coder
    Replies:
    1
    Views:
    696
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  4. Gabriel Rossetti
    Replies:
    3
    Views:
    543
    Jerry Hill
    Apr 25, 2008
  5. Replies:
    0
    Views:
    495
Loading...

Share This Page