Previous Message
Next Message

column help...

Sent by Alan Gresley on 29 April 2011 15:03


On 29/04/2011 11:55 PM, Jukka K. Korpela wrote:
> Michael Beaudoin wrote:
>
>> Ok. I have a layout I'm working on and I can't get the middle 4
>> columns to line up side-to-side. I've floated them left but they don't
>> seem to take on the layout I want. Do I need to put them in a div?
>>
>> Check it here.
>>
>> http://ba-doyn.com/sda/davinci_test/
>
> The relevant id="..." attribute values begin with a digit (4), which is
> prohibited in XHTML and, more importantly, in CSS, so browsers ignore an
> essential part of the stylesheet.


This is not completely true. Firstly the XHTML is traditional so it's 
not true XHTML and secondly, IDs or classes beginning with a digit that 
is in an escape sequence (flowed by one space of whitespace) is valid 
CSS. As mentioned last month by Philippe, HTML5 allows digits in ID or 
class attributes.

These are valid CSS selectors.


   #\34 col1
   #\34 col1 p
   #\34 col2
   #\34 col2 p
   #\34 col3
   #\34 col3 p
   #\34 col4
   #\34 col4 p


-- 
Alan Gresley
http://css-3d.org/
http://css-class.com/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: