![]() |
|
|
|||||||
![]() |
HTML - How do I put text on 50% of the page width? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|