473,769 Members | 6,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2019
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_lev el_00</li>
<ol>
<li>item_00_lev el_02_00</li>
<li>item_02_lev el_02_00</li>
</ol>
<li>item_00_lev el_02</li>
<li>item_00_lev el_04</li>
<ol>
<li>item_00_lev el_02_04</li>
<li>item_02_lev el_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=te st 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_it em_00
<ol>
<li>level_02_it em_00_prev_item _00_00</li>
<li>level_02_it em_02_prev_item _00_00</li>
</ol>
</li>

<li>level_00_it em_02
<ol>
<li>level_02_it em_00_prev_item _00_02
<ol>
<li>level_04_it em_00_prev_item _02_00</li>
<li>level_04_it em_02_prev_item _02_00</li>
<li>level_04_it em_04_prev_item _02_00</li>
</ol>
</li>
</ol>
</li>

<ul> Unordered list in ol (ol ul):
<li>ul_level_02 _item_00_prev_i tem_00_02</li>
<li>ul_level_02 _item_02_prev_i tem_00_02</li>
</ul>

<li>level_00_it em_04
<ul> Unordered list in ol (ol ul il):
<li>ul_level_02 _item_00_prev_i tem_00_02</li>
<li>ul_level_02 _item_02_prev_i tem_00_02</li>
</ul>
</li>

<li>level_00_it em_06
<ol>
<li>level_02_it em_00_prev_item _00_04</li>
<li>level_02_it em_02_prev_item _00_04</li>
<li>level_02_it em_04_prev_item _00_04</li>
<li>level_02_it em_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
3041
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 the experience of others :) I have a shared series of objects in memory that may be > 100MB. Often to perform a task for a client several of these objects must be used. Since many clients can be making requests at once (>100 per second during...
3
1538
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 that has a join, and then updating the resulting @table from some other tables. There are several queries inside the function, which are selected according to which parameters are supplied (house #, street, zip, or perhaps parcel number, or house...
2
5292
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 tables with border styles used to block off the columns and the headers, but not the individual rows. The pages will be displayed using IE 5.5 and later in the finished app. Now to the problem, which is a little awkward to describe:
3
4646
by: Dave | last post by:
Hello all, Please consider this code: #ifndef FOO_INCLUDED #define FOO_INCLUDED // File: foo.h class foo {
3
4314
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. import the first word table then import the second word table close word doc open next word doc and repeat process. i am able to import one set of data currently into an excel spread sheet but how can i loop through all the documents and import them...
1
6929
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 with uploaded MS WORD .doc files. Using code like that below: strLine = sr.ReadLine While Not IsNothing(strLine) 'Not eof If Trim(strLine) <> "" Then 'Not blank
3
4139
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
1394
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 duplicates. And to make it harder (or not???!!) my criteria for defining the duplicate is the left 15 (or so) characters of the file path.
7
463
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 default in textual fields from tables. What would be the style sheet statements to achieve this?
0
9589
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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
10216
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
10049
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...
1
7413
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
6675
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
5309
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...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3565
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.