<div class="breadcrumb">
<h2 class="element-invisible">You are here</h2>
<a href="/cashback/">Home</a>
admin
</div>
Can any one suggest how to remove the "admin" from the above html by using css? I can't modify the html directly.
<div class="breadcrumb">
<h2 class="element-invisible">You are here</h2>
<a href="/cashback/">Home</a>
admin
</div>
Can any one suggest how to remove the "admin" from the above html by using css? I can't modify the html directly.
There is a way to do this with just CSS:
.breadcrumb {
visibility: hidden;
}
.breadcrumb * {
visibility: visible;
}
you can use str_replace('admin','',$var_name);
if you have variable of this html.
You can use:
<span style="display:none;">admin</span>
Try using position relative with a negative left position, I don't know if you can apply those styles with no problem in your Drupal site, but at least it works in the fiddle.
http://jsfiddle.net/cadence96/M5pfV/1/
First give a relative position to the container moving it away of the view applying a css style of left: -9999px
then select the children elements, give them position relative, and style them with left: 9999px, this way you'll get your necessary elements back in the view.
PD: I tried to use the same process with negative text indent, but I don't know why it didn't work.
text-indent:-9999px;
position:relative;
for IE7:
text-transform:uppercase;