HighDots Forums  

Strange Text Align Right problem

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Strange Text Align Right problem in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Gus Richter
 
Posts: n/a

Default Re: Strange Text Align Right problem - 06-13-2009 , 11:49 PM






Gus Richter wrote:
Quote:
David Wier wrote:

OK then - how about:
http://augustwind.com/augustwind/test/csstest.htm



.ContainerBodyOnline td p{
padding: 0px;
margin:0px;
padding-left:5px;
padding-bottom:4px;
padding-top:4px;
/*text-align:left;*/}


In: Online.css Sorry.

--
Gus

Reply With Quote
  #12  
Old   
Ben C
 
Posts: n/a

Default Re: Strange Text Align Right problem - 06-14-2009 , 06:07 AM






On 2009-06-14, Gus Richter <gusrichter (AT) netscape (DOT) net> wrote:
Quote:
Gus Richter wrote:
David Wier wrote:

OK then - how about:
http://augustwind.com/augustwind/test/csstest.htm



.ContainerBodyOnline td p{
padding: 0px;
margin:0px;
padding-left:5px;
padding-bottom:4px;
padding-top:4px;
/*text-align:left;*/}



In: Online.css Sorry.
And we should point out the reason this one wins is because the selector
is more "specific" (see CSS 2.1 6.4.1) -- it's got two descendents and a
class in it. OP's other selector was just something like .TextAlignRight
{ text-align: right }.

Reply With Quote
  #13  
Old   
David Wier
 
Posts: n/a

Default Re: Strange Text Align Right problem - 06-14-2009 , 07:47 AM



That did it - - mucho thanks (I was going blind tracing it down)!

"Gus Richter" <gusrichter (AT) netscape (DOT) net> wrote

Quote:
Gus Richter wrote:
David Wier wrote:

OK then - how about:
http://augustwind.com/augustwind/test/csstest.htm



.ContainerBodyOnline td p{
padding: 0px;
margin:0px;
padding-left:5px;
padding-bottom:4px;
padding-top:4px;
/*text-align:left;*/}



In: Online.css Sorry.

--
Gus

Reply With Quote
  #14  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Strange Text Align Right problem - 06-15-2009 , 11:59 AM



On Sat, 13 Jun 2009, David Wier wrote:

Quote:
OK then - how about:
http://augustwind.com/augustwind/test/csstest.htm
Sorry - too complicated for me ;-)
I have a small demonstration page
http://www.user.uni-hannover.de/nhtcapri/cascading-order.html
that shows "cascading order".
There are no external style sheets - it's "all in one".

--
In memoriam Alan J. Flavell
http://www.alanflavell.org.uk/charset/

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.