[thelist] CSS Question

Mark Cheng mark.cheng at ranger.com.au
Thu Dec 13 18:43:40 CST 2001


Burhan,

My guess is that some browsers are messing up the css
selectors.  I'd guess that the browser is not applying the
span.right class in div.row because it does not come
immediately after the div declaration.

so, <div class="row"><span class="right"> would be ok but
<div class="row"><span class="left></ span><span
class="right"> is not ok, because the span.right does not
follow a div.

Instead of div.row span.right {} try span.left span.right {}

Wild guess based upon my (probably flawed) understanding of
CSS selectors.  Maybe someone more familiar than me with CSS
might shed some further light?

hth

Mark

> div.row span.left {
>   float: left;
>   text-align: left;
>   color: #000;
>
>   }
>
> div.row span.right {
>   float: right;
>   text-align: right;
>   font-weight: bold;
>   color: #000;
> }
> [snip]
>
> Why does this not produce the desired result?
>
> <div class="content">
> <div class="row"><span class="left">Left Align</span>
> <span class="right">Right Align</span>
> [ ... ]
> </div>
>


This email may be confidential and contain commercially sensitive information.  Only the intended recipient may access or use it.  If you are not the intended recipient please delete this email and notify us promptly. 
We use virus scanning software but exclude all liability for viruses or similar in this email or any attachment.






More information about the thelist mailing list