|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Hey all, I need to know how to set certain things for certain... thanks ![]() 1. I need to have a background color (on hover) and 2px padding (always) on TEXT links. ONLY text links. 2. I need to NOT have any border or background color (even on hover) for any images and inputs. Basically, I'm trying to restrict the padding and background color (on hover) to ONLY text links with CSS. Any bright ideas? Thanks ^_^-Matt
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
|
| |||||||
| | #2 |
| Member Join Date: Dec 2005
Posts: 132
![]() | i hope this helps: Code:
At the same time you are required to have text links within <span></span> tags or extend it to further tags. The fact that you can use images within span tags is a problem but there's no workaround to it as CSS doesn't distinguish between text, images and lists as such.
__________________ Eat healthy, Stay Fit, Die Anyway. --==-- If there is a man who knows everything about women, there is a Windows distribution without bugs. |
| |
| | #3 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Ah thanks, I'll definately try that. I can't now but will ASAP And let you know if it worked. Rep added
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #4 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | I can't get it to work Is there like a way to say:a img { whatever } So that it only affects images in anchors?
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #5 |
| Member Join Date: Dec 2005
Posts: 132
![]() | yep.. you can do that.
__________________ Eat healthy, Stay Fit, Die Anyway. --==-- If there is a man who knows everything about women, there is a Windows distribution without bugs. |
| |
| | #6 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Then how come it doesn't work? ![]()
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #7 |
| Member Join Date: Dec 2005
Posts: 132
![]() | Please post the complete code here. Maybe I can catch the glitch in there. I really don't know why it's not working...
__________________ Eat healthy, Stay Fit, Die Anyway. --==-- If there is a man who knows everything about women, there is a Windows distribution without bugs. |
| |
| | #8 |
| Junior Guru | No a img {, will not work. Try the following - HTML Code:
If the img isn't working, put this in your image tags: HTML Code:
HTMLGuy
__________________ yaxal releases '07 |
| |
| | #9 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Hm, didn't work Thanks though!
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #10 |
| Junior Guru | Oh, here comes a long post but it will help you a lot! Okay in CSS there is a thing called classes. You can create classes so only certain things are changed. Classes basically seperates normal tags (the ones you do not want to change) and the tags you want to change. In this case you want to change the look of images that have a hyperlink attached to them. You don't want other images to look any different. So let's create a css class! Here is what you want, I will explain it for you (put this in your stylesheet). Code:
Code:
HTMLGuy
__________________ yaxal releases '07 |
| |
| | #11 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Thanks for this; I already know how to use classes But other members will find it useful, I'm sure.
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #12 |
| Permanently Banned Contributor | uh i knew that a long time. Hey compuxp what are you going to do with that script. What website are you going to put on? I want to see and rate it...please
__________________ Albert Tai Submit your links to Webz.in Rep people on this forum if they helped you |
| |
| | #13 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Me? With what script?
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
| | #15 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Actually I haven't released the project yet :-/ Going to have to wait until it's out.
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Advanced CSS | Zack | CSS | 1 | 10-25-2006 11:56 PM |
| advanced ebay mail scam | UnKnown | General Talk | 8 | 10-07-2006 10:58 AM |
| Needed, a fairly advanced programmer | Zack | Want to Buy | 4 | 12-29-2005 11:57 PM |