I'm not entirely clear what you're asking here.
You have a style defined for div#Explanation and you have a div with the id
of Explanation - so the style will be applied to the div. I don't see where
jQuery comes into it all.

However, *if* what you really want is to apply all the properties of the
stated style directly to the div - so that the style itself is not required
to be present on the page in its own right - then...

$('#Explanation').css({position:'absolute', top:720, width:10, right: 0,
margin: '40px 0px 0px 0px'});

... but that's not clear from your question, so perhaps you could clarify?


Johny-4 wrote:
> 
> 
> Hi,
> I have style defined like this
> 
> div#Explanation{position:absolute; top:720px; width:10px;  right:
> 0px;margin:40px 0 0 0;}
> 
> and my HTML code
> 
> 
>  <div id="Explanation">
> <table border="1" cellpadding="0" cellspacing="0" width="100%">
>   <tr>
>     <td width="6%">*</td>
>     <td width="44%">Login <input type="text" id="id_Login"name="Login"
> size="30" value="" maxlength="50" /></td>
>     <td width="50%" rowspan="2">Popis</td>
>   </tr>
>   <tr>
>     <td width="6%">*</td>
>     <td width="44%">Password<input type="text"
> id="id_Password"name="Password" size="30" value="" maxlength="50" /></
> td>
>   </tr>
> </table>
> </div>
> 
> and I would like to add Explanation style to my <div id="Explanation">
> using jQuery.
> Is that possible?
> Thanks
> BL.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-jQuery-help--tf4555373s27240.html#a13008884
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to