#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    la
    Posts
    56
    Rep Power
    13

    relative bg url -- css


    im wondering why

    Code:
    <base href="http://myhost.com" />
    
    //further down
    //inside css:
    
    background-image: url("images/bg_tex.gif");
    does not work, yet

    Code:
    <base href="http://myhost.com" />
    
    //further down
    //inside css:
    
    background-image: url("http://myhost.comimages/bg_tex.gif");
    does work....

    -the reason I ask is because part of this site has ssl transactions and everypage that has the absolute url for this bg in it, pops up the 'some items are non-secure.. blah blah blah" dialog..

    which means every click in the secure portion has this alert box!

    thoroughly annoying...

    any insight is appreciated - as always

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    la
    Posts
    56
    Rep Power
    13
    ok i feel stupid now...

    putting the '/' in front of the path made it work...

    *ducks out quickly

IMN logo majestic logo threadwatch logo seochat tools logo