Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Image Border

0 views
Skip to first unread message

Susan K Goben

unread,
Oct 13, 2002, 4:53:28 PM10/13/02
to
I am trying to place a border around an image as follows but am getting a
small white space at the bottom of the picture. There is no white space in
my actual picture. Any ideas why this is happening or what code I need to
use to have the picture outlined?

Thanks in advance

.pic
{
width:115px;
height:150px;
border:solid;

}


Alexander Ludvig Holm

unread,
Oct 13, 2002, 5:50:39 PM10/13/02
to
"Susan K Goben" <skg...@cccn.net> wrote in message
news:u6OynpvcCHA.1520@tkmsftngp08...

Well, I don't know if you have declared any other stuff for the .pic class
elsewhere, but I think you have forgotten border-width and border-color.

.pic {
width: 115px;
height: 150px;

border-style: solid;
border-color: black;
border-width: 1px;
}

or you can type

.pic {
width: 115px;
height: 150px;

border: solid black 1px;
}


Best regards
Alexander L Holm


Susan K Goben

unread,
Oct 13, 2002, 6:02:57 PM10/13/02
to
Thanks for the reply.

I have since discovered that my picture shows no white space in
Netscape...only IE 6.0.

There is no other declaration for this anywhere else, only in the .pic. The
color and width seem to have no effect on the white space at the bottom.

Any other ideas?

Thanks
"Alexander Ludvig Holm" <lc4...@chello.no> wrote in message
news:PUlq9.1914$rw2....@news01.chello.no...

Alexander Ludvig Holm

unread,
Oct 13, 2002, 6:41:46 PM10/13/02
to
"Susan K Goben" <skg...@cccn.net> wrote in message
news:uO9acQwcCHA.1800@tkmsftngp09...

> Thanks for the reply.
>
> I have since discovered that my picture shows no white space in
> Netscape...only IE 6.0.
>
> There is no other declaration for this anywhere else, only in the .pic.
The
> color and width seem to have no effect on the white space at the bottom.
>
> Any other ideas?
>
> Thanks

Well, do you have screenshot of it? :-) Or do you have a site on the net
where you have this code?

I made an simple code here, looks fine for me in IE6 and Mozilla. Blue image
is same size as described in the css code, the green one is 300x300 just to
check if that was a problem... Red image is 50x50.

http://home.chello.no/~shellan1/imgbordertest/index.html

PeterMcC

unread,
Oct 14, 2002, 4:09:05 AM10/14/02
to
Susan K Goben wrote:
> I am trying to place a border around an image as follows but am
> getting a small white space at the bottom of the picture. There is
> no white space in my actual picture. Any ideas why this is happening
> or what code I need to use to have the picture outlined?

Can you post a URL or the offending html?

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

0 new messages