Hi Group,
It's been a very long time since I've tried working with HTML and so
I'm sure this question is going to seem elementary, but I haven't had
any luck finding the answer myself. In my blog on Blogger, I've
included a CSS based pop-up box class so that I can provide additional
information to the reader that facilitates the reading process without
resorting to links. However, the drawback so far is that the text in
the pop up box (activated on mouse-over) is cluttering up the HTML
body behind the scenes. Moreover, I might want to provide the same pop
text in different places and it seems inefficient to copy and paste
within my HTML in order to do that (also, more clutter). Is there some
way to reference text (including HTML markup for the text) that is
stored in another location and printed to the page where an
appropriate tag is located? If it's possible, I'd rather not include
Java/PHP/Python scripts so that I can keep the solutions CSS and
maximally accessible. As you can see the HTML body example below, the
content of the pop box is contained within <span></span> and <p.h2
class=boxpopup3> but it's very bulky particularly if there's a lot of
pop-up text. Thanks for your time,
Chris
code example:
--------------------
CSS stylesheet
--------------------
.boxpopup3{position:relative;
z-index:24;
color:$(link.hover.color);
border-bottom:1px rgb(120,120,120);
text-decoration:none}
.boxpopup3:hover{z-index:25;}
.boxpopup3 span{display: none}
.boxpopup3:hover span{ /*DISPLAYS ONLY ON HOVER*/
display:block;
position:absolute;
top:2em; left:0; width:12em;
padding:.3em;
border:2px 1px rgb(120,120,120);
color:white; background:$(widget.background.color);
text-align:center;
}
--------------------
HTML Body
--------------------
<i><a href="
http://www.python.org/">Python</a> </i>(<p.h2
class="boxpopup3">apt-get <span>'apt-get' is the command line
function for managing packages with Ubuntu's Aptitude Package Manager
- the full command for a sudoer (administrative user) would be <p.h2
color="color-value:rgb(32,32,32)" style="font-family: Courier;">sudo
apt-get install [package]</p.h2>in order to install software.</span></
p.h2>python)