views:

19

answers:

3

i have a button in html that has a background image and text overtop of it, how can i disable the selecting of that text so it looks more "seamless"?

echo '<td width="130" height="30"'. "onClick='document.location = ".'"'.$value.'";'."'><center>".$key."</center></td></a>";
A: 

Two ways of doing this

- Render the text as image as we have email in Facebook
- Overlay it with a Div with semi transparent image as a background
Ifi
The second option does not prevent it from being selected.
Mikulas Dite
A: 

Use this css:

#defaultPointer{
    cursor:default;
}

for this div:

<div id="defaultPointer">
<p>
hello world
</p>
</div>

Just a sample, but it should totes McGoats make it more seemless. I've done the same with a site before.

In your case you'd probably just add the id to the td you've got there.

Hope this helps.

Douglas
A: 

If I have understood your question correcty, you want it to behave like a button, just add to your "td" a style:

style="cursor:pointer;"
Zuul