Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 24th, 2006, 02:55 AM
onetitfemme
Guest
 
Posts: n/a
Default 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

  #2  
Old January 24th, 2006, 09:15 AM
Toby Inkster
Guest
 
Posts: n/a
Default Re: Avoiding new lines in tables and doublespacing every word ...

onetitfemme wrote:
[color=blue]
> for some reason Firefox is apparently inserting a new line somehow
> after some IPA symbols which I have written in their hexadecimal
> notation.[/color]

Do you mean it's displaying one character per line, or that it's just
splitting word part-way through?
[color=blue]
> 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?[/color]

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

  #3  
Old January 24th, 2006, 09:25 AM
Chris Sharman
Guest
 
Posts: n/a
Default Re: Avoiding new lines in tables and doublespacing every word ...

onetitfemme wrote:[color=blue]
> Hi,
>
> for some reason Firefox is apparently inserting a new line somehow
> after some IPA symbols which I have written in their hexadecimal
> notation.[/color]

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?
[color=blue]
> 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?[/color]

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
  #4  
Old January 24th, 2006, 03:35 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: Avoiding new lines in tables and doublespacing every word ...

onetitfemme wrote:
[color=blue]
> for some reason Firefox is apparently inserting a new line somehow
> after some IPA symbols which I have written in their hexadecimal
> notation.[/color]

You probably made an error.

Try posting the URL if you want more specific help.
[color=blue]
> Also, I would like to have two spaces by default in textual fields
> from tables.[/color]

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.)
[color=blue]
> What would be the style sheet statements to achieve this?[/color]

Followups trimmed. Crossposting is mostly a bad idea. More hints on
Usenet conduct: http://www.cs.tut.fi/~jkorpela/usenet/dont.html
  #5  
Old January 24th, 2006, 03:45 PM
onetitfemme
Guest
 
Posts: n/a
Default Re: Avoiding new lines in tables and doublespacing every word ...

// __
Toby Inkster wrote[color=blue][color=green]
> > for some reason Firefox is apparently inserting a new line somehow
> > after some IPA symbols which I have written in their hexadecimal
> > notation.[/color][/color]
[color=blue]
> Do you mean it's displaying one character per line, or that it's[/color]
just[color=blue]
> splitting word part-way through?[/color]
[color=blue][color=green]
> > Also, I would like to have two spaces by default in textual[/color][/color]
fields[color=blue][color=green]
> > from tables.
> > What would be the style sheet statements to achieve this?[/color][/color]
..[color=blue]
> TD, TH { word-spacing: 0.33em; }[/color]
..
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[color=blue]
> Validate your page ( http://validator.w3.org/ or[/color]
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

  #6  
Old January 25th, 2006, 09:45 PM
onetitfemme
Guest
 
Posts: n/a
Default Re: Avoiding new lines in tables and doublespacing every word ...

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

  #7  
Old January 26th, 2006, 08:39 PM
onetitfemme
Guest
 
Posts: n/a
Default Re: Avoiding new lines in tables and doublespacing every word ...

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:tester@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

  #8  
Old January 27th, 2006, 08:45 AM
Toby Inkster
Guest
 
Posts: n/a
Default Re: Avoiding new lines in tables and doublespacing every word ...

onetitfemme wrote:
[color=blue]
> ol li { counter-increment: item; }
> ol li:before { content: counter(item, upper-roman) ". ";}[/color]

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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles