View Full Version : linking images and white space around it...

Apr 26th, 2009, 11:00 PM
hey guys

im trying to link an image and it keeps coming up with a white border

how do i stop that?

Apr 27th, 2009, 01:02 AM
Hello Nblufire12,
border:none; should do the trick.
I always put

* {
margin: 0;
padding: 0;
border: none;
} at the top of the CSS file of every page I write.

The * is from DOS days of old...

The asterisk is a wild-card
character which allows the user to enter only a limited part of a file
specification to find a file. It is useful when you wish to locate a
group of files with the same filename or the same extension.

We use it now in CSS as a "Universal Selector." The * just targets all selectors, a wildcard. By setting all margin/padding to 0 we zero out defaults that differ from browser to browser.