text align does not work

text align does not work

am 08.04.2008 02:45:12 von showandbeshown

Hi,

I have an html-strict-valid document. In css I declare a specific text-
align for class ".instructions" (the text alignment is "justify").
However, the text put into

...
is
not aligned in the desired way. On my Mozilla browser it is aligned to
the "right", on my Explorer browser it is aligned to "center".

Why it happens and how this problem can be solved?

Thank You!

The page is here:
http://www.showandbeshown.com

Re: text align does not work

am 08.04.2008 02:51:12 von Neredbojias

On 07 Apr 2008, Fro wrote:

> I have an html-strict-valid document. In css I declare a specific text-
> align for class ".instructions" (the text alignment is "justify").
> However, the text put into

...
is
> not aligned in the desired way. On my Mozilla browser it is aligned to
> the "right", on my Explorer browser it is aligned to "center".
>
> Why it happens and how this problem can be solved?
>
> Thank You!
>
> The page is here:
> http://www.showandbeshown.com

Remove the dot from


--
Neredbojias
http://www.neredbojias.com/
Great sights and sounds

Re: text align does not work

am 08.04.2008 02:57:54 von showandbeshown

On Apr 7, 8:51 pm, Neredbojias fliam.php> wrote:
> On 07 Apr 2008, Fro wrote:
>
> > I have an html-strict-valid document. In css I declare a specific text-
> > align for class ".instructions" (the text alignment is "justify").
> > However, the text put into

...
is
> > not aligned in the desired way. On my Mozilla browser it is aligned to
> > the "right", on my Explorer browser it is aligned to "center".
>
> > Why it happens and how this problem can be solved?
>
> > Thank You!
>
> > The page is here:
> >http://www.showandbeshown.com
>
> Remove the dot from

>
Sorry, I put this dot only in the newsgroup message (by mistake). On
the real page I do not have dots (and it still does not work).

Re: text align does not work

am 08.04.2008 03:18:46 von dorayme

In article
<625cacea-02ce-44b2-8283-2a7ea0496b2d@k37g2000hsf.googlegroups.com>,
Fro wrote:

> On Apr 7, 8:51 pm, Neredbojias > fliam.php> wrote:
> > On 07 Apr 2008, Fro wrote:
> >
> > > I have an html-strict-valid document. In css I declare a specific text-
> > > align for class ".instructions" (the text alignment is "justify").
> > > However, the text put into

...
is
> > > not aligned in the desired way. On my Mozilla browser it is aligned to
> > > the "right", on my Explorer browser it is aligned to "center".
> >
> > > Why it happens and how this problem can be solved?
> >
> > > Thank You!
> >
> > > The page is here:
> > >http://www.showandbeshown.com
> >
> > Remove the dot from

> >
> Sorry, I put this dot only in the newsgroup message (by mistake). On
> the real page I do not have dots (and it still does not work).


You do not exactly have any
with or without
dots. You have a lot of spans...

What exactly are you not liking the look of?

--
dorayme

Re: text align does not work

am 08.04.2008 03:26:21 von showandbeshown

On Apr 7, 9:18 pm, dorayme wrote:
> In article
> <625cacea-02ce-44b2-8283-2a7ea0496...@k37g2000hsf.googlegroups.com>,
>
>
>
> Fro wrote:
> > On Apr 7, 8:51 pm, Neredbojias > > fliam.php> wrote:
> > > On 07 Apr 2008, Fro wrote:
>
> > > > I have an html-strict-valid document. In css I declare a specific text-
> > > > align for class ".instructions" (the text alignment is "justify").
> > > > However, the text put into

...
is
> > > > not aligned in the desired way. On my Mozilla browser it is aligned to
> > > > the "right", on my Explorer browser it is aligned to "center".
>
> > > > Why it happens and how this problem can be solved?
>
> > > > Thank You!
>
> > > > The page is here:
> > > >http://www.showandbeshown.com
>
> > > Remove the dot from

>
> > Sorry, I put this dot only in the newsgroup message (by mistake). On
> > the real page I do not have dots (and it still does not work).
>
> You do not exactly have any
with or without
> dots. You have a lot of spans...
Yes. Sorry.

>
> What exactly are you not liking the look of?
>
In one of my browser I see text which is aligned to the right. In
another one text is centered. But I want to have the "justified" text
(i.e. text which is aligned to the right and left simultaneously).
Actually, in my css part I force this type of alignment, but it does
not work. And I do not like that.

Re: text align does not work

am 08.04.2008 03:59:00 von dorayme

In article
<1e81cdfc-cbb6-4696-af9e-e6df096e6b2b@m73g2000hsh.googlegroups.com>,
Fro wrote:

> On Apr 7, 9:18 pm, dorayme wrote:
> > In article
> > <625cacea-02ce-44b2-8283-2a7ea0496...@k37g2000hsf.googlegroups.com>,
> >
> >
> >
> > Fro wrote:
> > > On Apr 7, 8:51 pm, Neredbojias > > > fliam.php> wrote:
> > > > On 07 Apr 2008, Fro wrote:
> >
> > > > > I have an html-strict-valid document. In css I declare a specific
> > > > > text-
> > > > > align for class ".instructions" (the text alignment is "justify").
> > > > > However, the text put into

...
is
> > > > > not aligned in the desired way. On my Mozilla browser it is aligned
> > > > > to
> > > > > the "right", on my Explorer browser it is aligned to "center".
> >
> > > > > Why it happens and how this problem can be solved?
> >
> > > > > Thank You!
> >
> > > > > The page is here:
> > > > >http://www.showandbeshown.com
> >
> > > > Remove the dot from

> >
> > > Sorry, I put this dot only in the newsgroup message (by mistake). On
> > > the real page I do not have dots (and it still does not work).
> >
> > You do not exactly have any
with or without
> > dots. You have a lot of spans...
> Yes. Sorry.
>
> >
> > What exactly are you not liking the look of?
> >
> In one of my browser I see text which is aligned to the right. In
> another one text is centered. But I want to have the "justified" text
> (i.e. text which is aligned to the right and left simultaneously).
> Actually, in my css part I force this type of alignment, but it does
> not work. And I do not like that.

Your mark up is truly bad. If you are going to use tables, be simpler.
At least study this:

"http://www.w3.org/TR/html4/strict.dtd">


Padding



Here is text justified. Here is text
justified. Here is text justified. Here is text justified. Here is text
justified. Here is text justified. Here is text justified. Here is text
justified. Here is text justified. Here is text justified. Here is text
justified. Here is text justified. Here is text justified.
class="links">Here is text aligned to the right




--
dorayme

Re: text align does not work

am 08.04.2008 04:05:15 von freemont

On Tue, 08 Apr 2008 00:51:12 +0000, Neredbojias writ:

> On 07 Apr 2008, Fro wrote:
>
>> I have an html-strict-valid document. In css I declare a specific text-
>> align for class ".instructions" (the text alignment is "justify").
>> However, the text put into

...
is
>> not aligned in the desired way. On my Mozilla browser it is aligned to
>> the "right", on my Explorer browser it is aligned to "center".
>>
>> Why it happens and how this problem can be solved?
>>
>> Thank You!
>>
>> The page is here:
>> http://www.showandbeshown.com
>
> Remove the dot from

>
>
I don't see the OP, must be a Googler.

Just put that content into

s where it belongs anyway, and assign the
class to the

.

--
"Because all you of Earth are idiots!"
¯`·.¸¸.·´¯`·-> freemont© <-·´¯`·.¸¸.·´¯

Re: text align does not work

am 08.04.2008 04:06:27 von royarneskar

On 8 Apr, 03:26, Fro wrote:
> On Apr 7, 9:18 pm, dorayme wrote:
>
> > In article
> > <625cacea-02ce-44b2-8283-2a7ea0496...@k37g2000hsf.googlegroups.com>,
>
> > =A0Fro wrote:
> > > On Apr 7, 8:51 pm, Neredbojias > > > fliam.php> wrote:
> > > > On 07 Apr 2008, Fro wrote:
>
> > > > > I have an html-strict-valid document. In css I declare a specific =
text-
> > > > > align for class ".instructions" (the text alignment is "justify").=

> > > > > However, the text put into

... > is
> > > > > not aligned in the desired way. On my Mozilla browser it is aligne=
d to
> > > > > the "right", on my Explorer browser it is aligned to "center".
>
> > > > > Why it happens and how this problem can be solved?
>
> > > > > Thank You!
>
> > > > > The page is here:
> > > > >http://www.showandbeshown.com
>
> > > > Remove the dot from

>
> > > Sorry, I put this dot only in the newsgroup message (by mistake). On
> > > the real page I do not have dots (and it still does not work).
>
> > You do not exactly have any
with or without=

> > dots. You have a lot of spans...
>
> Yes. Sorry.
>
>
>
> > What exactly are you not liking the look of?
>
> In one of my browser I see text which is aligned to the right. In
> another one text is centered. But I want to have the "justified" text
> (i.e. text which is aligned to the right and left simultaneously).
> Actually, in my css part I force this type of alignment, but it does
> not work. And I do not like that.

The text-align property applies to block-level elements.

http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-align

Re: text align does not work

am 08.04.2008 06:35:27 von Neredbojias

On 07 Apr 2008, Fro wrote:

>> > I have an html-strict-valid document. In css I declare a specific
>> > text- align for class ".instructions" (the text alignment is
>> > "justify"). However, the text put into


>> > ...
is not aligned in the desired way. On my Mozilla browser
>> > it is aligned to the "right", on my Explorer browser it is aligned
>> > to "center".
>>
>> > Why it happens and how this problem can be solved?
>>
>> > Thank You!
>>
>> > The page is here:
>> >http://www.showandbeshown.com
>>
>> Remove the dot from

>>
> Sorry, I put this dot only in the newsgroup message (by mistake). On
> the real page I do not have dots (and it still does not work).

Oh. Well try adding a dot.

()

--
Neredbojias
http://www.neredbojias.com/
Great sights and sounds

Re: text align does not work

am 08.04.2008 17:52:47 von royarneskar

On 8 Apr, 06:35, Neredbojias fliam.php> wrote:
> On 07 Apr 2008, Fro wrote:
>
>
>
> >> > I have an html-strict-valid document. In css I declare a specific
> >> > text- align for class ".instructions" (the text alignment is
> >> > "justify"). However, the text put into


> >> > ...
is not aligned in the desired way. On my Mozilla browser
> >> > it is aligned to the "right", on my Explorer browser it is aligned
> >> > to "center".
>
> >> > Why it happens and how this problem can be solved?
>
> >> > Thank You!
>
> >> > The page is here:
> >> >http://www.showandbeshown.com
>
> >> Remove the dot from

>
> > Sorry, I put this dot only in the newsgroup message (by mistake). On
> > the real page I do not have dots (and it still does not work).
>
> Oh. =A0Well try adding a dot.

Are you tired today? It seems to me that the original poster (OP)
don't know the difference between inline-level elements
and block-level elements (div is a block-level element, span is an
inline-level element ). And I can't blame it.

CSS:

"Block-level elements are those elements of the source document that
are formatted visually as blocks (e.g., paragraphs). Several values of
the 'display' property make an element block-level: 'block', 'list-
item', and 'run-in' (part of the time; see run-in boxes), and
'table'."

"Inline-level elements are those elements of the source document that
do not form new blocks of content; the content is distributed in lines
(e.g., emphasized pieces of text within a paragraph, inline images,
etc.). Several values of the 'display' property make an element
inline: 'inline', 'inline-table', 'compact' and 'run-in' (part of the
time; see compact and run-in boxes). Inline-level elements generate
inline boxes."

HTML Block-level and Inline-level:

"Certain HTML elements that may appear in BODY are said to be "block-
level" while others are "inline" (also known as "text level"). The
distinction is founded on several notions:"

HTML notions on Block-level and Inline-level:

"Content model
Generally, block-level elements may contain inline elements and other
block-level elements. Generally, inline elements may contain only
data and other inline elements. Inherent in this structural
distinction is the idea that block elements create "larger" structures
than inline elements.

Formatting
By default, block-level elements are formatted differently than
inline elements. Generally, block-level elements begin on new lines,
inline elements do not. For information about white space, line
breaks, and block formatting, please consult the section on text.

Directionality
For technical reasons involving the [UNICODE] bidirectional text
algorithm, block-level and inline elements differ in how they inherit
directionality information. For details, see the section on
inheritance of text direction."

It's okay, but where is it defined?

Block-level elements:
strict.dtd_Block>

Inline-level elements:
strict.dtd_Inline>

For similar definitions not designed to work in conjunction with XML-
based user agents:

Re: text align does not work

am 08.04.2008 18:39:04 von jmm-list-gn

On 04/07/08 05:45 pm, Fro wrote:
>
> I have an html-strict-valid document. In css I declare a specific text-
> align for class ".instructions" (the text alignment is "justify").
> However, the text put into

...
is
> not aligned in the desired way. On my Mozilla browser it is aligned to
> the "right", on my Explorer browser it is aligned to "center".
>
> Why it happens and how this problem can be solved?
>
is an inline element, not a block element, so text alignment is
meaningless there. Use

s, not s.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Re: text align does not work

am 09.04.2008 01:30:10 von Neredbojias

On 08 Apr 2008, "Roy A." wrote:

>> >> Remove the dot from


>>
>> > Sorry, I put this dot only in the newsgroup message (by mistake). On
>> > the real page I do not have dots (and it still does not work).
>>
>> Oh.  Well try adding a dot.
>
> Are you tired today? It seems to me that the original poster (OP)
> don't know the difference between inline-level elements
> and block-level elements (div is a block-level element, span is an
> inline-level element ). And I can't blame it.

Hehe, yeah, I was being a little flippant. Fatigue had set in and I just
didn't feel like dealing with it. Furthermore, I had to take a dump.

Good reply (yours), though. If enough people give the right answers, can I
not remain true to my basic nature as a smartass?

--
Neredbojias
http://www.neredbojias.com/
Great sights and sounds