Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Why is inline CSS added to images automatically?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
ltlinh
Smarty n00b


Joined: 07 Feb 2014
Posts: 1

PostPosted: Fri Feb 07, 2014 5:23 am    Post subject: Why is inline CSS added to images automatically? Reply with quote

Hi,

I have problem: inline CSS added to images automatically when using:{literal}
<script type='text/javascript'>
$(function() {
$('a[rel=tipsy]').tipsy({fade: true, gravity: 's'});
});
</script>
{/literal}

Debug with F12, I saw as below:
<img width="960" height="58" style="left: -228px; top: 0px; position: relative;" alt="Image" src="/common/images02/img02_e.gif">

And view source:
<img src="/common/images02/img02_e.gif" width="960" height="58" alt="Image" />

My question now is why is css style added to img automatically?

1. Clear cached, cookies, data ... , reload page
=> OK (did not add css style)
2. Clear cached, cookies, data ... again and reload page
=> css style added to img automatically => position of image is wrong.

I tried to delete {literal}{/literal}, display OK without css style.

Please help me out. Thanks in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP