ok i have a div with css styling using the class attribute works fine. it references a class within a separate css stylesheet linked to the file, and all is well.
now i want to change some of that information with ajax, so i need to take the code from the stylesheet and put in in the page itself. so i copy the code, and use the style attribute instead of class. makes sense to me, however i'm obviously the only one that makes sense to... it's all jacked up, not even close.
how do i fix this? why is it different using the exact some code?
here's my code using the class attribute...
css -
.leftEdge {background:#000000 url(whatever.gif) repeat-y left top}
html-
<div class="leftEdge">
...that works fine, why doesn't this....
no css stylesheet
html-
<div style="background:#000000 url(whatever.gif) repeat-y left top">
i even tried to label everything, using background-repeat and background-position... still a no go. please help



Reply With Quote


Bookmarks