PDA

View Full Version : [SOLVED] I need some help with CSS...



diablo75
February 10th, 2008, 05:00 PM
I am currently building a website based upon this template:

http://www.oswd.org/design/preview/id/3559

The website I'm making is here:

http://www.davestechsupport.com/habitatdraft

I know enough HTML to be able to find some problems in the code if there is one, but I know almost nothing about CSS.

All I want to do is be able to insert an image without the CSS automatically adding a 1 pixel thick brown border. I like the border on most images, but for some things (like a gif of a button with rounded corners), I don't want an added border. Thanks for the help in advanced!!

~LoKe
February 10th, 2008, 05:03 PM
.nopx { border: 0; }

<img class="nopx" src="path/to/image.gif" />

diablo75
February 10th, 2008, 05:22 PM
Excellent help! Thank you very much!

mmiller73
February 10th, 2008, 05:24 PM
The following style will remove any borders around images:

img {
border: 0;
}

Washer
February 10th, 2008, 10:11 PM
I divide my website making experience into two parts. The period before I discovered firebug & the period after I discovered firebug.