kobo1d
05-07-2010, 08:45 AM
... it is appended to the body by javascript (jquery) !!
well here is the line in my JS
config.$rightnavbutton=$('<div id="resizeme" class="resizeme"><img id="resizeme" class="resizeme" src="'+config.defaultbuttons.rightnav[0]+'"></div>').css({zIndex:50,position:'absolute',left:config.offsets.left+config.$gallery.get(0).offsetWidth+config.defaultbuttons.rightnav[1]+'px',top:config.offsets.top+config.defaultbuttons.rightnav[2]+'px',cursor:'hand',cursor:'pointer'}).attr({title:''}).appendTo('body')
as you can see i put the div and img into id and class (for testing purpose) but if i try to manipulate that stuff via my style.css, it isnt reacting....
this is a part of my stylesheet which should work in a normale case
#resizeme img {
width:40;
}
#resizeme img:hover {
width:47;
}
but it doesnt work... my css is ignored when ther page loads...
anybody got any idea plz and can point me to what is going on here..
THX :o
well here is the line in my JS
config.$rightnavbutton=$('<div id="resizeme" class="resizeme"><img id="resizeme" class="resizeme" src="'+config.defaultbuttons.rightnav[0]+'"></div>').css({zIndex:50,position:'absolute',left:config.offsets.left+config.$gallery.get(0).offsetWidth+config.defaultbuttons.rightnav[1]+'px',top:config.offsets.top+config.defaultbuttons.rightnav[2]+'px',cursor:'hand',cursor:'pointer'}).attr({title:''}).appendTo('body')
as you can see i put the div and img into id and class (for testing purpose) but if i try to manipulate that stuff via my style.css, it isnt reacting....
this is a part of my stylesheet which should work in a normale case
#resizeme img {
width:40;
}
#resizeme img:hover {
width:47;
}
but it doesnt work... my css is ignored when ther page loads...
anybody got any idea plz and can point me to what is going on here..
THX :o