Afficher un message
Vieux 22/02/2008, 20h32   #1
NickTheNameless
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut applying code from stylesheet in style attribute

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



  Réponse avec citation
 
Page generated in 0,06339 seconds with 9 queries