clip span content

hey all,
is it possible to clip <span> content?

thanks,
rodchar
rodchar [ So, 13 April 2008 04:21 ] [ ID #1941471 ]

RE: clip span content

to be a litte more clearer:
you know like in a div you can say overflow:hidden

can you do something like this in a span? i tried surrounding the span with
a div but it didn't work.

"rodchar" wrote:

> hey all,
> is it possible to clip <span> content?
>
> thanks,
> rodchar
rodchar [ So, 13 April 2008 04:27 ] [ ID #1941472 ]

Re: clip span content

Hi Rodchar,

You can set overflow:hidden on a div, because you can also set a width
on it. However, widths do not apply to spans. They are always as wide
as their content. You were correct to surround the span with a div.
But did you also give the div a width? Otherwise it will just expand
to the width of the span.

Also, I would suggest that you ask such styling-specific questions in
a newsgroup that is concerned with CSS like
comp.infosystems.www.authoring.stylesheets.

============
Regards,
Steve
www.stkomp.com

On Apr 13, 4:27 am, rodchar <rodc... [at] discussions.microsoft.com> wrote:
> to be a litte more clearer:
> you know like in a div you can say overflow:hidden
>
> can you do something like this in a span? i tried surrounding the span with
> a div but it didn't work.
>
> "rodchar" wrote:
> > hey all,
> > is it possible to clip <span> content?
>
> > thanks,
> > rodchar
wisccal [ So, 13 April 2008 19:20 ] [ ID #1941496 ]

Re: clip span content

thank you for the help,
rod.

"wisccal [at] googlemail.com" wrote:

> Hi Rodchar,
>
> You can set overflow:hidden on a div, because you can also set a width
> on it. However, widths do not apply to spans. They are always as wide
> as their content. You were correct to surround the span with a div.
> But did you also give the div a width? Otherwise it will just expand
> to the width of the span.
>
> Also, I would suggest that you ask such styling-specific questions in
> a newsgroup that is concerned with CSS like
> comp.infosystems.www.authoring.stylesheets.
>
> ============
> Regards,
> Steve
> www.stkomp.com
>
> On Apr 13, 4:27 am, rodchar <rodc... [at] discussions.microsoft.com> wrote:
> > to be a litte more clearer:
> > you know like in a div you can say overflow:hidden
> >
> > can you do something like this in a span? i tried surrounding the span with
> > a div but it didn't work.
> >
> > "rodchar" wrote:
> > > hey all,
> > > is it possible to clip <span> content?
> >
> > > thanks,
> > > rodchar
>
>
rodchar [ Mo, 14 April 2008 04:35 ] [ ID #1941864 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » clip span content

Vorheriges Thema: cannot select two-way data binding property on a dropdown list con
Nächstes Thema: getElementsByTagName question