×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Hamburg, Germany
    Posts
    285

    Trap: semantic tags get their own styles

    Hello developers,

    just wanted to share a trap. I used semantic tags, like good web developers are doing.
    I have used "h3" tag in my webapp, and gave them my own style in css.
    It looked good in local preview, but spaces between things were totally different with the cloud preview (on probably also on the device)

    After some time debugging this, I found what what is going on:

    For semantic tags like h3, (probably others also), the cloud server invents its own styles, at least for margin-bottom and margin-top,
    and ignores or overwrites the values I defined in my css file.
    And it does not return the original tag, so debugging things like this is not so easy.
    Probably this is a feature to give better results when displaying "normal" web pages. But for web app developers this a trap.

    Resolution for me:
    I added an extra class for h3, and styled this in the css.

    Regards

    Karsten Meier

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: Trap: semantic tags get their own styles

    Thanks for sharing Karsten.

    We've a FAQ for S40 Webapp on the wiki, you can always add such common workarounds there.
    IMO, the FAQ would be the place other developers would first look for such general isssues.

    Here's a link to the FAQ:
    http://www.developer.nokia.com/Commu...web_apps_-_FAQ
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Trap harness .TRAP and TRAPD
    By amitaggarwal in forum Symbian
    Replies: 4
    Last Post: 2004-09-25, 07:39
  2. Use of external styles in xhtml
    By fihsak in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-07-11, 07:43
  3. Use of external styles in xhtml
    By fihsak in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 1970-01-01, 02:00
  4. Use of external styles in xhtml
    By fihsak in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×