473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Hidden text

I've set up the following bit of test code, which adds a small graphic to
the start of each class.

What I'd like to do now is display an asterisk or similiar symbol in place
of the graphic in text browsers.

Is there a nice, simple way to do this? I thought possibly the symbol could
be hidden under the graphic in graphical browsers.
<!--<html>
<head>
<style>
..para {background-image: url('triangle.gif'); background-repeat: no-repeat;
background-position: center left;
padding-left:10px;
}
</style>
</head>
<body>
<div class="para">
THIS IS UPPERCASE
</div>
<div class="para">
THIS IS another line
</div>
</body>
</html>
-->
Jul 23 '05 #1
3 3485
BernieH wrote:
I've set up the following bit of test code, which adds a small graphic to
the start of each class.

What I'd like to do now is display an asterisk or similiar symbol in place
of the graphic in text browsers.

Is there a nice, simple way to do this? I thought possibly the symbol could
be hidden under the graphic in graphical browsers.


<img src="symbol.png" width="??" height="??" alt="*">

--
Mark.
http://tranchant.plus.com/
Jul 23 '05 #2
On Tue, 19 Oct 2004 16:12:15 +1000, BernieH <bh*******@ozemail.com.au>
declared in comp.infosystems.www.authoring.html:
I've set up the following bit of test code, which adds a small graphic to
the start of each class.

What I'd like to do now is display an asterisk or similiar symbol in place
of the graphic in text browsers.


You can only specify a textual replacement for an image that is inserted
via the <img> element.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 23 '05 #3
On Tue, 19 Oct 2004 16:12:15 +1000, BernieH <bh*******@ozemail.com.au>
wrote:
What I'd like to do now is display an asterisk or similiar symbol in
place
of the graphic in text browsers.
See my additions.
<!--<html>
<head>
<style>
.para {background-image: url('triangle.gif'); background-repeat:
no-repeat;
background-position: center left;
padding-left:10px;
}
span.star {display:none;}
</style>
</head>
<body>
<div class="para"> <span class="star>*&nbsp;</span> THIS IS UPPERCASE
</div>
<div class="para"> <span class="star>*&nbsp;</span> THIS IS another line
</div>
</body>
</html>
-->


CSS active - span is not displayed, bg-image appears.
CSS down - no bg-image, star leads the para div.

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
1
by: mark.reichman | last post by:
First off.. Thanks to Grant Wagner for help in a previous thread related to this one. I am at a total loss... I have multiple fields in a form with the same name. Lets call the fields with the...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
2
by: Andrew | last post by:
I have a <div> section of text in my page that I want to make visible via an input check box associated with an OnClick javascript. I can do this OK but the problem is that the space for the hidden...
2
by: D. Alvarado | last post by:
Hello I have 5 divs, and initially the lower 4 are hidden. I would like everything beneath the 5th div to appear flush against the first visible div. But right now, there is a gap of white...
3
by: Roy Adams | last post by:
Hi I'm reposting this question because for some reason can't post follow up question to this thread. What I'm trying to do is put the value and text from a a select in to a text field and to a...
1
by: tabert | last post by:
I want to use JavaScript when a button is clicked to show and hide a SPAN or DIV. This works in both IE and Netscape, but what I'd like to happen is for there to be no white space where the hidden...
1
by: Madame Blablavatsky | last post by:
hello, i am trying to build a kind of very, very simple ritch text editor for people to use with a very simple cms. at the moment i am working on the basic structure. the text is put in an...
4
by: Magnus Blomberg | last post by:
Hello! I have a problem when using a hidden field to send a value to the server. Below you can see my code in simplyfied versions. What I'm trying to do is: 1. The user browses for a picture...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.