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

problems with margin-top using DIV.

 
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 -> General
View previous topic :: View next topic  
Author Message
marcelodelta
Smarty Rookie


Joined: 04 Apr 2009
Posts: 8

PostPosted: Sat Apr 04, 2009 4:16 pm    Post subject: problems with margin-top using DIV. Reply with quote

When you add a DIV with margin-top: 0; the Smarty not compile correctly. Always leave the empty space above and it responds to the command of the style. margin-top: 0;

could be bug?

someone could help me?

tks,
Marcelo Wanderley.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sat Apr 04, 2009 5:00 pm    Post subject: Reply with quote

Smarty just outputs what is in the template. View the browser source and figure out whats wrong.
Back to top
View user's profile Send private message Visit poster's website
marcelodelta
Smarty Rookie


Joined: 04 Apr 2009
Posts: 8

PostPosted: Sat Apr 04, 2009 7:21 pm    Post subject: Reply with quote

Already noticed the possible errors.

An example: When you open the page using Smarty, the problem ocurrs ...

When we opened the same page without using Smarty, the error does not occur.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sat Apr 04, 2009 9:09 pm    Post subject: Reply with quote

So figure out the syntax difference, then figure out what's different in the template.
Back to top
View user's profile Send private message Visit poster's website
marcelodelta
Smarty Rookie


Joined: 04 Apr 2009
Posts: 8

PostPosted: Sat Apr 04, 2009 9:42 pm    Post subject: Reply with quote

body {
background-image: url('images/back_01.jpg');
background-repeat: repeat-x;
margin-top: 0;
margin-left: 0;
}
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sat Apr 04, 2009 10:54 pm    Post subject: Reply with quote

that doesn't mean anything. take the output that works then make it look the same in the smarty output.
Back to top
View user's profile Send private message Visit poster's website
maldrack
Smarty Rookie


Joined: 25 Apr 2011
Posts: 5

PostPosted: Mon Apr 25, 2011 2:43 pm    Post subject: same problem Reply with quote

Hi,

I got the very same problem.
If I change de extension of my file for .htm and try to open it without Smarty, the display is good, but under smarty theres always a margin between my first block object and the browser.

If I add in my css file: display: inline;
The first <div> object will reach the top, I mean, inline object is diplayed correctly.
But any block type cause a margin at the top.

There's a bugs. If anybody have a solution, please reply this post cause I don't find any solution yet.

Thanks
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 -> General 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