Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

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

 
Thread Tools Search this Thread
Old 03-05-2005, 10:24 PM   #1
Default How do I put text on 50% of the page width?


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
  Reply With Quote
Old 03-05-2005, 10:33 PM   #2
David Dorward
 
Posts: n/a
Default Re: How do I put text on 50% of the page width?

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
  Reply With Quote
Old 03-06-2005, 11:58 AM   #3
Toby Inkster
 
Posts: n/a
Default Re: How do I put text on 50% of the page width?

Day Brown wrote:

> How do I put text on 50% of the page width?
> and have <img src=witch.gif size=50%> next to it?


http://examples.tobyinkster.co.uk/50pc_width

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./syntax_-_pride.ogg

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump