473,563 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

laying out text into an 'L' shaped space.


Is there any way using HTML 4.01 of wrapping text and other inline
elements into an 'L' or 'C' shaped space in a table - i.e. telling the
browser that a series of table cells which don't form a square, line, or
rectangle should all be considered as part of the same inline block?

What i want it for is I'm using a two column table to display a series of
images with text, and I want the images opposite the centre of each text
section, with the text sections overlapping each other side to side when
they're taller than the image, so that there isn't too much wasted space.
This is working OK in the centre of the table, but if the text for the
first and last images is taller than the image, I want it to wrap into the
unused space above/below the image, rather than stay in a column. This
can't be done using rowspan/colspan I think, as these only work for square
or rectangular blocks.

andy.

--
http://www.niftybits.ukfsn.org/skullcap.html

remove 'n-u-l-l' to email me. html mail or attachments will go in the spam
bin unless notified with [html] or [attachment] in the subject line.

Jul 20 '05 #1
3 4345
On Thu, 12 Feb 2004 04:00:43 +0000, skullcap wrote:

Is there any way using HTML 4.01 of wrapping text and other inline
elements into an 'L' or 'C' shaped space in a table - i.e. telling the
browser that a series of table cells which don't form a square, line, or
rectangle should all be considered as part of the same inline block?


Not by using a table, no.

Float the image. Or, if you need a caption, float the element (possibly
a div) containing the image and the caption.

f'ups set.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Jul 20 '05 #2
It seems "skullcap" wrote in comp.infosystem s.www.authoring.html:
What i want it for is I'm using a two column table to display a series of
images with text, and I want the images opposite the centre of each text
section, with the text sections overlapping each other side to side when
they're taller than the image, so that there isn't too much wasted space.


Use align=right in the <img> tags (or float:right in your CSS if
any).

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
skullcap wrote:
Is there any way using HTML 4.01 of wrapping text and other inline
elements into an 'L' or 'C' shaped space in a table - i.e. telling the
browser that a series of table cells which don't form a square, line, or
rectangle should all be considered as part of the same inline block?

What i want it for is I'm using a two column table to display a series of
images with text, and I want the images opposite the centre of each text
section, with the text sections overlapping each other side to side when
they're taller than the image, so that there isn't too much wasted space.
This is working OK in the centre of the table, but if the text for the
first and last images is taller than the image, I want it to wrap into the
unused space above/below the image, rather than stay in a column. This
can't be done using rowspan/colspan I think, as these only work for square
or rectangular blocks.

andy.


The answer is no... but... I had the same question and if you go to
http://news.bbc.co.uk and check out any one of their long stories,
you'll find they have managed it.

On further investigation, what I see that they have done is either by
including an image or table half way down their story text which makes
it appear that the main story line forms an 'L' or 'C' shape... So, it
would be correct to say that you cannot do this with a single cell in
HTML, but you can create the illusion of the effect you require.

Hope the above helps...
Jul 20 '05 #4

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

Similar topics

8
1524
by: Xamle Eng | last post by:
One of the things I find most unnatural about most XML APIs is that they try to abstract both elements and text into some kind of "node" object when they have virtually nothing in common. The reason these APIs do it is to make it possible for both text and elements to be children of elements. But there is another way. The XPath/XQuery...
9
2141
by: effendi | last post by:
Is is possible for me to place to images side by side one -one right align and another left align on the same horizontal plane using CSS without tables? Thanks for any suggestion/advice.
16
3441
by: Woodmon | last post by:
I want to flow text in an "irregular" column on the left and place a large image at the top of an "irregular" column to the right. Then after the bottom of the large image I want the text column on the left to expand part way to the right, but not all the way to the right, as I want a smaller image on the right. Then this will continue to the...
16
2650
by: thenightfly | last post by:
Ok, I know all about how binary numbers translate into text characters. My question is what exactly IS a text character? Is it a bitmap?
3
3307
by: James | last post by:
I have an picture cut out in a certain shape that I would like to make as my form. I have tried following the directions in MSDN on how to make shaped windows forms but their directions did not work for me. Does anyone know how I can set my irregular shaped picture as my form? Thanks for the help.
4
2462
by: Publicjoe | last post by:
Hi guys, I am writing an app that I wish to have a transparent background and hence a shaped form. In the InitializeComponent() method I set the members of the form to the following: //-- Code ------------------------------------------- this.FormBorderStyle = FormBorderStyle.None; this.MaximizeBox = false;
0
1668
by: dr | last post by:
C# Irregular shaped user controls. How to make usercontrol have transparency key for its background image? I want to have irregular shaped user controls on my form. like a funny shaped button. This works fine for irregular shaped forms becuase they have a transparency key field, but user controls dont have this field. note i do not want to...
1
2678
by: cazconv2007 | last post by:
Hi under my floating images i cant get text under them why not? it goes to the side <!--navigation menu--> <div id = "mainnavigation"> <a href = "home.html">Home</a> |<a href = "about.html">About |</a><a href="camels.html">Camels |</a><a href = "extras.html">Extras |</a> <a href = "adoptions.html">Adoptions |</a><a href =...
1
18975
by: striker07 | last post by:
Someone help me how can i display a diamond shaped asterisk correctly pls. correct my program this is my code: Dim ctr, space, asterisk As Integer For ctr = 1 To 9 Step 2 For space = (9 - 2) / 2 To 0 LstDisplay.AddItem (" ") Next For asterisk = 1 To ctr
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
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. ...
0
8106
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...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
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...
0
6255
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...
1
5484
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...
1
2082
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
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.