Results 1 to 6 of 6

Thread: text removal

  1. #1
    Join Date
    Dec 2004
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question text removal

    I got this code:
    Code:
    <style type="text/css">
    .nametext {
     width: 156px; height: 85px;
     background-image:url(http://files.tagworld.com/479e9dd1b77beac24cf0a1401f1476e917d8.jpeg);
     background-repeat: no-repeat;
    }
    </style>
    This code puts image into .nametext class as background, but problem that I hate that table has text in it. so I got background image plus text over it. I need help removing the text from that class. I tried display:none but it takes the whole thong out and I tried moving in off visible area but it takes the whole thing out as well. I need to leave image instead of that text. NO JAVASCRIPT got to use css and html.

    thank you

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Why don't you just remove the text from the table?
    Anyway... try visibility:hidden.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Dec 2004
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Got it

    No it didn't work with visibility:hidden, removed the whole thing. but i figured it out, here is the code that answers my question.
    Code:
    <style type="text/css">
    table table table td {!important;}
    span.nametext {
    color:transparent;
    visibility:invisible !important;
    background-color:transparent;
    background-image:url("http://files.tagworld.com/479e9dd1b77beac24cf0a1401f1476e917d8.jpeg");
    background-repeat:no-repeat;
    background-position:center center;
    font-size:0px; letter-spacing:-0.5px;
    width:158px; height:42px; display:block !important; }
    span.nametext img {display:none; }
    </style>

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    "invisible" is not a value for visibility.
    In fact, that's some really screwed up code in general.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Dec 2004
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb hhaahha

    perfection is not the only answer that works!

    this code does the job, thats all it matters.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, but half of it doesn't do anything
    Code:
    table table table td {!important;}
    for example. You're using !important but you haven't actually specified what is important.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •