apply border on image in a class.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • octoberfly
    New Member
    • May 2010
    • 2

    apply border on image in a class.

    my blog is http://octoberflyhasno wings.tabulas.c om

    I tried
    img{border: 10px #aeaeae}

    then ALL the images in the blog have border around it. including the usericons.

    I only want the image in the entries to be wrapped.
    so the class is entry. but i have no control over the image posted in every entries.

    <div class="entry">
    <!--ENTRY['DATA']-->
    <!--ENTRY['ATTACH']-->

    I don't even know what code to start with.

    I tried starting with
    .entry{...
    and I can't specify the image inside to be bordered around. If I do so, the whole box would be bordered.
    So can anyone please help? I'm really sorry if it's a simple problem.

    p/s: I never learn css before. I only read them from w3schools.com
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    In your main CSS page, do:
    .entry img{border..... .}

    Comment

    • octoberfly
      New Member
      • May 2010
      • 2

      #3
      THANK YOU SO MUCH! that little code solves it. thank you thank you.

      Comment

      Working...