Re: CSS 'width' Question

Thanks, Al.

To be honest, I flipped a coin when deciding which W3 group to post to. 
Perhaps reading documentation might be a better avenue next time.

Aaron

At 10:12 AM 10/7/2004, Al Gilman wrote:
>At 10:03 AM -0500 10/7/04, Aaron Smith wrote:
>>Actually, my concern was that the validator did not complain about 
>>applying a style meant for a block element to a non-block element.
>
>To get an answer to that question, one has to follow the instructions on
>
>http://jigsaw.w3.org/css-validator/Email
>
>which is a bit tedious, perhaps, but we don't have that level of insight 
>into the tool itself here in this group.
>
>Al
>
>
>>Jon,
>>
>>Thanks for the response. My solution is to just use a DIV (fewer 
>>keystrokes than applying a block style to a SPAN <grin>).
>>
>>Actually, my concern was that the validator did not complain about 
>>applying a style meant for a block element to a non-block element.
>>
>>Thanks,
>>
>>Aaron
>>
>>At 09:49 AM 10/7/2004, Jon Gunderson wrote:
>>
>>>Aaron,
>>>You may need to change the default rendering of SPAN to
>>>"display: block", since the deafult for SPAN is "display:
>>>inline".  If you really want the width to be "100%" I would
>>>suggest using the DIV element instead of the SPAN element.  By
>>>default DIV is "block level" and SPAN in "inline".
>>>
>>>Jon
>>>
>>>
>>>---- Original message ----
>>>>Date: Wed, 06 Oct 2004 17:06:26 -0500
>>>>From: Aaron Smith <aaron@gwmicro.com> Subject: CSS 'width' Question To: 
>>>>w3c-wai-ua@w3.org
>>>>
>>>>    According to CSS1 spec 5.5.23, the width style
>>>>    "Applies to: block-level and replaced elements."
>>>>
>>>>    Why, then, does the CSS Validator
>>>>    (http://jigsaw.w3.org/css-validator/) not complain
>>>>    about <SPAN CLASS="wide">Blah</SPAN>, where class
>>>>    wide contains width: 100%?
>>>>
>>>>    Thanks,
>>>>
>>>>    Aaron
>>>>
>>>>    --
>>>>    Aaron Smith
>>>>    GW Micro, Inc.
>>>>    Technical Support & Web Development
>>>>    Phone: 260/489-3671 | Fax: 260/489-2608
>>>>    WWW: http://www.gwmicro.com | FTP:
>>>>    ftp://ftp.gwmicro.com
>>>
>>>
>>>Jon Gunderson, Ph.D., ATP
>>>Coordinator of Assistive Communication and Information Technology
>>>Division of Rehabilitation - Education Services
>>>MC-574
>>>College of Applied Life Studies
>>>University of Illinois at Urbana/Champaign
>>>1207 S. Oak Street, Champaign, IL  61820
>>>
>>>Voice: (217) 244-5870
>>>Fax: (217) 333-0248
>>>
>>>E-mail: jongund@uiuc.edu
>>>
>>>WWW: http://cita.rehab.uiuc.edu/
>>>WWW: http://www.staff.uiuc.edu/~jongund
>>--
>>Aaron Smith
>>GW Micro, Inc.
>>Technical Support & Web Development
>>Phone: 260/489-3671 | Fax: 260/489-2608
>>WWW: http://www.gwmicro.com | FTP: ftp://ftp.gwmicro.com
>
>--
>Aaron Smith
>GW Micro, Inc.
>Technical Support & Web Development
>Phone: 260/489-3671 | Fax: 260/489-2608
>WWW: http://www.gwmicro.com | FTP: ftp://ftp.gwmicro.com

Received on Thursday, 7 October 2004 15:31:18 UTC