Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
replace image with alt/title in text only version
Old 07-11-2005, 05:45 AM replace image with alt/title in text only version
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Hi,

Im using a style switcher to enable client to switch between a graphic version and a text only version.

To remove the graphic images for the text only version, i defin img class with in my text only style sheet as the below,

display: none; visibility:hidden;

My problem is that some images are infact titles to navigation or relevant information that requires the title. How do I define so as the text title or all is replaced in stead of the image.

cheers for your time.

Steve
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 07-11-2005, 06:20 AM
danburzo's Avatar
Skilled Talker

Posts: 82
Location: Bistrita RO
Trades: 0
Well, one way to do it is like this:
Code:
<div class="title">
   <h3>My title</h3>
</div>
and now, in your graphic version:
Code:
.title h3 {
   text-indent:-9999px; /* take the text out of your way*/
   display:block;
   width:width of your image;
   height:height of your image;
   background: url(myimage.jpg) no-repeat;
}
in the text version, style the title as you wish:

Code:
.title h3 {
   font: 12px/20px Arial,Verdana,sans-serif;
   color: #cc0000;
   whatever...
}
another way is this: http://www.kryogenix.org/code/browser/lir/
several ways: http://www.mezzoblue.com/tests/revis...e-replacement/
and another bunch: http://stopdesign.com/articles/replace_text/
danburzo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to replace image with alt/title in text only version
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46859 seconds with 12 queries