473,396 Members | 1,838 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,396 software developers and data experts.

Avoiding new lines in tables and doublespacing every word ...

Hi,

for some reason Firefox is apparently inserting a new line somehow
after some IPA symbols which I have written in their hexadecimal
notation.

Also, I would like to have two spaces by default in textual fields
from tables.

What would be the style sheet statements to achieve this?

thanks
otf

Jan 24 '06 #1
7 1993
onetitfemme wrote:
for some reason Firefox is apparently inserting a new line somehow
after some IPA symbols which I have written in their hexadecimal
notation.
Do you mean it's displaying one character per line, or that it's just
splitting word part-way through?
Also, I would like to have two spaces by default in textual fields
from tables.
What would be the style sheet statements to achieve this?


TD, TH { word-spacing: 0.33em; }

(Note CSS word-spacing is applied *in addition* to the default spacing
between words.)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 24 '06 #2
onetitfemme wrote:
Hi,

for some reason Firefox is apparently inserting a new line somehow
after some IPA symbols which I have written in their hexadecimal
notation.
Validate your page ( http://validator.w3.org/ or
http://www.htmlhelp.com/tools/validator ), then tell us where it is (if
it's still broken).
IPA - I thought that was beer?
Also, I would like to have two spaces by default in textual fields
from tables.

What would be the style sheet statements to achieve this?


You could be talking about td { width: 1em; } or possibly min-width, or
margin or padding - all of which would be css.
If you're talking about    then that really has to go in the html.

Chris
Jan 24 '06 #3
onetitfemme wrote:
for some reason Firefox is apparently inserting a new line somehow
after some IPA symbols which I have written in their hexadecimal
notation.
You probably made an error.

Try posting the URL if you want more specific help.
Also, I would like to have two spaces by default in textual fields
from tables.
Here, too, a URL would help, but you would also need to express clearly
what you see as a problem and what you would like to achieve. Where
should two spaces appear and what are "textual fields from tables"?
(Normally _forms_ have fields.)
What would be the style sheet statements to achieve this?


Followups trimmed. Crossposting is mostly a bad idea. More hints on
Usenet conduct: http://www.cs.tut.fi/~jkorpela/usenet/dont.html
Jan 24 '06 #4
// __
Toby Inkster wrote
for some reason Firefox is apparently inserting a new line somehow
after some IPA symbols which I have written in their hexadecimal
notation.
Do you mean it's displaying one character per line, or that it's just splitting word part-way through? Also, I would like to have two spaces by default in textual fields from tables.
What would be the style sheet statements to achieve this?

.. TD, TH { word-spacing: 0.33em; } ..
otf: Thank you this change did it! And for those stumbling on the same
problem. If you can to reverse to regular spacing inside a particular
<td> use:
..
<span style="word-spacing: 0.0em">text segment with single spaces as
separator</span>
..
// __
Chris Sharman wrote Validate your page ( http://validator.w3.org/ or

http://www.htmlhelp.com/tools/validator ) ...
..
otf: Actually my, still under dev. with typos and errors, page:
..
http://www.geocities.com/tekmonk2005...ML_Strict.html
..
did validate as XHML version 1.0 Strict (of course without the
geocities junk)
..
I am not a designer myself (and I hope this is not illegal around here
;-)), so I usually have a hard time making things look acceptably. This
page looks good enough, to me ;-), so I will keep working on its
content for now. I would however welcome all tips and opinions.
..
I have two questions though (which you can see in the TODO section of
the html doc):
..
._ how do you list indentation in a way that it should cascade so that
if an encompassing item is V. the next sub-item should be. say, V.i.
and so forth?
..
._ how do you rid the "Document encoding" table of the outer border?
..
._ I haven't found a way to make tidy freaking keep the hexadecimal
encodings of especial characters. I am running it like:

sh-3.00# tidy -file errs.txt -clean -asxml -access 3 -latin1 -indent
-wrap 120 -output output.html <page2b_tidied>.html

it just substitutes them for numeric ones, which does not work well
for me.

Thanks
otf

Jan 24 '06 #5
By the way, what I wanted to do with this "self-nesting of ordered
list" you do with "counters", which are very poorly supported. More on
it from:

http://www.davidflanagan.com/blog/2005_08.html#000075

http://archivist.incutio.com/viewlist/css-discuss/57887

Here are examples that do not work on:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050911
Firefox/1.0.6 (Debian package 1.0.6-5)

// - - - - - - - - - - - - - - -
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
dir="ltr">

<head>
<title>list test</title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">

body { counter-reset: par-num; }
p { counter-increment: par-num; }
p:before { content: " Paragragh: " counter(par-num, upper-roman) ". ";
}

ol { counter-reset: item; }
li { display: block; }
li:before { content: counter(item) ". "; counter-increment: item; }
</style>
</head>

<body>
<h1>list test</h1>

<p>First paragragh.</p>

<p>Second paragragh.</p>

<ol>
<li>item_00_level_00</li>
<ol>
<li>item_00_level_02_00</li>
<li>item_02_level_02_00</li>
</ol>
<li>item_00_level_02</li>
<li>item_00_level_04</li>
<ol>
<li>item_00_level_02_04</li>
<li>item_02_level_02_04</li>
</ol>
</ol>

</body>
</html>
// - - - - - - - - - - - - - - -
otf

Jan 25 '06 #6
OK, the self-nesting of ordered lists works -relatively- OK on Firefox
version 1.5.

I tried this css based page:

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
dir="ltr">

<head>
<title>list test</title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">

body { counter-reset: par-num; }
p { counter-increment: par-num; }
p:before { content: " Before Paragragh: " counter(par-num, upper-roman)
". "; }
p:after { content: " After Paragragh: " counter(par-num, upper-roman) "
<a href=\22mailto:te****@testmail.com?Subject=test emai\22>test
email</a>"; }

ol { counter-reset: item; list-style: none; }
ol li { counter-increment: item; }
ol li:before { content: counter(item, upper-roman) ". ";}

ol ol { counter-reset: item2; list-style: none; }
ol ol li { counter-increment: item2; }
ol ol li:before { content: counter(item, upper-roman) "."
counter(item2, lower-roman) "._ "; }

ol ol ol { counter-reset: item3; list-style: none; }
ol ol ol li { counter-increment: item3; }
ol ol ol li:before { content: counter(item, upper-roman) "."
counter(item2, lower-roman) "." counter(item3, decimal) "._ " ; }

</style>
</head>

<body>
<h1>list test</h1>

<p>First paragragh.</p>

<p>Second paragragh.</p>

<ol>
<li>level_00_item_00
<ol>
<li>level_02_item_00_prev_item_00_00</li>
<li>level_02_item_02_prev_item_00_00</li>
</ol>
</li>

<li>level_00_item_02
<ol>
<li>level_02_item_00_prev_item_00_02
<ol>
<li>level_04_item_00_prev_item_02_00</li>
<li>level_04_item_02_prev_item_02_00</li>
<li>level_04_item_04_prev_item_02_00</li>
</ol>
</li>
</ol>
</li>

<ul> Unordered list in ol (ol ul):
<li>ul_level_02_item_00_prev_item_00_02</li>
<li>ul_level_02_item_02_prev_item_00_02</li>
</ul>

<li>level_00_item_04
<ul> Unordered list in ol (ol ul il):
<li>ul_level_02_item_00_prev_item_00_02</li>
<li>ul_level_02_item_02_prev_item_00_02</li>
</ul>
</li>

<li>level_00_item_06
<ol>
<li>level_02_item_00_prev_item_00_04</li>
<li>level_02_item_02_prev_item_00_04</li>
<li>level_02_item_04_prev_item_00_04</li>
<li>level_02_item_06_prev_item_00_04</li>
</ol>
</li>
</ol>

<ul> Unordered list outside of ol:
<li>ul_level_00_item_00</li>
<li>ul_level_00_item_02</li>
</ul>

</body>
</html>
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

which did work but partially:

1._ It did not handle unordered lists (inside of ordered ones)
properly

2._ It did not insert the email as an actual "mailto" URL in the page
after each paragraph, but it did print smartly the "before" part.

there is an example:
http://www.student.oulu.fi/~laurirai...alifornia.html

previously posted on the net that only shows nesting ordered lists.

Apparently if you nest an unordered list then it doesn't work right

Here is an image of what I am getting:

http://www.geocities.com/tekmonk2005...ist_test00.png

otf

Jan 26 '06 #7
onetitfemme wrote:
ol li { counter-increment: item; }
ol li:before { content: counter(item, upper-roman) ". ";}


This CSS rule will of course match:

<OL>
<LI>
<UL>
<LI>this list item here!
</UL>
</OL>

You could try using:

OL > LI { counter-increment: item; }
OL > LI:before { content: counter(item, upper-roman) ". ";}

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 27 '06 #8

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

Similar topics

14
by: Eloff | last post by:
This is not really Python specific, but I know Python programmers are among the best in the world. I have a fair understanding of the concepts involved, enough to realize that I would benefit from...
3
by: Jim Geissman | last post by:
The C++ application calls the database to look up property data. One troublesome query is a function that returns a table, finding data which is assembled from four or five tables through a view...
2
by: Jon | last post by:
Hi all, I am trying to create a page that contains a number of div elements, with links on the left side of the page allowing the user to select which div to display. Some of the pages contain...
3
by: Dave | last post by:
Hello all, Please consider this code: #ifndef FOO_INCLUDED #define FOO_INCLUDED // File: foo.h class foo {
3
by: Phil Rutter | last post by:
Hello All, I have about 700 word documents that have 2 tables one is static 4 colums x 5 rows the other is 5 colums x rows ranging from 2 to 100 what i wolud like to do is open the word doc....
1
by: j | last post by:
Hi, I've been trying to do line/character counts on documents that are being uploaded. As well as the "counting" I also have to remove certain sections from the file. So, firstly I was working...
3
by: KRoy | last post by:
How can I seach all of the fields of every table in a databae for a particular value. When it is found, I want to be able to display the table name and the field name, then continue to search.
11
by: google_groups3 | last post by:
Hi all. I currently have 2 text files which contain lists of file names. These text files are updated by my code. What I want to do is be able to merge these text files discarding the...
7
by: onetitfemme | last post by:
Hi, for some reason Firefox is apparently inserting a new line somehow after some IPA symbols which I have written in their hexadecimal notation. Also, I would like to have two spaces by...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...
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
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...

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.