473,396 Members | 1,714 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,396 software developers and data experts.

OT about CSS (other groups wont help)

hello all.
this is some CSS code that I have and it works great with links. however,
is it possible to achieve the same effect for images, buttons, regular text,
etc. ?

maybe make a new class called "tooltip" that i can apply to items throughout
the
site whenever/wherever i need a popup.

similar to the TITLE attribute, but much better to look at ;)

<style type="text/css">
..link a:link span{display: none;}

..link a:visited span{display: none;}

..link a:hover span {
position: absolute;
margin: 10px 0px 0px 10px; /*tooltip box*/
background-color: #E6F2FF;
padding: 5px 8px 5px 0px;
border: 1px dashed #336699;
font-weight: normal;
font-family: Verdana;
font-size: 8pt;
color: #336699;
text-align: center;
display: block;
</style>

<p class="link"><a href="#">link<span>this is a tooltip</span></a></p>

thanks all.
Jul 16 '05 #1
4 1607
In article <vk************@corp.supernews.com>,
"noone" <no***@nowhere.com> wrote:

: is it possible to achieve the same effect for images, buttons, regular text,
: etc. ?

Not easily without enclosing them in an anchor. Not in CSS. Lots of
"onMouseover" stuff around.
--
Looks like more of Texas to me.
.... Arizona, where the nights are warm and the roads are straight.
Jul 16 '05 #2
"Warren Oates" <Wa****@InHell.Com> wrote in message
news:Wa**************************@nr-tor01.bellnexxia.net...
In article <vk************@corp.supernews.com>,
"noone" <no***@nowhere.com> wrote:

: is it possible to achieve the same effect for images, buttons, regular text, : etc. ?

Not easily without enclosing them in an anchor. Not in CSS. Lots of
"onMouseover" stuff around.
--


thanks for the reply. at least now i know i can stop tinkering with it
and try something else.

i have javascript code that works fine, i just HATE javascript and would
love to get rid 100% rid of it ;)
Jul 16 '05 #3
"noone" <no***@nowhere.com> wrote in message news:<vk************@corp.supernews.com>...
hello all.
this is some CSS code that I have and it works great with links. however,
is it possible to achieve the same effect for images, buttons, regular text,
etc. ?

maybe make a new class called "tooltip" that i can apply to items throughout
the
site whenever/wherever i need a popup.

similar to the TITLE attribute, but much better to look at ;)

<style type="text/css">
.link a:link span{display: none;}

.link a:visited span{display: none;}

.link a:hover span {
position: absolute;
margin: 10px 0px 0px 10px; /*tooltip box*/
background-color: #E6F2FF;
padding: 5px 8px 5px 0px;
border: 1px dashed #336699;
font-weight: normal;
font-family: Verdana;
font-size: 8pt;
color: #336699;
text-align: center;
display: block;
</style>

<p class="link"><a href="#">link<span>this is a tooltip</span></a></p>

I'm so curious to know in which browser the above code worked for
you... In my IE6/XP, the above code doesn't work.
Jul 16 '05 #4
works fine here, ie6 xp and 2k.

"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:ab**************************@posting.google.c om...
"noone" <no***@nowhere.com> wrote in message

news:<vk************@corp.supernews.com>...
hello all.
this is some CSS code that I have and it works great with links. however, is it possible to achieve the same effect for images, buttons, regular text, etc. ?

maybe make a new class called "tooltip" that i can apply to items throughout the
site whenever/wherever i need a popup.

similar to the TITLE attribute, but much better to look at ;)

<style type="text/css">
.link a:link span{display: none;}

.link a:visited span{display: none;}

.link a:hover span {
position: absolute;
margin: 10px 0px 0px 10px; /*tooltip box*/
background-color: #E6F2FF;
padding: 5px 8px 5px 0px;
border: 1px dashed #336699;
font-weight: normal;
font-family: Verdana;
font-size: 8pt;
color: #336699;
text-align: center;
display: block;
</style>

<p class="link"><a href="#">link<span>this is a tooltip</span></a></p>

I'm so curious to know in which browser the above code worked for
you... In my IE6/XP, the above code doesn't work.

Jul 16 '05 #5

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

Similar topics

11
by: penguinman | last post by:
I type ./a.out and the shell just sits there. It doesnt hang it just sits there looking pretty. I run the program with the ddd option and executed it from ddd...execution window comes up and...
4
by: Simon | last post by:
I have another question.. Let's take a textarea with the parameter: "rows=4" (<textarea rows=4 onkeydown="CheckScrollbar()"> ) If you start typing the scrollbar at the right is not active. Only...
4
by: Steve Westwood | last post by:
I have a WebForm button. Depending on calculation I wont to send a popup message to the web page. I am not sure of the approach. From the server side code I don't seem to be able to access the...
2
by: Vieth | last post by:
Hi! I'm kind of new to microsoft.public.dotnet.framework.aspnet. In the past I just searched the group's archives when I had a question, but now, with the release of Google Groups 2.0, I decided...
4
by: dhnriverside | last post by:
HI guys I've just written my first independent namespace for my library (yay me!). However, on trying to add it to my website project, it causes an error when I look at the website. It compiles...
6
by: Mr Newbie | last post by:
Hi, Im in a situation where I need to restrict users, but I dont have access or wont be allowed access to manage groups in the domain. How can I restrict access is this case ? -- Best...
2
by: moondaddy | last post by:
How can I have a page with 2 different groups of controls (where each group of controls contain textboxes, validation controls and a submit button) and each group operate independently? for...
6
by: Joe | last post by:
I've been getting this message at all different times since a few days ago. I understand the message but not why I get it. I don't have any other threads. This happens when closing dialog boxes,...
9
by: MarGera332 | last post by:
Hey Everyone I have a problem, that just wont seem to go away. Here is the setup, i has one outer div with two divs inside, one large on the left and a small div on the right, i need the div on...
151
by: istillshine | last post by:
There are many languages around: C++, JAVA, PASCAL, and so on. I tried to learn C++ and JAVA, but ended up criticizing them. Is it because C was my first programming language? I like C...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.