|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
marcelodelta Smarty Rookie
Joined: 04 Apr 2009 Posts: 8
|
Posted: Sat Apr 04, 2009 4:16 pm Post subject: problems with margin-top using DIV. |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sat Apr 04, 2009 5:00 pm Post subject: |
|
|
Smarty just outputs what is in the template. View the browser source and figure out whats wrong. |
|
Back to top |
|
marcelodelta Smarty Rookie
Joined: 04 Apr 2009 Posts: 8
|
Posted: Sat Apr 04, 2009 7:21 pm Post subject: |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sat Apr 04, 2009 9:09 pm Post subject: |
|
|
So figure out the syntax difference, then figure out what's different in the template. |
|
Back to top |
|
marcelodelta Smarty Rookie
Joined: 04 Apr 2009 Posts: 8
|
Posted: Sat Apr 04, 2009 9:42 pm Post subject: |
|
|
body {
background-image: url('images/back_01.jpg');
background-repeat: repeat-x;
margin-top: 0;
margin-left: 0;
} |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sat Apr 04, 2009 10:54 pm Post subject: |
|
|
that doesn't mean anything. take the output that works then make it look the same in the smarty output. |
|
Back to top |
|
maldrack Smarty Rookie
Joined: 25 Apr 2011 Posts: 5
|
Posted: Mon Apr 25, 2011 2:43 pm Post subject: same problem |
|
|
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 |
|
|
|
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
|