Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How do I put text on 50% of the page width?

Reply
Thread Tools

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

 
 
Day Brown
Guest
Posts: n/a
 
      03-05-2005
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'....

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      03-05-2005
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
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      03-06-2005
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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why does the following with Queue, q.put('\x02', True) not put itin the queue? Gabriel Rossetti Python 3 04-25-2008 03:41 PM
How can I put a message in a jsf page after an action in another page? guess85 Java 1 11-04-2007 02:12 PM
Where to put page specific script in a page that inherits from a master page? Eric ASP .Net 0 04-24-2006 11:54 PM
CSS to put text at bottom of browser window, or page bottom, whichever is lower? Noozer HTML 1 03-13-2006 10:35 AM
How to Put Both Left-Justified Text and Right-Justified Text on the Same Line? jaykchan@hotmail.com HTML 5 06-29-2005 07:01 PM



Advertisments