Page 1 of 1

template based on divs -

tag and indent does not work?

Posted: Tue Aug 07, 2007 10:49 am
by pajonkhfat
I have template based on div, validator compliant, but tags and indent function form editor does not show any effect on article display? That means that all div templates ignore p tags and indent function in article html code (that's what my developer said) or that is the template issue?

Re: template based on divs -

tag and indent does not work?

Posted: Tue Aug 07, 2007 10:57 am
by Jenny
All div templates do not ignore tags or html tags.

Are you meaning that when you put in content through the content editor in either the Joomla! admin back end or front end that your tags are being ignored?  Are you entering your content with tags using the html function built into the editor?  If you aren't then the regular editor will strip away any code when you save the item.  You have to use the html edit function to put in html or code in content items. 

Re: template based on divs -

tag and indent does not work?

Posted: Tue Aug 07, 2007 11:38 am
by pajonkhfat
Thanks for quick replay.
No matter matter how I put the tekst, via standard joomla editor or via html HTML source option, it looks still the same.
Example of the article:
tekst inside "p" tags, which should generate space before and after this tekst - does not work tekst without p tags - no space before, after tekst is ok.
Second line to show no space, also without p tags
Numbering onNumbering on 2Numbering on 3point 1point 2point 3
looks like this:

same issue with numbering, seems tags create no indent in article.

UPDATE: sorry wrong link.

Re: template based on divs -

tag and indent does not work?

Posted: Tue Aug 07, 2007 11:45 am
by Jenny
Your code is there in the content.

Code: Select all

<p>tekst inside "p" tags, which should generate space before and after this tekst - does not work </p>
tekst without p tags - no space before, after tekst is ok.<br />
Second line to show no space, also without p tags<br />
<ol>
<li>Numbering on</li>
<li>Numbering on 2</li>
<li>Numbering on 3</li>
</ol>
<ul>
<li>point 1</li>
<li>point 2</li>
<li>point 3</li>
</ul>
Now how have you set the css to display , , , and elements?

Re: template based on divs -

tag and indent does not work?

Posted: Tue Aug 07, 2007 11:47 am
by Jenny
Also if you want it to display different in the content than how those elements are styled overall in the site, you have to surround the content in a class so you can style it individually.

Re: template based on divs -

tag and indent does not work?

Posted: Thu Aug 09, 2007 5:09 pm
by pajonkhfat
The problem is that css margins definition causes wrong tag display:

* {
margin-top : 0;
margin-right : 0;
margin-bottom : 0;
margin-left : 0;
}

But on the other hand this is the basis for all other content...  ???

Re: template based on divs -

tag and indent does not work?

Posted: Thu Aug 09, 2007 6:26 pm
by Jenny
Instead of using that, you might want to look into Global Whitespace Reset, which sets all margins, and the base for the most common elements.

http://leftjustified.net/journal/2004/1 ... -ws-reset/

Re: template based on divs -

tag and indent does not work?

Posted: Fri Aug 10, 2007 9:23 am
by pajonkhfat
MMMedia wrote: Instead of using that, you might want to look into Global Whitespace Reset, which sets all margins, and the base for the most common elements.

http://leftjustified.net/journal/2004/1 ... -ws-reset/
That's it!. Thank you very much for your help. Seems i should dig into the css after 5 years off the "programming" :)