473,624 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Newby image/ text wrap question

Hi,

I'm new to html, and having difficulty getting my text to wrap around
an image the way I'd like it to..

I have an image in the top left corner of a component, and if there is
space, I'd like my text to start at the top right and wrap around the
image. However, if there is a long word in my text (which is longer
than the available space between the image and the left edge of the
component) the the image overlaps the text. Ideally I'd like the text
to begin under the image if one of more of the words are too long for
the available space.

An example of my current text snippet is as follows (note, the size of
the component is determined programmaticall y by my application):
<p><img align="right"
src="http://www.travelodge. co.uk/images/location_maps/dunfermline_s01 21.gif"
/></p>
<p>ujfyjty:Whku ykyuat thffzfdbgdfbdxf bgtfh
gfmfdnfgbfdxvzd sgvfgdszrvfdgdf gdvfd fdggggggggggggg ggggggggggggggg dfg
drgegevxddddddd dddddrers:<p>

So far I can only get the effect I want by adding it into a table - is
this the only way it is possible?

Cheers,
- Laura

Dec 18 '06 #1
1 3986
Scripsit la************@ gmail.com:
I have an image in the top left corner of a component, and if there is
space, I'd like my text to start at the top right and wrap around the
image.
I think you have "left" and "right" swapped here, as compared with the rest
of the problem description.
However, if there is a long word in my text (which is longer
than the available space between the image and the left edge of the
component) the the image overlaps the text.
This is an Internet Explorer bug.
Ideally I'd like the text
to begin under the image if one of more of the words are too long for
the available space.
That's what Firefox does.
So far I can only get the effect I want by adding it into a table - is
this the only way it is possible?
Floated elements - whether you float them using align="..." attributes in
HTML or the float property in CSS - suffer from some implementation problems
that reduce their attractiveness.

In this case, however, it seems that the problem can be fixed by making the
block-level container (in your example, <pelement, but I would rather use
<div>, since an image does not really constitute a paragraph) floated,
rather than the image itself. You would need to set an explicit width for
the container, so you may need to modify the code that generates the page.
Example:

<div style="width: 270px; float: right"><img
src="http://www.travelodge. co.uk/images/location_maps/dunfermline_s01 21.gif"
alt="(Map of Dunfermline area.)"></div>
<p>ujfyjty:Whku ykyuat thffzfdbgdfbdxf bgtfh
gfmfdnfgbfdxvzd sgvfgdszrvfdgdf gdvfd fdggggggggggggg ggggggggggggggg dfg
drgegevxddddddd dddddrers:</p>

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Dec 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5257
by: Mark P | last post by:
My images are fixed in size and can't be redone. Many of them are tall and narrow. How can I wrap text so that the text starts on the right of the image at a level with the top of the image. So that resizing the browser window will cause the text to wrap below the image.
1
6214
by: Hugo de Payns | last post by:
Happy newyear first of all; I am experimenting with a list and some images; the problem is text and the (LI)image are never outlined, or the image is higher than the text, or the image is below the text, but never on the same level. Question: how can i get the image and the text on the same level?? Question 2:
8
1826
by: Ask | last post by:
G'day All, Just thought I'd drop in and say hi. I'm new to Python, but old to software development. Python is one of the languages used in my new job, so I've just bought a book, read it, and downloaded Python; It's pretty good isn't it? It's particularly handy being able top run the same bytecode on different platforms.
10
2926
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several routines that upload and process images. I can't get past "square one" with images in C#: This statement:
8
2734
by: Jazztastic | last post by:
Hi group. I have a table with a dynamic image and dynamic text field. Whatever i try, the text doesn't wrap around the image. Can someone please help me out with this? this is the code: <td> <img src="fotos/<?php echo $row_Recordset1; ?>" alt=""
9
38895
by: shapper | last post by:
Hello, What is the best way to place an image and a text side by side using CSS? Basicaly what I am trying to do is to make the image and the text to appear as follows: Image My Text... XXXXX ---------------
5
1822
by: alexrixhardson | last post by:
Hi guys, I am a newby in the C/C++ world, and I am beginning to work on a rather simple TCP/IP proxy application which must be able to handle large volume of data as quickly as possible. Since this application has to process and distribute plain text around the network, I am wondering if there are any peformance differences between C++ std::string and C char in run time?
1
19661
by: swc76801 | last post by:
I desperately need help. My understanding of CSS is non-existent. I have a store http://astore.amazon.com/texasheat-20 with Amazon.com. According to the information from Amazon.com "Write your own overriding CSS to customize your aStore." Their setup page is divided into two sections. On the right they show the existing CSS. On the left there is a box where you can add the new code. They have tabs for "Global", "Category Page", "Detail Page",...
2
2804
by: raylopez99 | last post by:
Beware newbies: I spent a day before I figured this out: copying a bitmap (image) file to file is not quite like copying a text file--you have to do some tricks (see below), like using a "Graphics" object to wrap around the image (!). It's not so simple as shown in most examples (where they have a simple image file and hard copy it into a harddrive along the lines of : image.Save(@"C:\\temp\\myimage.pgn"); That will work, but it's a...
0
8177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8681
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8629
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7170
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.