School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,212 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,569 people online right now. Registration is fast and FREE... Join Now!




simple CSS question

 

simple CSS question

TechWar

2 Nov, 2009 - 09:16 AM
Post #1

D.I.C Regular
***

Joined: 17 Feb, 2009
Posts: 469



Thanked: 7 times
My Contributions
I have a link:
CODE

<a href="somewhere" title="something">My Link</a>


I am wondering how to access the title element of this link in CSS.

Any help would be greatly appreciated.

Thanx

User is offlineProfile CardPM
+Quote Post


RudiVisser

RE: Simple CSS Question

2 Nov, 2009 - 09:26 AM
Post #2

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,891



Thanked: 139 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
What do you mean??

If you want to do what I think you want to do, do this:
CODE
a[title="something"] {
   /* styles */
}

But what's wrong with a class??

This post has been edited by RudiVisser: 2 Nov, 2009 - 09:27 AM
User is offlineProfile CardPM
+Quote Post

TechWar

RE: Simple CSS Question

2 Nov, 2009 - 05:01 PM
Post #3

D.I.C Regular
***

Joined: 17 Feb, 2009
Posts: 469



Thanked: 7 times
My Contributions
No, I meant what I wrote. I want to be able to apply a style to whatever I have in the title (ie: tooltip) of the link.

for example - apply an uppercase or capitalize style to it.

thanks for your help so far, I hope this clears it up.
User is offlineProfile CardPM
+Quote Post

BetaWar

RE: Simple CSS Question

2 Nov, 2009 - 05:28 PM
Post #4

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,779



Thanked: 277 times
Dream Kudos: 1400
My Contributions
I am pretty sure that short of making your own Tooltip with Javascript you can't actually modify the tooltip styles as they are not considered a part of the web page by most browsers (I think all, but I may be wrong there).
User is online!Profile CardPM
+Quote Post

iphoneorange

RE: Simple CSS Question

2 Nov, 2009 - 05:33 PM
Post #5

D.I.C Head
Group Icon

Joined: 20 Aug, 2008
Posts: 147



Thanked: 17 times
Dream Kudos: 75
My Contributions
I agree with betawar, mebe you should look for a script that makes a custom tooltip, and you can fix it to your needs biggrin.gif
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 09:46PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month