M
MaggieMagill
Is there a way to have text render as clear, transparent or invinsible?
Here's what I'm trying to do -
Not an applied or publicly available page just something I'm trying out in
order to learn the differences in browser rendering, CSS methods, page
flow, etc. I figure that when stripped of style a page should render in
somewhat of an intelligent & ordered manner for a user.
In trying to get around JavaScript usage for rollover graphic buttons, I
came across a cute little diddy to accomplish a rollover that works nicely
within CSS methods.
But stripping the "style" from the page shows, understandably, no linkable
item at all.
Graphic buttons with a rollover effect are class styled as:
a.next, a:visited.next
{display: block;
width:77px;
height:22px;
background-color:transparent;
background-image: url(../images/buttons/next_g.gif);
text-decoration: none;}
a:hover.next
{display: block;
background-color:transparent;
background-image: url(../images/buttons/next.gif);
text-decoration: none;}
- and called with:
<a class="next" href="nextpage.html"></a>
I can easily understand why the link wouldn't show as such when the page is
stripped of style.
A thought about defining a "clear", "transparent" see-thru style and having
a normal text link enclosed within that style in the html code makes me
think that upon viewing the styled page it would be "hidden" but stripped
of style it would show as a text-link.
So far the closet thing to "hidden" I can come up with is a span class
applied to the .html">hidden text</a> :
span.hidden {
font-size:0%;
font-weight:light;
font-style:italic;
line-height: .1px;
}
Color matching the font is out of the question due to a gradient and border
in the graphic. Italic "thins" it out a bit. It's a bit of a "hack" but
gives the best results across IE6, FireFox 1.0 & Opera7.54.
Is there a technique to actually give text a transparency? Or is the lack
of logic & reasoning for needing "clear" text make the goal unattainable?
Here's what I'm trying to do -
Not an applied or publicly available page just something I'm trying out in
order to learn the differences in browser rendering, CSS methods, page
flow, etc. I figure that when stripped of style a page should render in
somewhat of an intelligent & ordered manner for a user.
In trying to get around JavaScript usage for rollover graphic buttons, I
came across a cute little diddy to accomplish a rollover that works nicely
within CSS methods.
But stripping the "style" from the page shows, understandably, no linkable
item at all.
Graphic buttons with a rollover effect are class styled as:
a.next, a:visited.next
{display: block;
width:77px;
height:22px;
background-color:transparent;
background-image: url(../images/buttons/next_g.gif);
text-decoration: none;}
a:hover.next
{display: block;
background-color:transparent;
background-image: url(../images/buttons/next.gif);
text-decoration: none;}
- and called with:
<a class="next" href="nextpage.html"></a>
I can easily understand why the link wouldn't show as such when the page is
stripped of style.
A thought about defining a "clear", "transparent" see-thru style and having
a normal text link enclosed within that style in the html code makes me
think that upon viewing the styled page it would be "hidden" but stripped
of style it would show as a text-link.
So far the closet thing to "hidden" I can come up with is a span class
applied to the .html">hidden text</a> :
span.hidden {
font-size:0%;
font-weight:light;
font-style:italic;
line-height: .1px;
}
Color matching the font is out of the question due to a gradient and border
in the graphic. Italic "thins" it out a bit. It's a bit of a "hack" but
gives the best results across IE6, FireFox 1.0 & Opera7.54.
Is there a technique to actually give text a transparency? Or is the lack
of logic & reasoning for needing "clear" text make the goal unattainable?