SimplePortal
Support => English Support => Topic started by: amko_sa on January 17, 2011, 12:04:49 PM
-
Hi,
I have one question about my page loading in simple portal 2.3.3
I have activated simpleportal left side blocks on my forum. In my blocks I am put google adsense code and div tag center because I want to be ads in center. On every my blocks I use div tag center. After that when my page is loading for first time (when page is not in browser cache) I have left blocks protectedly for moment like this:
(http://img707.imageshack.us/img707/9794/example1i.jpg)
and after that block looks fine like this:
(http://img607.imageshack.us/img607/7941/example2.jpg)
How to make left blocks position absolute when page loading.
Sory about my English and I hope that you understood what I think 8)
-
Please give a link.
What I see, I understand (some times)
Thanks
-
This is link:
http://newsapp.info/index.php
The left blocks is for a moment over complete first page. Maybe this help I dont know how to describe this in english.
-
You have HTML errors -- please use the XHTML validator at the bottom of the page.
Most browsers can figure out a reasonable way to render a page when you have too many closing tags, but it does slow things down a bit.
-
I don't think that HTML errors cause this but I will try. Tnx
-
I'll be happy to take another look when the HTML errors are gone.
Thanks
-
I am fix most html errors. On first page I have only one error and I dont know how to fix it. On all other page I have two html errors.
I am decide to write here one code from my left blocks. I think that is my problem only <div align="center">. Code is correct but div center cause protectedly for a moment.
<div style="background-color:#f8f7f4;border: double 10px #e1ddd3;">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "*********";
/* 160x600, created ****** */
google_ad_slot = "*********";
google_ad_width = ***;
google_ad_height = ***;
//-->
</script>
When I write every left block with <div align="left"> problem is gone.
example:
<div style="background-color:#f8f7f4;border: double 10px #e1ddd3;">
<div align="left">
<script type="text/javascript"><!--
google_ad_client = "*********";
/* 160x600, created ****** */
google_ad_slot = "*********";
google_ad_width = ***;
google_ad_height = ***;
//-->
</script>
Is this only way to center custom content of my left blocks?
-
I think the page is rendered faster now that you fixed most of the errors.
I don't think SimplePortal is causing any problem. Do you?
You can fix the 2 remaining errors on the front page:
1) The checker is still upset about the empty <ul> in your <div id="submenu">
You can take out the empty list or remove the unused div.
2) XHTML requires <img /> and <br />, etc. so
<img src="http://sstatic1.histats.com/0.gif?1050449&101" alt="hit counter html code" border="0">
should be
<img src="http://sstatic1.histats.com/0.gif?1050449&101" alt="hit counter html code" border="0"/>
align=center is deprecated, because it can be done in style="", but this should still not be much of a problem.
<div align="center">
can also be handled in CSS
<div style="text-align: center">
-
I have now only one xhtml error, some bug from previous version of smf 2 (possibly in my new theme - Display template).
To be honest I thought it was a simple portal issue because content of block affects page loading but now I'm not sure maybe problem is my new theme.
This is not a real problem, it bothers me only how it looks visually.
I will try couple options and this variant: <div style="text-align: center">
Thank you AngelinaBelle :)
-
Glad to help.