Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 07-11-2007, 05:40 AM   #1 (permalink)
Newb Techie
 
Join Date: Jul 2007
Posts: 3
Default CSS - Cascading Style Sheets

I wanted to find out if anyone can tell me a workaround for using CSS hover links on images? I've got a problems where I used border="1" for some of my images on the page and when browsing using Opera, Mozilla, etc. I'm getting the border to hover (or change color) like a link does. This doesn't happen in IE which is what I used to design the site around. I know that I can redo the images and set border to 0, but I wanted to find out if anyone knows a way to set images not to hover? Thanks.
Angel8552 is offline   Reply With Quote
Old 07-11-2007, 06:03 PM   #2 (permalink)
Monster Techie
 
Join Date: May 2004
Location: Tucson, AZ, USA
Posts: 1,184
Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default Re: CSS - Cascading Style Sheets

Quote:
Originally Posted by Angel8552 View Post
but I wanted to find out if anyone knows a way to set images not to hover? Thanks.
Hmm, what do you mean by setting an image not to hover? You want the link to remain the same color regardless of hovering/clicking it?
__________________
Vormund is offline   Reply With Quote
Old 07-23-2007, 06:40 PM   #3 (permalink)
Junior Techie
 
Join Date: Nov 2005
Location: Greece > Athens
Posts: 50
Default Re: CSS - Cascading Style Sheets

well, If a link will change color,hover or whatever, is not a program-side thing.
It depends on the settings each user has to his browser. The same button or
link on a site, might change color at my pc, stay the same at yours etc.
You can't control that. The only thing you can do is to think something to force
any browser to interact the same. for example, instead using the simple link
code, you can set the position, width and height of your images and tell to the program
that whenever the mouse clicks within the specific box, open a link. HTML
doesn't give many "controling" functions... you better try to make it with PHP
or Java applet...especialy in Java applet you can do whatever you want because what user will see will depend ONLY to you! no matter settings, no
matter screen resolution etc etc...
__________________
sine Diabolo,nullus Dominus...

CPU: P4@3.2GHz
RAM: SuperTalent 1Gb kit (2x512) @ 800FSB
MOB: Asus P5B Deluxe
VGA: Albatron 7600GS
HDD: SATA W/D 40Gb / SATA W/D 120Gb
P/S: Enermax 460W
StorM_GmA is offline   Reply With Quote
Old 07-23-2007, 07:33 PM   #4 (permalink)
Monster Techie
 
Join Date: May 2004
Location: Tucson, AZ, USA
Posts: 1,184
Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default Re: CSS - Cascading Style Sheets

Quote:
Originally Posted by StorM_GmA View Post
well, If a link will change color,hover or whatever, is not a program-side thing.
It depends on the settings each user has to his browser. The same button or
link on a site, might change color at my pc, stay the same at yours etc.
You can't control that.
Not entirely true...most browsers are on "default" - they use colors/layouts specified by the content they're looking at. Granted, some may override this, but it is by no means common. CSS controls this completely in this case, since you most likely are not designing the page for the select few who override their settings.

A Java applet would indeed allow for more control, but it's a lot more overhead and will cause the page to take longer to load, require the user to have Java installed, etc. It's not the way you want to go, for general website design.
__________________
Vormund is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac OSX style Windows Cyber.Logan Building, Buying, or Upgrading High Performance PC Systems 2 06-06-2007 12:05 PM


All times are GMT -5. The time now is 07:56 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0