I meant FEATURE Detection. Sorry.

Hm.

On Mon, Sep 27, 2010 at 11:34 AM, Hugo Mendes <hugo.men...@gmail.com> wrote:
> A best practice: Do browser detection instead.
>
> <script type="text/javascript">
> function html5elm(elm) {
>        return !!document.createElement(elm);
> }
>
> var myArray = ['header','nav','section','aside','article','footer','hgroup'];
>
> for (var i = 0; i < myArray.length; i++){
>        html5elm(myArray[i]);
> }
> </script>
>
>
> It will create those elements for IE6-8 (and older browsers with lack
> of HTML5 support) in DOM. IE9 support them natively.
>
>
>
> HM.
>
>
> On Mon, Sep 27, 2010 at 11:25 AM, Chris Knowles <w...@ckweb.com.au> wrote:
>> try adding display: block - by default they are usually displayed as inline
>>
>> in ie you need to add them via javascript before it will recognise them:
>>
>> document.createElement("header");
>>
>>
>> --
>> Chris Knowles
>>
>>
>> On 27/09/10 8:13 PM, tee wrote:
>>>
>>> Only the two Webkit browsers are able to render the "header" and "footer"
>>> correctly.
>>>
>>> http://lotusseedsdesign.com/css-test/templegate.html
>>>
>>> header {
>>> height : 300px;
>>> width : 980px;
>>> text-align : center;
>>> position : relative;
>>> clear : both;
>>> overflow : hidden;
>>> margin : 0 auto;
>>> border : 1px solid #369;
>>> background : #ddd;
>>> }
>>>
>>> I can't find anything wrong with my style sheet and the html code.
>>>
>>> tee
>>>
>>>
>>>
>>>
>>> *******************************************************************
>>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
>>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
>>> Help: memberh...@webstandardsgroup.org
>>> *******************************************************************
>>>
>>>
>>
>>
>>
>>
>>
>> *******************************************************************
>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
>> Help: memberh...@webstandardsgroup.org
>> *******************************************************************
>>
>>
>


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to