-
AuthorPosts
-
cgc0202 Friend
cgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
July 7, 2008 at 5:20 am #258262<em>@questbg 64675 wrote:</em><blockquote>Interesting. Next time I get the problem, I’ll use DIV instead of P or BR :D</blockquote>
It depends Chris,
If it is a true paragraph, it is still better to use paragraph than <div></div>, the latter was used only to get around the problem related to <br />. It has yet to be established whether <div></div> will be accepted by all browser.
Could you please test the hypothesis outlined from #’s 5, 6 & 8? If it is confirmed by a number of people then it will solve a very common problem presented in the forum.
Cornelio
gaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
July 7, 2008 at 6:52 am #258271<blockquote>I did not know that it will accept and empty pair of <div></div>, i.e., no class definition. So, I assume it is a valid markup?</blockquote>
i don’t know if it is w3c validated, but with IE6 and with firefox it works great 🙂cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
July 7, 2008 at 9:40 am #258303<em>@gaygiorgia 64689 wrote:</em><blockquote>i don’t know if it is w3c validated, but with IE6 and with firefox it works great :)</blockquote>
Hi gaygiorgia,
That at least is good to know I wonder though how it affects the speed. I remember, I used to create static template layout, when I used quite a few nested <div class=””></div> or <div id=””></div>, it slowed down the site considerably.
Cornelio
gaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
July 7, 2008 at 10:11 am #258314perhaps because they had to charge id or class attributes.
i speak of <div> clean. BTW it is possible a mixed used of <p> <div>. Even if we follow html concept the right way is using <p>, now i prefer using <div> for my needings ^^cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
July 7, 2008 at 10:55 am #258324<em>@gaygiorgia 64739 wrote:</em><blockquote>perhaps because they had to charge id or class attributes.
i speak of <div> clean. BTW it is possible a mixed used of <p> <div>. Even if we follow html concept the right way is using <p>, now i prefer using <div> for my needings ^^</blockquote>Provided they are opened and closed properly, i.e., in a correct sequence, gaygiorgia.
For example:
This is correct:
<p>Text
<div>text</div>
</p>This is not correct
<p>Text
<div>text
</p></div>The last may still be forgiven by many browsers, just like I used not to close my <p> with </p>, and it still works. That was when I started using <br /><br /> instead of a <p> so that I do not have to worry about closing it. And, as it turned using <br /> became a great issue with Joomla.
If you did not show your html in this thread. I would not have stumbled into what is causing the problem. I accidentally opened one article, where I encountered the missing text, and that was when I saw the errant <br />
Stray mark ups is a problem for me awhile back, so
By the way, this issue is critical only in the Homepage and the Intro Page of each Section.
Any text in the full article may use the <br /> with no problem, at least I use <br /> quite a bit, especially when I do ordered and unordered listing. There using <p> is not good. However, I have not tested yet though how using <br /> will affect the appearance in the main body of the full article, if you place another photo there.
Cornelio
N.B.
I have not seen a <div> clean before; but you are the “hacker” Enrico, so you know better.:) I really do not know much about scripting. I just know a bit of the rules of html, since I use to do static pages layout.gaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
July 7, 2008 at 1:22 pm #258341…
i meant <p></p><div></div><p></p> or <div></div><p></p><div></div>.
i perfectly know what is correct and what isn’t. (in this case)gaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
July 7, 2008 at 1:24 pm #258342<em>@cgc0202 64749 wrote:</em><blockquote>
N.B.
I have not seen a <div> clean before; but you are the “hacker” Enrico, so you know better.:) I really do not know much about scripting. I just know a bit of the rules of html, since I use to do static pages layout.</blockquote>
lol i hack(ed) only old roms… nothing about js or php script ^^.
Then here we are speaking only of html 4.0+ :asd:cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
July 7, 2008 at 2:29 pm #258353<em>@gaygiorgia 64770 wrote:</em><blockquote>…
i meant <p></p><div></div><p></p> or <div></div><p></p><div></div>.
i perfectly know what is correct and what isn’t. (in this case)</blockquote>Sorry, it was not meant to insult you Enrico, I know you said you are a hacker, so that is pre-kindergarten stuff for you. But that is the only thing I could think of, unless as I have stated vacant <div> is not allowed at all. It seems to be accepted as you say, and what matters is:
It works.:)
Many of the hacks to make sites compatible with pesky Internet Explorer are workarounds themselves. So, this workaround that you found for Joomla idiosyncracy is no different.
Are we in html4 now? I am still trying to cope with the earlier version.
Cornelio
July 7, 2008 at 6:36 pm #258398Hi,
Yes, I’ve been having big problems with readmore changing the page layout, pictures wiping out text in JA frontpage and other editing issues.
could be compatablity with the editor. When I edit solely on a word pro, cut and paste, add the image and put in the readme; there seems to be less problems. If ever you hit enter or delete something when using the site editor it starts to seriously mess up.
The site editor I have been using is Tiny MCE. Haven’t tried installing another yet, but will and tell you what happens.
Key point is use the site editor as little as possible.
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
July 7, 2008 at 7:26 pm #258408<em>@hunyaga 64838 wrote:</em><blockquote>Hi,
Yes, I’ve been having big problems with readmore changing the page layout, pictures wiping out text in JA frontpage and other editing issues.
</blockquote>Hi hunyaga,
The thread here should practically solve the issue of disappearing text. Please read the “set of rules” that we established here that determines when text disappear or appear. If applied correctly, or observed correctly, you should no longer have this problem.
Check the grab images examples of gaygiorgia, to understand the rules better.
<em>@hunyaga 64838 wrote:</em><blockquote>
could be compatablity with the editor. When I edit solely on a word pro, cut and paste, add the image and put in the readme; there seems to be less problems. If ever you hit enter or delete something when using the site editor it starts to seriously mess up.
</blockquote>Actually, using Word, then cut and paste may be the source of your problem. Word is what is called a rich text document, and you could inadvertently introduce scripts that are altered when you manipulate it with the default site editor.
When you are having a problem, what you should do is what gaygorgia did — click the html option and find out if there are any stray <br /> or other markups. Remove them.
A <p> must always be closed by </p>, and that should be the only markup you have near the Intro part of the article. As we discussed here, a properly opened and closed paragraph is OK.
{mosimage}
<p> sentences here</p><em>@hunyaga 64838 wrote:</em><blockquote>
The site editor I have been using is Tiny MCE. Haven’t tried installing another yet, but will and tell you what happens.Key point is use the site editor as little as possible.</blockquote>
I use the default site editor exclusively. I do not encounter the problem anymore if there is no <br />. That is what we have established in this thread.
What is novel that was introduced by gaygiorgia here is the use of <div></div> pair to replace each <br />, and the problem goes away too.
Cornelio
questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
July 8, 2008 at 5:02 am #258497Hit the problem again this morning. Picture was pulling in the third paragraph of text, missing the first two completely.
I checked the HTML and, sure enough, I had two ‘BR’ in there. Took them out, fixed! So, we appear to have a temporarly fix for this bug.
Now, if ONLY I could get the image spacing to work!!!
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
July 8, 2008 at 6:33 am #258502<em>@questbg 64956 wrote:</em><blockquote>Hit the problem again this morning. Picture was pulling in the third paragraph of text, missing the first two completely.
I checked the HTML and, sure enough, I had two ‘BR’ in there. Took them out, fixed! So, we appear to have a temporarly fix for this bug.
Now, if ONLY I could get the image spacing to work!!!</blockquote>
I think it is the fix Chris, not just temporary. It is one of those serendipity kind of thing. And, I would not have found the solution if Enrico had not shown the HTML of his malfunctioning article. Then, I happen to have one malfunctioning one that I did not have a chance to check yet. And, I found a stray <br /> at the end of my Intro text.
Could you confirm also that you can use the <div>Text</div> to replace the <br />? I already did. So, if three people can reproduce it, this will be a good alternative to line break if there is ever a need for one.
Another Tutorial material.
Could you do a “Page Source”? Find out the CSS that surround the image and check the spacing there.
Cornelio
N.B.
I also found a solution to the problem you had about the articles not in the correct category.questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
July 8, 2008 at 7:17 am #258506Hi Cornelio
<em>@cgc0202 64963 wrote:</em><blockquote>
Could you confirm also that you can use the <div>Text</div> to replace the <br />? I already did. So, if three people can reproduce it, this will be a good alternative to line break if there is ever a need for one.
</blockquote>I actually replaced a BR with a DIV /DIV yesterday, it worked fine. I would say this is a good option too.
Another really strange instance of this earlier today. I was working in Joom!Fish, translating an article into Russian. When I published the article ALL the text disappeared, I only got the image. I took out the one BR I found in the HTML. This made no difference. In the end, I had to take out an Italic command!! Not that is strange, seems it doesn’t like Italic commands either!
<em>@cgc0202 64963 wrote:</em><blockquote>
Could you do a “Page Source”? Find out the CSS that surround the image and check the spacing there.
</blockquote>This is the entire problem! As you can see, here is the HTML as setup in the Article Editor and I have 14 pixels horizontal space applied to the image:
Unfortunately, when I publish the article, the horizontal space is gone and images touches text:
Which is reflected in the Page Source, viewed in Firefox:
So, my real question here is why, from 14 pixels in the Editor, it somehow changes back to zero pixels space in the browser?
This is not only bloody annoying, it makes the page look bad.
Any assistance in finding a fix for this one would be greatly appreciated!!
Cheers
Chriscgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
July 8, 2008 at 9:47 am #258535Hi Chris,
I have a very early appointment today, so I will read this when I get back tonight. The best is to do the page source, and see if you can find the nestted divs, as I suggested it in another thread. That may provide some answers.
The specifications is a mosimage stuff though, so I am not sure either.
Cornelio
gaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
July 8, 2008 at 12:52 pm #258558yeah i have same problem of chris.
but since there are many greater bugs, i overflied on this iussue….
see my other last 3d. -
AuthorPosts
This topic contains 35 replies, has 5 voices, and was last updated by cgc0202 16 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum