extremely new to CSS,, and I have a really simple question. |
![]() ![]() |
extremely new to CSS,, and I have a really simple question. |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Oct 2005 Member No: 271,494 ![]() |
I'm trying to put a nice, pretty, blue (to be exact, #4488ff) border around that image. I looked around in my code (basically took a styleset from someone else, then completely altered it) for other border codes and imitated them, but it did nothing. There were a few border codes that said stuff like so I tried perhaps doing and but to no avail. I tested it out with a solid gray border around the image, and that worked fine. But any other colours besides solid gray and black just won't work. Help? |
|
|
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 150 Joined: May 2005 Member No: 132,977 ![]() |
Try this:
CODE border: 2px solid #4488ff; =] |
|
|
![]()
Post
#3
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Oct 2005 Member No: 271,494 ![]() |
That works, except for one thing.
In IE, the "filter: gray" code turns the border into gray, too. In Firefox, the border overrides the filter and causes the image to just be normal and in colour. So, there's still some toying around that I need to do. =\ |
|
|
![]()
Post
#4
|
|
![]() Death is a promise given to us at birth ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,757 Joined: Mar 2004 Member No: 7,459 ![]() |
well "filter:gray" applies to the whole page.
different browsers have difference things. or you can put "filter:none" for the links and images to see if it colored. |
|
|
![]()
Post
#5
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 53 Joined: Nov 2005 Member No: 284,602 ![]() |
do you want it to have a blue border when it's hovered on only? if you do, maybe you could try this code:
if you want a blue border around the image all the time maybe this code: |
|
|
![]() ![]() |