Announcement

Collapse
No announcement yet.

Background Repeats in Act_Primary?

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

    Background Repeats in Act_Primary?

    Hi All,

    If I add this code to my template in Dreamweaver it works in Dreamweaver, it also previews in browser in DW but, if assign the template to the page in Actinic there is no sign of the image?


    <style type="text/css">
    <!--
    body {background-image: url(bground_08_purple.jpg); background-repeat: no-repeat;}
    /* Setting the body tag with a background-image attribute
    set to background-repeat: no-repeat; will only display the image one time
    (repeat is the default setting) */
    -->
    </style>

    (in the HEAD)

    I deleted NETQUOTEVAR:BGIMAGE NETQUOTEVAR:BGCOLOR from the Body tags as I have set bground colour manually and that works fine but no site of the image?

    Any ideas anyone please? Is there something conflicting, or should I add this to the actinic.css?

    Thanks

    B
    Organic Image - Award-winning Airbrush Kustom Art & Airbrush Classes

    #2
    <style type="text/css">
    <!--
    body {background: url('bground_08_purple.jpg') no-repeat;}
    -->
    </style>

    Comment


      #3
      Found the problem of colurse in the css file. Removed the BACKGROUNDIMAGE call and all fine.

      Beej
      Organic Image - Award-winning Airbrush Kustom Art & Airbrush Classes

      Comment


        #4
        Originally posted by leehack
        <style type="text/css">
        <!--
        body {background: url('bground_08_purple.jpg') no-repeat;}
        -->
        </style>
        Thanks bud, does is it best to add the quotes around the image name then?

        Beej
        Organic Image - Award-winning Airbrush Kustom Art & Airbrush Classes

        Comment


          #5
          Definitely, you seem to get erratic results if not IME. I think they help actinic to realise that is a file it needs to pickup and upload. You might find yours is working as the file was already there.

          Comment


            #6
            You should ideally also declare a colour into the shorthand version eg:

            body {
            background: #2E0854 url('bground_08_purple.jpg') no-repeat;
            }

            sampling the #2E0854 from your actual image.


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              Thanks fells, appreciated.

              Beej
              Organic Image - Award-winning Airbrush Kustom Art & Airbrush Classes

              Comment


                #8
                Originally posted by jont
                You should ideally also declare a colour into the shorthand version
                Why should you do this ideally, never heard or done that before myself? I'd have thought the ideal is to leave it out and have the shortest and easiest to manage code possible. The specs AFAIK say to leave any values empty and they will 'default', do you know something different? If you have a different background image per page or something that regularly changed, sampling a color would be a nightmare. Has your friend IE been playing you up lol?

                Comment


                  #9
                  Other than potential inheritance issues (possible in specifying a coloured background) on slower connections and IE6 particularly the image can load later so the color aids with initial displays.

                  Leaving IE6 in the bin future support for PNG with transparent alpha channels will allow for some stunning visual layouts with CSS and using a background colour with a transparent image (GIF or PNG) can allow greater flexibility in re-usability and possibly small image size.


                  Bikster
                  SellerDeck Designs and Responsive Themes

                  Comment


                    #10
                    A nice example to its power:

                    http://www.w3schools.com/css/tryit.a...css_background


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment


                      #11
                      LOL Jonty, too funny for me.

                      Comment


                        #12
                        Yep - I need to kiss more girls


                        Bikster
                        SellerDeck Designs and Responsive Themes

                        Comment

                        Working...
                        X