www.webdeveloper.com
Results 1 to 3 of 3

Thread: Disable or Ignore Styles

  1. #1
    Join Date
    Nov 2006
    Posts
    2

    Question Disable or Ignore Styles

    I have a web site that uses both CSS and in-line styles. It also displays comment fields from a database. We recently added the ability for the comment fields to store HTML, but most of the style tags like font name don't work because the CSS and in-line styles are overwriting them.

    Is there a way to turn off and ignore styles for a small portion of my web site?

    NOTE:
    If I define my own styles within the comment and use these as class objects, I can get the comment field to do all sorts of stuff, but my end users are not HTML ready and just want to set font name, size, color, etc.

    Much Thanks to any and all,
    David

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Frankly, I'd tell the users to forget the presentation stuff and stick to the basic headings, lists and paragraphs for which you'll provide the stylin'. It sounds like they're stuck in the 20th century anyway.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  3. #3
    Join Date
    Nov 2006
    Posts
    2

    Unhappy

    I have a work around if anyone wants it. It's not very elegant, but it seems to do the trick. Rule #1 change all CSS to only use class definitions then reference the class names in the objects you want affected.

    Instead of ignoring CSS for one object, I have to set the CSS for every other object. Fix 100's because 1 is broken?

    It sucks, but I'm up late tonight making the change for my customer tomorrow.

    David

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles