Log In · Register

 
extremely new to CSS,, and I have a really simple question.
the tonestarr
post Oct 21 2005, 08:49 AM
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?
 
 
Start new topic
Replies (1 - 4)
khraene
post Oct 21 2005, 10:16 AM
Post #2


Senior Member
****

Group: Member
Posts: 150
Joined: May 2005
Member No: 132,977



Try this:
CODE
border: 2px solid #4488ff;

=]
 
the tonestarr
post Oct 21 2005, 10:51 PM
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. =\
 
moorepocket
post Oct 24 2005, 03:24 PM
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.
 
krizannenicole
post Nov 9 2005, 07:47 PM
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:
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: