*{border:0;} problem

by 5 replies
6
I use that as part of my reset line at the start of each css file but it wipes out the border for any good old fashioned tables that I need to use.

Putting this in the head right after the style sheet info doesn't work.
<style type="text/css">{border-style:solid;}</style>

What I would really like is something like border:auto; but that doesn't exist.

When I take the border:0; out of the style sheet, I get weird purple borders around any image that is also a link, and that can be difficult to get rid of. If I remember right, if the image was in a table cell I couldn't get rid of it.

So I just ran into the problem with another page and I thought I'd come over here and beg for help.

I wouldn't be surprised if there was a simple solution, but I don't know about it.
#website design #border0 #problem
  • By default there is a border for images that are url's. You can take out that border only by using img {border:0;}. I guess I'm not understanding why you are trying to set the border to 0 for everything in the first place.
    • [ 1 ] Thanks
  • Not sure if I understood all of your problems, but that one is easy to fix:

    WWW FAQs: How do I remove the blue border around my image?
    • [ 1 ] Thanks
    • [1] reply
    • I think that should do it, as long as it works when the pic is linked too. Will run off and try it.

      The reason I was using *{border:0;} was because it was easy to overrule when I did want a border, but with tables I couldn't overrule it.

      Neat info on that page too. Sorted a bit out for me.

      That was a couple of fast answers. I'm starting to like this place
  • Hey Lloyd, reset sheets are great

    Use this, i crafted and placed all the nessasary and most common elements into the reset.

    * {margin:0px; padding:0px; border:0px}

    The * works as a reset Hope this helps.
  • You need the size and color too.
    1px solid colorname;

Next Topics on Trending Feed

  • 6

    I use that as part of my reset line at the start of each css file but it wipes out the border for any good old fashioned tables that I need to use. Putting this in the head right after the style sheet info doesn't work.