SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Dec 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    text blocking problem

    New to CSS but came across a problem + solution that might be of use.

    I used Adobe Indesign v2 to make a rough page then hand coded the CSS and HTML to custom design in HotDog. When the page was displayed it proved impossible to block text with the text cursor (everything 'upstream' of the cursor became blocked with a single mouse click). I wanted the facility for visitors to cut and paste text so it was a nuisance. All other aspects of the page were OK.

    On investigation Indesign had added the following at the top of the page :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
    "http://www.w3.org/TR/REC-html40/strict.dtd">

    Modifying this to :

    <!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
    "http://www.w3.org/TR/REC-html40/strict.dtd"-->

    solved the problem - so far I think (!?). Perhaps other convertion software does this?

  2. #2
    Texan at Heart Corey Bryant's Avatar
    Join Date
    Sep 2003
    Location
    Castle Rock, CO
    Posts
    2,491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using the proper DOCTYPE can help you layout the website as desired. For proper use: Recommended DTDs to use in your Web document and a great article here: Fix Your Site With the Right DOCTYPE!

  3. #3
    SitePoint Member
    Join Date
    Dec 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Corey,

    I followed the links you gave. I can see the need for the Doctypes and am willing to go with the conventions but I am used to the tags for notation being <!-- and --> . All the examples on your links are <! and >. Just as an empirical point... my pages with the dashes around the Doctypes work but the ones without the dashes do not (?)

  4. #4
    Texan at Heart Corey Bryant's Avatar
    Join Date
    Sep 2003
    Location
    Castle Rock, CO
    Posts
    2,491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Usually the use of <!-- and --> is to comment out lines of text.

  5. #5
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by meantime
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
    "http://www.w3.org/TR/REC-html40/strict.dtd">

    Modifying this to :

    <!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
    "http://www.w3.org/TR/REC-html40/strict.dtd"-->
    The first is correct - your modification commented out the DOCTYPE, which I think will have thrown IE6 into quirks mode and cause various things to render differently.

  6. #6
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    If you cannot select text, itís usually a small error in your html or text is blocked by a layer, maybe show your page or html

  7. #7
    SitePoint Member
    Join Date
    Dec 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the correction on the Doctype tag. The problem may well lie in the way I am treating layers - I would be grateful for any assistance. Below is a link to a (much stripped down) webpage. Blocking parts of the text with the text cursor - i.e. pairs of words for instance - is still difficult. I am using IE6.

    http://www.a2arts.co.uk/css-test/

    Style sheet at :

    http://www.a2arts.co.uk/css-test/a2-2005-001-test.css


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
  •