how do i do this? css question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mutt
    Too lazy to set a custom title
    • Sep 2002
    • 34431

    #1

    how do i do this? css question

    a img {
    border:none;}


    that's in the style sheet but there's ONE clickable image I want to have a border - nothing i've tried works.

    thanks
    I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
  • Amputate Your Head
    There can be only one
    • Aug 2001
    • 39075

    #2
    Originally posted by Mutt
    a img {
    border:none;}


    that's in the style sheet but there's ONE clickable image I want to have a border - nothing i've tried works.

    thanks
    If it's just one pic, why not simply throw a graphical border on that one?
    a img {
    border:none;}
    ...will effectively cancel out all image css borders. (as you know).
    SIG TOO BIG

    Comment

    • xerex
      Confirmed User
      • Jan 2005
      • 751

      #3
      try this:

      img.border {border:1px solid #000;}

      <a href="#"><img src="image.jpg" class="border" /></a>
      336487572

      Comment

      • Mutt
        Too lazy to set a custom title
        • Sep 2002
        • 34431

        #4
        Originally posted by Amputate Your Head
        If it's just one pic, why not simply throw a graphical border on that one?

        ...will effectively cancel out all image css borders. (as you know).
        i thought of that but there's over a hundred photos i've already watermarked - i know it's only 10 minutes work to do them all over with a graphical border but i wanted to see if somebody has a CSS solution first before redoing the photos.
        I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          set a class for the ones you want with a border
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          • Amputate Your Head
            There can be only one
            • Aug 2001
            • 39075

            #6
            Originally posted by Mutt
            i thought of that but there's over a hundred photos i've already watermarked - i know it's only 10 minutes work to do them all over with a graphical border but i wanted to see if somebody has a CSS solution first before redoing the photos.
            ahhhh, i thought you only needed one pic with a border. my bad.
            SIG TOO BIG

            Comment

            • Vendzilla
              Biker Gnome
              • Mar 2004
              • 23200

              #7
              Originally posted by fris
              set a class for the ones you want with a border
              thats the way I would go
              Carbon is not the problem, it makes up 0.041% of our atmosphere , 95% of that is from Volcanos and decomposing plants and stuff. So people in the US are responsible for 13% of the carbon in the atmosphere which 95% is not from Humans, like cars and trucks and stuff and they want to spend trillions to fix it while Solar Panel plants are powered by coal plants
              think about that

              Comment

              • Mutt
                Too lazy to set a custom title
                • Sep 2002
                • 34431

                #8
                Originally posted by fris
                set a class for the ones you want with a border
                i did and it didn't work

                i went

                a pic{
                border: 3px;
                color: #FFF;
                }

                then class="pic" on the image

                didn't work, did i do it wrong?


                i fixed it by taking out the a img {border: none} - and put border: none on the id's that needed them and that let me add my border style to the image i wanted to have the border on.
                I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!

                Comment

                • Mutt
                  Too lazy to set a custom title
                  • Sep 2002
                  • 34431

                  #9
                  Originally posted by Mutt
                  i did and it didn't work

                  i went

                  a pic{
                  border: 3px;
                  color: #FFF;
                  }

                  then class="pic" on the image

                  didn't work, did i do it wrong?


                  i fixed it by taking out the a img {border: none} - and put border: none on the id's that needed them and that let me add my border style to the image i wanted to have the border on.
                  oh, i should have done

                  a .pic
                  I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!

                  Comment

                  • Why
                    MFBA
                    • Mar 2003
                    • 7230

                    #10
                    img.pic
                    a .pic
                    a img.pic
                    a.pic img

                    should all work. depending on where you set your class. i would set the class in the image, and use the first line.

                    Comment

                    • firequartz
                      Confirmed User
                      • Jan 2005
                      • 125

                      #11
                      You may want to make the style name more self-explanatory .. such as

                      .picnoborder

                      to differentiate from the ones that do.
                      -fQ-
                      modelswelove.com
                      foxynetbabes.com
                      xwebgirls.com
                      adultvideolocker.com
                      bunnyhoneys.com
                      penthousehoneys.com

                      Comment

                      Working...