SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    UK
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Print CSS to print complete Full Names where only Abbreviations exist on the Webpage?

    Hi

    As a follow-up to this, is there a way to have the print version of a data table to print complete Table Headers (full names) where only acronyms exist on the webpage.

    http://www.sitepoint.com/forums/show...4&page=1&pp=25

  2. #2
    doing my best to help c2uk's Avatar
    Join Date
    May 2005
    Location
    Cardiff
    Posts
    1,832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With some tricks you might be able to achieve it, like display:none; for the acronym tag in the print css and place the full name behing the acronym in a span with a class that places this tag somewhere outside the screen, e.g.

    HTML Code:
    <acronym title="National Basketball Association">NBA</acronym><span class="hide">National Basketball Association</span>
    screen css:
    Code:
    span.hide {
    margin:-1000px;
    }
    some people recommend to use display:none in this case as well, or other techniques. Don't know whether this one is the best.

    print css:
    Code:
    acronym {
    display:none;
    }
    That should do the trick. Hope that makes sense, It's pretty late and I'm a bit tired...
    Dan G
    Marketing Strategist & Consultant


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
  •