C INLINE STYLE PROBLEM

by 5 replies
6

Code:
 


Code:
 



#website design #inline #problem #style
  • You have to put a space between "div" and "style"...
    • [1] reply
  • and use "background: url(./images/formbackground.png) no-repeat;" instead -> a shorthand method. i think the problem is because you have a quotation mark inside a quotation mark and it expects an equal sign before the quotation mark in url("") of style="", you can either remove the quotation mark in the url or replace it with a single quotation.. i hope this helps..
    • [1] reply
  • Hi, I think it would be a case of placing the div inside of a holding div and then giving a full style block
    Code:
    <div id="mydiv"><style type="text/css">#mydiv{float:left;width:250px;height:250px;border:1px solid #000000;background-image:url(../images/formbackground.png);background:repeat:no-repeat;}</style>*Content goes here*</div>
    Certainly this works local but I have not tried it live. Jim

Next Topics on Trending Feed

  • 6

    OK this is one of those things that drives me crazy because I can't find or see anything wrong with it so maybe it's one of those particulars I've never run into before and so I just don't know about. I've got this CSS /style that isn't working as I would expect. It works fine from the stylesheet. but absolutely will not work from an inline style. in other words this works just fine Code: .optin { float:left; width:250px; height:250px; border:1px solid #000; background-image:url("../images/formbackground.png"); background-repeat:no-repeat; } But this just simply will not work