|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
Did you try it like this?
<div style="background-color:#000000; background-image:url(whatever.gif); background-repeat:repeat-y;"> -- Ken Ford Adobe Community Expert - Dreamweaver Fordwebs, LLC http://www.fordwebs.com "NickTheNameless" <webforumsuser@macromedia.com> wrote in message news:fpnbhm$6us$1@forums.macromedia.com... > 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 > > > |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
..oO(NickTheNameless)
>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? It shouldn't. > 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 Can you post a URL to a test case? In which browser does this happen? Micha |
|
![]() |
| Outils de la discussion | |
|
|