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
how to erase a border?
Old 11-06-2006, 04:21 PM how to erase a border?
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i made a button but when i add
Code:
<a href="#" onmousedown="NextPhoto()" ><img src="nextBtn.jpg" /></a>
this gives me the image inside a rectangle, how can i erase it?
another question: how can i change the cursor when i use onClick?


thanks
pizza is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-06-2006, 09:26 PM Re: how to erase a border?
Super Talker

Posts: 115
Trades: 0
Quote:
Originally Posted by pizza View Post
i made a button but when i add
Code:
<a href="#" onmousedown="NextPhoto()" ><img src="nextBtn.jpg" border="0"/></a>
Just need to add border="0" to your code. See modified code.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
webfinity is offline
Reply With Quote
View Public Profile Visit webfinity's homepage!
 
Old 11-07-2006, 02:46 PM Re: how to erase a border?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
That border is a default and has been for a looonnnggg time. You have to do as webfinity suggested. Or, if you're using CSS, add the border: none to your img selector.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-07-2006, 03:55 PM Re: how to erase a border?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
To clarify what LNR meant (since I can see someone asking the question), put this into your CSS:
Code:
img {
    border:  none;
}
That will remove all image borders by default, but if you want to add one in later on a specific element you can override this with classes and/or inline styling.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-08-2006, 01:30 AM Re: how to erase a border?
Average Talker

Posts: 25
Location: Indonesia
Trades: 0
Quote:
Originally Posted by pizza View Post
another question: how can i change the cursor when i use onClick?
I might misunderstand your question, but if what you mean is to change cursor on image to be just like on hyperlink then here it is:
Code:
<img src="nextBtn.jpg" border="0" style="cursor:pointer;" />
__________________

Please login or register to view this content. Registration is FREE
.
dannybedor is offline
Reply With Quote
View Public Profile Visit dannybedor's homepage!
 
Reply     « Reply to how to erase a border?
 

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.15755 seconds with 12 queries