[thelist] Re: CSS Positioning Question

Leslie Zhou lesliezhou at netscape.net
Mon Sep 2 20:35:01 CDT 2002


--
[ Picked text/plain from multipart/alternative ]
Hi,
Embedding <span> within <h1> won't work well to meet your need. Try the
following:
...
<style type="text/css">
.toRight{
text-align:right;
}
</style>
...

...
<h1 class="toRight">Align to the right</h1>

...

Thanks,
Leslie


>Hello List,
>
>I've got a CSS position question. I've got an <h1> tag, and in that
>tag, I want to align some text to the right. I first thought a span
>would to the trick :
>
>.rightalign { float:right; text-align:right; }
>
>It aligns it to the right, but it bumps the text down (have a look at
>my website for what I mean). The [ + ] | [ - ] text is in the <span>
>tag.
>
>I am trying to get it to align with the <h1> text.
>
>Any ideas?
>
>
>
>--
>
>

Set its display style to none in a class for it:

.myTextArea
{
  display: none;
}

HTH
Tom




More information about the thelist mailing list