473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

a CSS problem (annotating a novel, horizontal flush alignment)

i'm trying to annotate a literature, so that the main text is on the
left side about 60ex wide and the annotations are in a box on the right
side about 40ex wide.

the way i did this is so have like:

<p>...one paragraph of main text...[â€*1]...</p>

<div class="note">
â€*1 ...
</div>

where the class "note" floats right.

This all works well except when the paragraph is really long, in such a
case the annotation will be one screenful down.

For example, see second annotation at
http://xahlee.org/p/Gullivers_Travels/gt1ch02.html

is there some easy way using css so that annotation are most of the
time just on the right side of the paragraph?

(i want to avoid using tables for each paragraph)
Thanks.

Xah
xa*@xahlee.org
∑ http://xahlee.org/

Jul 20 '05 #1
1 1145
CSS issue, so xpost and f'up2 c.i.w.a.s.

Xah Lee wrote:
i'm trying to annotate a literature, so that the main text is on the
left side about 60ex wide and the annotations are in a box on the right
side about 40ex wide.

the way i did this is so have like:

<p>...one paragraph of main text...[â€*1]...</p>

<div class="note">
â€*1 ...
</div>

where the class "note" floats right.

This all works well except when the paragraph is really long, in such a
case the annotation will be one screenful down.

For example, see second annotation at
http://xahlee.org/p/Gullivers_Travels/gt1ch02.html

is there some easy way using css so that annotation are most of the
time just on the right side of the paragraph?

(i want to avoid using tables for each paragraph)
Thanks.

Xah
xa*@xahlee.org
∑ http://xahlee.org/

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #2

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

Similar topics

1
by: Ron Bott | last post by:
I have a fixed size <div> I would like to display in the center of a browser window. To get the horizontal alignment is no problem using 'margin-left: auto' and 'margin-right: auto' but I cannot...
3
by: Frank Wheeler | last post by:
Why am I unable to attain proper vertical alignment between a DIV and a TABLE here: http://www.whbvillage.com/agenda-archives/agendex.html The DIV is coded: <DIV style="float: left;...
0
by: Dave | last post by:
Hi, I currently have the following in order to have a little bit of horizontal spacing separation between the bullet images and the text in the list (and I'm happy with the vertical separation...
0
by: Kenny | last post by:
I try to align the data in my datagrid to the right. I use this piece of VB.Net code. "Salestable" is one of the tables in the dataset which i want to show in my datagrid. Showing this data in...
0
by: Haines Brown | last post by:
I have a fixed width page that has a division with a brief centered line of text that is defined as font-family: sans-serif. It is the widest element on the page. There is a second division that...
2
by: blackdevil1979 | last post by:
Hello, Is there a way to format the data when it is passed into the Crystal Report(CR).. for example.. In the original table, a number may be left aligned, how to change it to right alignment?.....
4
by: Jeff Higgins | last post by:
Hi, I would like to left align the text within a paragraph element while keeping the paragraph center aligned within the body. The following doesn't do it. Any help will be greatly...
8
by: ayamopamo | last post by:
Hi- I am trying to center a web page. It seems like this should be very simple to do, but apparently it isn't my day. I have successfully centered the background by calling it in the css body tag:...
1
by: Emil | last post by:
Hello, I'm using asp.net 2.0. I have a horizontal menu control. The children menu items are center aligned when shown. How can I change the alignment of the dynamic menu items to be left aligned?...
19
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.