template based on divs - tag and indent does not work?
- pajonkhfat
- Joomla! Apprentice
- Posts: 46
- Joined: Sun Jul 29, 2007 11:26 am
- Location: Warszawa
template based on divs - tag and indent does not work?
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?
Last edited by pajonkhfat on Mon Aug 13, 2007 6:25 am, edited 1 time in total.
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: template based on divs - tag and indent does not work?
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.
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.
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
- pajonkhfat
- Joomla! Apprentice
- Posts: 46
- Joined: Sun Jul 29, 2007 11:26 am
- Location: Warszawa
Re: template based on divs - tag and indent does not work?
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:
same issue with numbering, seems tags create no indent in article.
UPDATE: sorry wrong link.
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:
looks like this: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
same issue with numbering, seems tags create no indent in article.
UPDATE: sorry wrong link.
Last edited by pajonkhfat on Sun Aug 12, 2007 5:53 pm, edited 1 time in total.
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: template based on divs - tag and indent does not work?
Your code is there in the content.
Now how have you set the css to display , , , and elements?
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>
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: template based on divs - tag and indent does not work?
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.
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
- pajonkhfat
- Joomla! Apprentice
- Posts: 46
- Joined: Sun Jul 29, 2007 11:26 am
- Location: Warszawa
Re: template based on divs - tag and indent does not work?
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...
* {
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...
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: template based on divs - tag and indent does not work?
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/
http://leftjustified.net/journal/2004/1 ... -ws-reset/
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
- pajonkhfat
- Joomla! Apprentice
- Posts: 46
- Joined: Sun Jul 29, 2007 11:26 am
- Location: Warszawa
Re: template based on divs - tag and indent does not work?
That's it!. Thank you very much for your help. Seems i should dig into the css after 5 years off the "programming"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/