Announcement

Collapse
No announcement yet.

Custom CSS not working :S

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom CSS not working :S

    Not sure if I'm missing something here...

    I've added the following to actinic.css

    Code:
    .product{
    	border:medium;
    	border-width:4px;
    	border-color:#77B3F2;
    }
    and altered the Standard Product Image Layout to:

    Code:
    <img src="ProductImageFileName" class="product" width="280" alt="ProductName" />
    but the border isn't being added :S I know I'm using the right layout as I altered the image width to 280 which took instant effect. Any ideas, have I missed something cruitial in my understanding of using custom css?

    Thanks for your time,
    Scott.
    Undergraduate in Product Design - Loughborough University

    #2
    Try: border: 4px solid #77B3F2;
    Peblaco

    Comment


      #3
      it worked thank you

      any ideas why my CSS didn't? it works for general HTML pages I code in dreamweaver

      thank you for your time,
      Scott
      Undergraduate in Product Design - Loughborough University

      Comment


        #4
        Because medium is a border-width property which you were also specifying as 4 pixels. By the way .product is already used, it's specified in the stylesheet as h3.product for a heading style. But you might want to check when naming your styles against the Actinic stylesheet in case you have any conflicts.
        Peblaco

        Comment


          #5
          Originally posted by peblaco
          medium is a border-width property which you were also specifying as 4 pixels
          Oh i see, I guess I should have been a bit more careful of what property to use!

          Originally posted by peblaco
          you might want to check when naming your styles against the Actinic stylesheet in case you have any conflicts.
          and that is a very good point I will keep that in mind

          Thank you again,
          Scott
          Undergraduate in Product Design - Loughborough University

          Comment


            #6
            Originally posted by peblaco
            it's specified in the stylesheet as h3.product for a heading style
            oh yeh and forgot to mention it did alter the heading style, so I renamed my style as productimage instead.

            Scott.
            Undergraduate in Product Design - Loughborough University

            Comment


              #7
              Originally posted by slawrence10
              renamed my style as productimage instead.
              As Actinic coders have an aversion to CamelCasing their classes I always add new styles in as productImage for example so you can guarantee there is no conflict with any of the existing.


              Bikster
              SellerDeck Designs and Responsive Themes

              Comment


                #8
                Originally posted by jont
                As Actinic coders have an aversion to CamelCasing their classes
                ok, humour me...
                CamelCasing?

                Tracey

                Comment


                  #9
                  Camels have humps along their backs ... so when the TextGoesUpAndDown to make it easier to read it looks like a camels back


                  Bikster
                  SellerDeck Designs and Responsive Themes

                  Comment


                    #10
                    oooh..ok
                    haha..wasn't anything nearly as technical as I expected LOL

                    Thanks
                    Tracey

                    Comment


                      #11
                      Originally posted by budgetbumps
                      oooh..ok
                      haha..wasn't anything nearly as technical as I expected LOL
                      You should know J by know - technical pah

                      Comment


                        #12
                        Originally posted by Darren B
                        You should know J by know - technical pah


                        mornin' btw Darren
                        don't tell me you've actually been WORKING this morning?
                        Tracey

                        Comment


                          #13
                          Originally posted by budgetbumps
                          don't tell me you've actually been WORKING this morning?
                          Morning to you miss bumps, and yes i have been working this morning, well interviewing if you can call it working

                          Comment


                            #14
                            Originally posted by Darren B
                            You should know J by know - technical pah
                            Yep - I am all for the easy life.


                            Bikster
                            SellerDeck Designs and Responsive Themes

                            Comment

                            Working...
                            X