philaletheia: [fil-a-lay-thee-a] n. 1. love of truth. 2. a lover of truth.

Anyone Know CSS?

April 14th, 2007 by drunkentune

This post has nothing to do with atheism, theism, belief, dialogue, &c; it’s about programming code. If you’re interested, then read on. Otherwise, it’s for those that are willing and able to solve a goofy problem I’ve been having.

For everyone else, if you think the site could use an overhaul, then now’s the time for some suggestions. Just comment about the color scheme; font size/style; format… now’s your time to gripe!

This is an exampleThis is a footnote. Anyone notice the problem(s)? of what happens.

And here’s the code in the body:

a.tt{
position:relative;
z-index:24;
color#FAA806;
font-weight:italic;
text-decoration:none;
}
a.tt span{ display:none; }
a.tt:hover{ z-index:25; color:#aaaaff; background:;}
a.tt:hover span.tooltip{
display:block;
position:absolute;
top:0px; left0;
padding: 15px 0 0 0;
width:200px;
color: #3D2B1F;
filter: alpha(opacity:90);
KHTMLOpacity: 0.90;
MozOpacity: 0.90;
opacity: 0.90;
}
a.tt:hover span.top{
display: block;
padding: 10px 8px 0;
background: url(http://philaletheia.thetruthtree.com/wp-content/uploads/2007/04/bubble.gif) no-repeat top;
}
a.tt:hover span.middle{
display: block;
padding: 0 8px;
background: url(http://philaletheia.thetruthtree.com/wp-content/uploads/2007/04/bubble_filler.gif) repeat bottom;
}
a.tt:hover span.bottom{
display: block;
padding: 3px 8px 10px;
background: url(http://philaletheia.thetruthtree.com/wp-content/uploads/2007/04/bubble.gif) no-repeat bottom;
}

Any ideas? You can either comment with your suggestions or email me at drunkentune[at]gmail.com.

Posted in for fun |

15 Responses

  1. Matthew Says:

    Your stylesheet looks OK. Putting a non-breaking space in the span tag fixes the problem for me (firefox 2.0.0.3):


    This is an example
     
    This is a footnote. Anyone notice the problem(s)?

  2. Matthew Says:

    Let me try that again:


    This is an example
     
    This is a footnote. Anyone notice the problem(s)?

  3. Matthew Says:

    Looks like using the “code” tag in a comment is trickier than I thought. I try again:

    <a href=”#” class=”tt”>This is an example<span class=”tooltip”>
    <span class=”top”> </span>
    <span class=”middle”>This is a footnote. Anyone notice the problem(s)?</span>
    <span class=”bottom”></span></a>

  4. Matthew Says:

    groan … of course it translated my non-breaking space.

    Anyhow, there’s a non-breaking space in the first span tag.

  5. soulster Says:

    It seems that your span command is not terminating properly. because of this line:

    “a.tt span{ display:none; }:

    I’m not sure what its for, but when a removed it, the span terminated correctly.

    There was a syntax error under a.tt:hover where it said “left0;” instead of “left:0px;”

  6. soulster Says:

    Well, actually, the span is still having problems, just the rest of the page isn’t included in the ajax like it was unless the link is rolled over.

  7. soulster Says:

    The top of the box isn’t showing, so I suspect it might be the problem with the span.

  8. soulster Says:

    You were missing a closing span command for the “span class=tooltip” since the other span commands were included in this one (so before “a” is closed it should be </span></span>). I added “a.tt span{ display:none; }” back into the style sheet and it works now.

  9. soulster Says:

    I’m still not sure why to top of the bubble doesn’t display, instead the box is open. I checked the style sheet and it is the same commands as the bottom. Should the top image be different?

  10. beepbeepitsme Says:

    I see no problems with the layout. If it isn’t broken, don’t fix it.

  11. drunkentune Says:

    Thanks!

    For Safari it’s still a bit goofy: the top is over a few px and I’m not sure why. Does anyone know how it displays on Firefox and IE?

  12. soulster Says:

    There’s a website called Browsershots.org that allows you to see what a page looks like in any browser. I submitted this page. Goto:

    http://browsershots.org/website/http://philaletheia.thetruthtree.com/2007/04/14/anyone-know-css/

  13. drunkentune Says:

    A Ben “soulster” Cheek
    Alas, was once a Jesus freak.
    A bright Christian today, he gained some quality knowledge
    At this place called college.

    – a clerihew by drunkentune

  14. soulster Says:

    Thank you drunkentune. A fitting ode and my introduction to the clerihew form [wiki]. I had a chance just recently to go back to my alma mater to speak at a conference they were hosting. Made me think of some of the more interesting things I’ve learned, like HTML and CSS programming from a mathematician-turned-linguist-turned-theologian.

  15. Maximus Says:

    I would like to see a continuation of the topic

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.