template based on divs -

tag and indent does not work?

Locked
User avatar
pajonkhfat
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Sun Jul 29, 2007 11:26 am
Location: Warszawa

template based on divs -

tag and indent does not work?

Post by pajonkhfat » Tue Aug 07, 2007 10:49 am

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.

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: template based on divs -

tag and indent does not work?

Post by Jenny » Tue Aug 07, 2007 10:57 am

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. 
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com

User avatar
pajonkhfat
Joomla! Apprentice
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?

Post by pajonkhfat » Tue Aug 07, 2007 11:38 am

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.
Last edited by pajonkhfat on Sun Aug 12, 2007 5:53 pm, edited 1 time in total.

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: template based on divs -

tag and indent does not work?

Post by Jenny » Tue Aug 07, 2007 11:45 am

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?
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: template based on divs -

tag and indent does not work?

Post by Jenny » Tue Aug 07, 2007 11:47 am

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

User avatar
pajonkhfat
Joomla! Apprentice
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?

Post by pajonkhfat » Thu Aug 09, 2007 5:09 pm

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...  ???

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: template based on divs -

tag and indent does not work?

Post by Jenny » Thu Aug 09, 2007 6:26 pm

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/
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com

User avatar
pajonkhfat
Joomla! Apprentice
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?

Post by pajonkhfat » Fri Aug 10, 2007 9:23 am

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" :)


Locked

Return to “Design and Accessibility - Archived”