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

Ne poluchaetsya ubrat otstup

 
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 -> Language: Russian
View previous topic :: View next topic  
Author Message
ixen
Smarty n00b


Joined: 05 Mar 2014
Posts: 1

PostPosted: Wed Mar 05, 2014 9:22 am    Post subject: Ne poluchaetsya ubrat otstup Reply with quote

Имеется шаблон смарти index.tpl. Шапка шаблона состоит из таблицы <table>...</table>. При просмотре сайта, сверху появляется отступ от верхнего края таблицы до панели браузера. Если тот же код сохранить просто в html и открыть в браузере, отступа нет, а если через шаблон смарти, отступ появляется. 2-й день мучаюсь, не могу убрать. Пробовал использовать {literal}...{/literal}, не помогло.
Прописан css стиль:
<style type="text/css">
body {
margin: 0px;
}
</style>

Как сделать чтобы шаблон смарти отображался как html без отступа сверху таблицы?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Jul 14, 2014 11:38 pm    Post subject: Reply with quote

Не использовать "?>" в PHP файлах, либо взять уже редактор, способный удалять лишние пробелы и переводы строк из текста.
Back to top
View user's profile Send private message
grandstudy
Smarty n00b


Joined: 04 Aug 2014
Posts: 1

PostPosted: Mon Aug 04, 2014 8:06 pm    Post subject: Reply with quote

Ochen xorochiy redaktor Notepad++ i vse problemy reshatsa samim soboy... Tolko nado znati kak s nim rabotaty.

Rekomenduy ispolzovaty etot redaktor. Idea
Back to top
View user's profile Send private message
ZeRoLeVeL
Smarty Rookie


Joined: 13 May 2014
Posts: 6

PostPosted: Thu Dec 11, 2014 3:21 pm    Post subject: Reply with quote

Notepad++ вещь хорошая, особенно если установить плагины нужные для определенной работы, но это когда у тебя 2, 3 странички. А вот когда используется какой либо фреймворк или цмс то лучше phpStorm я пока не встречал.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Dec 11, 2014 9:00 pm    Post subject: Reply with quote

Это не топик обсуждений "какой редактор лучше".
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 -> Language: Russian 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