| Author |
border problems using css
|
|
| Jzart2002 2004-06-09, 6:02 pm |
| I'm a frustrated newbie and I wanted to add a border around my images using
css. The problem is that the images become wide and distorted. If I take out
the css, the images are back to normal. What is the best solution to add
borders around images. Thanks for any insight.
Janet
http://lisadarelli.com/pages/studiogallery.htm
| |
| mzanime.com 2004-06-09, 6:02 pm |
| Heh, interesting photos. :-) If your applying the "border" class to an image,
you don't need all those extra properties, only define the appearance of the
border itself.
.border { border: 1px solid #663333; }
That should work.
| |
| Jzart2002 2004-06-09, 6:04 pm |
| I'm glad you think the pictures are interesting. I've gotton rid of css borders
and tried adding your code on the first image. I must be doing something wrong
because I have no border on the first image, though the images on the page are
no longer distorted either. There are a couple of images with borders only
because it is part of the image. When I compress the image to much, the border
looks bad so I thought I could add a border through the html code or css.
Please tell me what I'm doing wrong. Many thanks, Janet
http://lisadarelli.com/pages/studiogallery.htm
| |
| mzanime.com 2004-06-09, 11:14 pm |
| How are you applying borders to an image?
| |
| Jzart2002 2004-06-09, 11:15 pm |
| When using css, I select the picture and click on the css style I've made in
the css menu. When I used your code, I copy paste it directly into the code
view and placed it after the image code. I've also searched in the search
engines and others have suggested placing the code between the img src, tried
that and that didn't work either. I also have tried different ways of writing
the code in such as, border="1" border color=" #663333", along with a few other
variations.
I appreciate any help on this,
thank you,
Janet
new code
http://lisadarelli.com/pages/studiogallery.htm
old code with css
http://lisadarelli.com/pages/competitiongallery.htm
| |
| Jzart2002 2004-06-10, 4:14 am |
| Problem has been fixed, thank for your time and knowledge.
Janet
| |
| mzanime.com 2004-06-10, 7:14 pm |
| Your welcome. For future reference, there are no attributes which are two-worded... such as "border color="
You might want to check out this site: http://www.w3schools.com/html/
|
|
|
|
| Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |