body tag in mobile .net RRS feed

  • Question

  • User257733363 posted



    i have a aspx mobile page that works ok!

    i try to add a stylsheet css or to add to the body tag of the page "margin_top" atributte with no succes.

    when the page  renders whatever i write between the body or the head tag   is earsed.

    (the only thung thats work is when i write in the form tag title it write this between the head tag,but i want style there or in the body tag)


    thanks for the help 

    Tuesday, January 23, 2007 1:26 PM

All replies

  • User1307252949 posted

    Hi ofir23,

    Are you certain that the device you're using recognises CSS? If it doesn't recognise CSS then it won't matter what style tags you use, the browser will ignore them.

    A quick way of determining whether the device recognises CSS is to modify the body tag:

        <body style="color:red;">

    If all the text on the screen is displayed in red then CSS is being recognised. If the device doesn't have a colour screen then it's probably fair to assume that it won't recognise CSS.

    Wednesday, January 24, 2007 3:13 PM