Another problem with firefox [Solved, Thanks]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
carloscanto

Another problem with firefox [Solved, Thanks]

Post by carloscanto »

Hello, I've got a problem when a I see my web in firexfox. I've got an space in the left of the content. 
As you can se here.
Image

I'm triying to clean the code using a CSS validator but it give an error that I can't understand. It said that I have to close the head tag, and, in my template, is closed.


CMS Made Simple version 1.0.4, php 4.
I'm using dreamweaver (2004 version 7.0.1) for html and here is the web http://www.sofhispano.com

Here Is my template.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<!-- Change lang="en" to the language of your site -->

<head>

<title>{sitename} - {title}</title>
<!-- The sitename is changed in Site Admin/Global settings. {title} is the name of each page -->

{metadata}
<!-- Don't remove this! Metadata is entered in Site Admin/Global settings. -->

{stylesheet}
<!-- This is how all the stylesheets attached to this template are linked to -->

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
<!-- Relational links for interconnections between pages, good for accessibility and Search Engine Optmization -->


{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
<!-- The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Left sidebar + 1 column" -->
</head>

</__body>

<div id="pagewrapper">

    <!-- start accessibility skip links -->
    <ul class="accessibility">
      <li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
      <li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
    </ul>
    <!-- end accessibility skip links -->


    <hr class="accessibility" />
    <!-- Horizontal ruler that is hidden for visual browsers by CSS -->

  <!-- Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet  "For template: Left menu + 1 column" -->
   <div id="header">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="390" height="217"><h1>{cms_selflink dir="start" text="$sitename"}</h1></td>
    <td height="217"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="7"></td>
      </tr>
      <tr> 
        <td height="206" align="center" valign="middle" background="images/top.jpg" /> {global_content name='bannertop'}</td>
      </tr>
      <tr>
        <td height="3"></td>
      </tr>
    </table></td>
  </tr>
</table>   
   <hr class="accessibility" />
   </div>
   <!-- End Header -->
   

<table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="1183f2">
  <tr>
    <td>   <!-- Start Breadcrumbs -->
   <div class="breadcrumbs">
        {breadcrumbs starttext='Estas en' root='Home' delimiter='»'}
        <hr class="accessibility" />
   </div>
   <!-- End Breadcrumbs --></td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="220" rowspan="2" align="center" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%"  border="0" cellspacing="5" cellpadding="0">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><div align="center">{juega}</div></td>
              </tr>
              <tr>
                <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="11" height="11"><img src="images/estructura/esquina_01.gif" width="11" height="11" /></td>
                    <td height="11" background="images/estructura/top.gif"></td>
                    <td width="11" height="11"><img src="images/estructura/esquina_02.gif" width="11" height="11" /></td>
                  </tr>
                  <tr>
                    <td width="11" background="images/estructura/04.gif"></td>
                    <td><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                        <tr>
                          <td valign="top"><!-- Start Navigation -->
                              <div id="menu_vert">
                                <h2 class="accessibility">Navigation</h2>
                                <div align="left">{menu template='simple_navigation.tpl' collapse='1'} </div>
                              </div>
                              <!-- End Navigation --></td>
                        </tr>
                        <tr>
                          <td valign="top"> </td>
                        </tr>
                    </table></td>
                    <td width="11" background="images/estructura/02.gif"> </td>
                  </tr>
                  <tr>
                    <td width="11" height="11"><img src="images/estructura/esquina_04.gif" width="11" height="11" /></td>
                    <td height="11" background="images/estructura/03.gif"></td>
                    <td width="11" height="11"><img src="images/estructura/esquina_03.gif" width="11" height="11" /></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><table width="100%"  border="0" cellspacing="10" cellpadding="0">
                  <tr>
                    <td align="center" valign="middle">{casino}</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><table width="100%"  border="0" cellspacing="10" cellpadding="0">
                  <tr>
                    <td align="center" valign="middle">{secciones}</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td valign="top"><div align="center">
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="19"><div align="center">
                        <__script__ type="text/javascript"><!--
google_ad_client = "pub-1402723640295871";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "1183F2";
google_color_bg = "1183F2";
google_color_link = "FFFFFF";
google_color_text = "C3D9FF";
google_color_url = "FFFFFF";
//--></__script>
                        <__script__ type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
          </__script>
                    </div></td>
                    <td width="200" align="center"><div align="center"> {adsense} </div></td>
                  </tr>
              </table></td>
            </tr>
          </table>
          </div></td>
      </tr>
      <tr>
        <td valign="top"><table width="100%"  border="0" cellspacing="10" cellpadding="0">
          <tr>
            <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="11" height="11"><img src="images/estructura/esquina_01.gif" width="11" height="11" /></td>
                  <td height="11" background="images/estructura/top.gif"></td>
                  <td width="11" height="11"><img src="images/estructura/esquina_02.gif" width="11" height="11" /></td>
                </tr>
                <tr>
                  <td width="11" background="images/estructura/04.gif"></td>
                  <td><table width="100%"  border="0" cellpadding="0" cellspacing="2" bgcolor="#FFFFFF" >
                      <tr>
                        <td valign="top"><!-- Start Content Area -->
                            <div id="main">
                              <div style="float: right;">{print showbutton=true script=true}</div>
                              {content} <br />
                              <!-- Start relational links -->
                              <div class="hr"></div>
                              <div class="right49">
                                <p>{anchor anchor='main' text='^ Top'}</p>
                              </div>
                              <div class="left49">
                                <p>{cms_selflink dir="previous" label="Previous page: "} <br />
                        {cms_selflink dir="next"}</p>
                              </div>
                              <!-- The label parameter doesn't need to be there if you're using English, but is here to show how it's used if you don't want the English text "Previous page" -->
                              <!-- End relational links -->
                              <hr class="accessibility" />
                            </div>
                            <!-- End Content Area --></td>
                      </tr>
                  </table></td>
                  <td width="11" background="images/estructura/02.gif"> </td>
                </tr>
                <tr>
                  <td width="11" height="11"><img src="images/estructura/esquina_04.gif" width="11" height="11" /></td>
                  <td height="11" background="images/estructura/03.gif"></td>
                  <td width="11" height="11"><img src="images/estructura/esquina_03.gif" width="11" height="11" /></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td> </td>
  </tr>
</table>

 <!-- Start Footer. Edit the footer in the Global Content Block called "footer" -->
   <div id="footer">
      {global_content name='footer'}
   </div>   
   <!-- End Footer  -->


</div><!-- end pagewrapper -->
<__body>
</__html>
Thanks.
Last edited by carloscanto on Wed Mar 21, 2007 1:43 pm, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Another problem with firefox

Post by KO »

This page gives lot's of warnings. You have doctype in your template as xhtml 1.0 but you probably create normal html 4.0 code with your dreamsteamer. checkout html validator for firefox. That's a good tool for those problems.
carloscanto

Re: Another problem with firefox

Post by carloscanto »

Hello, I try to use that. Clean the code but does not result.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Another problem with firefox

Post by KO »

When I look at your website it does not look clean in my firefox with hml validator:

line 12 column 106 - Warning: discarding unexpected
line 14 column 161 - Warning: discarding unexpected
line 15 column 277 - Warning: discarding unexpected
line 16 column 417 - Warning: discarding unexpected
line 17 column 42 - Warning: discarding unexpected
line 18 column 41 - Warning: discarding unexpected
line 19 column 45 - Warning: discarding unexpected
line 20 column 36 - Warning: discarding unexpected
line 22 column 1 - Warning: discarding unexpected
line 23 column 1 - Warning: discarding unexpected
line 25 column 1 - Warning: element not empty or not closed
line 86 column 7 - Warning: isn't allowed in elements
line 87 column 88 - Warning: isn't allowed in elements
line 100 column 1 - Warning: discarding unexpected
line 102 column 80 - Warning: unescaped & or unknown entity "&a_bid"
line 102 column 162 - Warning: unescaped & or unknown entity "&a_bid"
line 102 column 97 - Warning: element not empty or not closed
line 105 column 107 - Warning: unescaped & or unknown entity "&codigo_programa"
line 105 column 128 - Warning: unescaped & or unknown entity "&r_type"
line 105 column 139 - Warning: unescaped & or unknown entity "&r_id"
line 105 column 153 - Warning: unescaped & or unknown entity "&a_aid"
line 105 column 168 - Warning: unescaped & or unknown entity "&a_bid"
line 105 column 242 - Warning: element not empty or not closed
line 106 column 80 - Warning: unescaped & or unknown entity "&a_bid"
line 106 column 15 - Warning: element not empty or not closed
line 109 column 1 - Warning: replacing by
line 109 column 1 - Warning: inserting implicit
line 109 column 1 - Warning: element not empty or not closed
line 114 column 13 - Warning: discarding unexpected
line 115 column 3 - Warning: discarding unexpected
line 116 column 1 - Warning: discarding unexpected
line 127 column 1 - Warning: element not empty or not closed
line 153 column 87 - Warning: element not empty or not closed
line 161 column 28 - Warning: element not empty or not closed
line 164 column 28 - Warning: element not empty or not closed
line 250 column 28 - Warning: element not empty or not closed
line 253 column 28 - Warning: element not empty or not closed
line 263 column 1 - Warning: isn't allowed in elements
line 272 column 71 - Warning: unescaped & or unknown entity "&a_bid"
line 272 column 153 - Warning: unescaped & or unknown entity "&a_bid"
line 272 column 88 - Warning: element not empty or not closed
line 286 column 21 - Warning: element not empty or not closed
line 356 column 28 - Warning: element not empty or not closed
line 360 column 28 - Warning: element not empty or not closed
line 379 column 57 - Warning: missing before
line 443 column 53 - Warning: missing before
line 444 column 6 - Warning: inserting implicit
line 453 column 1 - Warning: discarding unexpected
line 462 column 35 - Warning: discarding unexpected
line 473 column 57 - Warning: missing before
line 476 column 9 - Warning: element not empty or not closed
line 479 column 1 - Warning: discarding unexpected
line 545 column 100 - Warning: ' element not empty or not closed
line 548 column 337 - Warning: element not empty or not closed
line 548 column 510 - Warning: element not empty or not closed
line 548 column 684 - Warning: element not empty or not closed
line 548 column 854 - Warning: element not empty or not closed
line 548 column 1004 - Warning: element not empty or not closed
line 548 column 1158 - Warning: element not empty or not closed
line 548 column 1308 - Warning: element not empty or not closed
line 548 column 1482 - Warning: element not empty or not closed
line 548 column 1636 - Warning: element not empty or not closed
line 548 column 1789 - Warning: element not empty or not closed
line 548 column 1793 - Warning: element not empty or not closed
line 542 column 53 - Warning: missing before
line 548 column 1958 - Warning: discarding unexpected
line 548 column 1965 - Warning: replacing by
line 548 column 1965 - Warning: inserting implicit
line 548 column 1965 - Warning: element not empty or not closed
line 560 column 23 - Warning: missing before
line 562 column 1 - Warning: inserting implicit
line 562 column 1 - Warning: missing before
line 563 column 5 - Warning: inserting implicit
line 563 column 5 - Warning: missing before
line 565 column 5 - Warning: inserting implicit
line 608 column 6 - Warning: missing before
line 608 column 18 - Warning: discarding unexpected
line 608 column 26 - Warning: discarding unexpected
line 611 column 9 - Warning: element not empty or not closed
line 619 column 4 - Warning: element not empty or not closed
line 624 column 1 - Warning: element not empty or not closed
line 633 column 28 - Warning: element not empty or not closed
line 636 column 28 - Warning: element not empty or not closed
line 679 column 87 - Warning: element not empty or not closed
line 680 column 81 - Warning: element not empty or not closed
line 681 column 79 - Warning: element not empty or not closed
line 682 column 83 - Warning: element not empty or not closed
line 683 column 87 - Warning: element not empty or not closed
line 684 column 81 - Warning: element not empty or not closed
line 689 column 120 - Warning: attribute name "_fcksavedurl" (value="http://www.comoserwebmaster.com") is invalid
line 691 column 66 - Warning: element not empty or not closed
line 692 column 34 - Warning: attribute name "_fcksavedurl" (value="http://www.cmsmadesimple.org") is invalid
line 87 column 9 - Warning: proprietary attribute "background"
line 106 column 15 - Warning: lacks "alt" attribute
line 153 column 87 - Warning: lacks "alt" attribute
line 161 column 28 - Warning: lacks "alt" attribute
line 163 column 1 - Warning: proprietary attribute "background"
line 164 column 28 - Warning: lacks "alt" attribute
line 168 column 1 - Warning: proprietary attribute "background"
line 246 column 1 - Warning: proprietary attribute "background"
line 250 column 28 - Warning: lacks "alt" attribute
line 252 column 1 - Warning: proprietary attribute "background"
line 253 column 28 - Warning: lacks "alt" attribute
line 286 column 21 - Warning: lacks "alt" attribute
line 356 column 28 - Warning: lacks "alt" attribute
line 359 column 1 - Warning: proprietary attribute "background"
line 360 column 28 - Warning: lacks "alt" attribute
line 364 column 1 - Warning: proprietary attribute "background"
line 476 column 9 - Warning: lacks "alt" attribute
line 548 column 1856 - Warning: proprietary attribute "name"
line 629 column 1 - Warning: proprietary attribute "background"
line 633 column 28 - Warning: lacks "alt" attribute
line 635 column 1 - Warning: proprietary attribute "background"
line 636 column 28 - Warning: lacks "alt" attribute
line 655 column 7 - Warning: proprietary attribute "background"
line 87 column 88 - Warning: trimming empty
line 391 column 9 - Warning: trimming empty
line 408 column 9 - Warning: trimming empty
line 409 column 4 - Warning: trimming empty
line 409 column 1 - Warning: trimming empty
line 426 column 9 - Warning: trimming empty
line 443 column 9 - Warning: trimming empty
line 443 column 53 - Warning: trimming empty
line 473 column 57 - Warning: trimming empty
line 562 column 1 - Warning: trimming empty
line 608 column 6 - Warning: trimming empty

0 errors / 127 warnings

I would first check out those problems as it could be something related to those warnings.
Also see that youe

Code: Select all

<__html>
tag is before

Code: Select all

</head>
That's not where it should be.

By The way: those images on your website are beautiful. Who is the artist for them?
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Another problem with firefox

Post by kermit »

the original css was designed for a css-driven (i.e. NO TABLES) layout and has a large margin-left on the main div to accommodate the side bar that you went and stuck in layout tables... :'(

somewhere around line 123 of the stylesheet 'Layout: Left sidebar + 1 column'.....

div#main {
  margin-left: 29%; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
  margin-right: 2%; /* and some air on the right */
}

change to:

div#main {
  margin-left: 0;
  margin-right: 2%; /* and some air on the right */
}



screenshot: please notice the maze of nested tables illustrated in the webdev toolbar above the page and the element information on the left... can make things like this more difficult to troubleshoot than necessary. you'll also see the correction to the css made in the bottom window and its effect on the layout.

[gelöscht durch Administrator]
Last edited by kermit on Wed Mar 21, 2007 5:18 am, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
carloscanto

Re: Another problem with firefox

Post by carloscanto »

somewhere around line 123 of the stylesheet 'Layout: Left sidebar + 1 column'.....
That solve my problem, THANK YOU VERY MUCH!  ;D

I tried to change it before post here, but nothing changed. (maybe cause I used a bigger value instead 0  ::) )

Thanks to all that answer me  ;)
When I look at your website it does not look clean in my firefox with hml validator:
I did left the old code (not the new clean) cause didn't work.
By The way: those images on your website are beautiful. Who is the artist for them?
Are from the oringial page o Scions of Fate, my web is only the spanish community.
the original css was designed for a css-driven (i.e. NO TABLES) layout and has a large margin-left on the main div to accommodate the side bar that you went and stuck in layout tables...
 

Sorry I don't know how to use CSS in that way  :P
Locked

Return to “Layout and Design (CSS & HTML)”