SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Mar 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    word document with bullets problem

    Hi friends,

    I got one problem.
    I copied the content from Msword and pasted it in WYSIWYG editor.
    The content contains bullets.
    Iam storing that content into database and displaying it in browser.
    In mozilla the bullets are displaying in different format.
    And in IE it is printing like this
    <!--[if!supportLists]--><!--[endif]-->

    how to resolve this error?
    Please give me the solution.............

  2. #2
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    heaven
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not really a PHP problem... Just rewrite the data in the editor or copy to a text editor and apply the formatting.
    Creativity knows no other restraint than the
    confines of a small mind.
    - Me
    Geekly Humor
    Oh baby! Check out the design patterns on that framework!

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,622
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    To get rid of bullets add

    ul,li{list-style-type:none;} and I'd add this at the top of your CSS file

    *{margin:0;padding:0;} to remove the padding/margins that FF/IE add onto lists.

    EDIT: Got code?
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    SitePoint Addict SilentBobSC's Avatar
    Join Date
    Mar 2005
    Location
    South Carolina
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like the WYSIWYG editor didn't clean up the MSWord 'code' all that well, Dreamweaver does a decent job of stripping MS Word 'HTML' down to basic tags, however I personally usually pass my content through a basic text editor (my poison is Notepad++) It will strip all rich formatting (Bold, italic, ULs, LIs, etc) but those are fairly easy to replace, however the size of the content also comes into play (you don't want to re-tag 20 'pages' of content).

  5. #5
    SitePoint Zealot
    Join Date
    Mar 2009
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Word is well-known for making crazy HTML code behind the scenes, but if you copied and pasted the formatted text straight from Word into the WYSIWYG mode in your HTML editor, then that's another issue.

    Personally, I would switch to HTML view and clean up those bulleted items to make them into a proper <ul> or <ol> list...
    Learn all about diamonds,
    Check out some period-drama movies and TV series,
    Or get festive with The Wonder of Christmas.


Bookmarks

Posting Permissions

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