Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Chrome to firefox to ie?
Old 05-27-2009, 08:14 PM Chrome to firefox to ie?
Junior Talker

Posts: 2
Name: Josh
Trades: 0
Sorry, I know I am new here and don't have any posts... but I have an issue that I can't seem to solve..

I am a novice html maker (I use dreamweaver) and my webpage looks good in chrome but bad in ie and firefox..

it is 2 big, ill post the code i have atm..

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css"> 
<!-- 
body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    background-image: url(Pictures/bgproto.jpg);
}

/* Tips for Elastic layouts 
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.twoColElsLtHdr #container { 
    width: 46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
} 
.twoColElsLtHdr #header { 
    background: #DDDDDD; 
    padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
} 
.twoColElsLtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    text-align: center;
}

/* Tips for sidebar1:
1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule.
*/
.twoColElsLtHdr #sidebar1 {
    float: left;
    width: 12em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    font-size: 100%;
}
.twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
    margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    margin-right: 10px;
    font-size: 75%;
    font-weight: bold;
}

/* Tips for mainContent:
1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
*/
.twoColElsLtHdr #mainContent {
    margin: 0 1.5em 0 13em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
    font-size: 75
';
    font-size: 60%;
    text-align: left;
} 
.twoColElsLtHdr #footer { 
    padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    background:#DDDDDD;
} 
.twoColElsLtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    text-align: left;
}

/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
.Size {
    font-size: 75%;
    font-weight: bold;
}
.twoColElsLtHdr #container #mainContent p {
    font-size: larger;
    text-align: left;
    font-family: Georgia, "Times New Roman", Times, serif;
}
.twoColElsLtHdr #container #mainContent table tr td {
    font-weight: bold;
    font-size: 120%;
    text-align: center;
}
.twoColElsLtHdr #container #mainContent table {
    text-align: center;
}
.twoColElsLtHdr #container #mainContent table {
    text-align: center;
}
.twoColElsLtHdr #container #mainContent h1 {
    font-style: italic;
    text-align: center;
}
.twoColElsLtHdr #container #mainContent table {
    text-align: left;
}
.twoColElsLtHdr #container #mainContent table {
    text-align: left;
}
.twoColElsLtHdr #container #mainContent table {
    font-size: 20px;
}
.twoColElsLtHdr #container #mainContent table {
    font-size: 20pt;
}
.twoColElsLtHdr #container #mainContent table {
    font-size: 20px;
}
.twoColElsLtHdr #container #mainContent table {
    font-size: 20%;
}
.twoColElsLtHdr #container #mainContent table {
    font-size: 120px;
}
.twoColElsLtHdr #container #mainContent table {
    font-size: 120%;
}
--> 
</style><!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.twoColElsLtHdr #sidebar1 { padding-top: 30px; }
.twoColElsLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]--></head>

<body class="twoColElsLtHdr">

<div id="container">
  <div id="header">
    <h1><a href="Index.html"><img src="Pictures/Homepage.png" alt="r4nd0m" width="436" height="57" border="0" /></a></h1>
    <br />
    <table width="681" height="43" border="0.5" align="center"> 
      <tr> 
        <td width="71"><a href="Index.html"><img src="Pictures/Homebutton.png" alt="Homebutton" name="home" width="51" height="24" border="0" id="home" onmouseover="MM_swapImage('home','','Pictures/homebutton2.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> 
       <hr /> <td width="77"><a href="ActionPage.html"><img src="Pictures/Actionbutton.png" alt="Action" name="action" width="51" height="26" border="0" id="action" onmouseover="MM_swapImage('action','','Pictures/Actionbutton2.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> 
        <td width="78"><img src="Pictures/sportsbutton.png" alt="Sportsbutton" name="sports" width="50" height="29" id="Image1" onmouseover="MM_swapImage('sports','','Pictures/sportsbutton2.png',1)" onmouseout="MM_swapImgRestore()" /></td> 
        <td width="75"><img src="Pictures/Puzzlebutton.png" alt="puzzlesbutton" name="puzzles" width="58" height="23" id="Image2" onmouseover="MM_swapImage('puzzles','','Pictures/puzzlesbutton2.png',1)" onmouseout="MM_swapImgRestore()" /></td> 
        <td width="82"><p><img src="Pictures/Classicsbutton.png" alt="classicsbutton" name="classics" width="64" height="24" id="classics" onmouseover="MM_swapImage('classics','','Pictures/classicsbutton2.png',1)" onmouseout="MM_swapImgRestore()" /></p> 
        </td> 
        <td width="72"><img src="Pictures/Strategybutton.png" alt="strategybutton" name="strategy" width="62" height="26" id="strategy" onmouseover="MM_swapImage('strategy','','Pictures/strategybutton2.png',1)" onmouseout="MM_swapImgRestore()" /></td> 
        <td width="81"><img src="Pictures/Adventurebutton.png" alt="adventurebutton" name="adventure" width="73" height="24" id="adventure" onmouseover="MM_swapImage('adventure','','Pictures/adventurebutton2.png',1)" onmouseout="MM_swapImgRestore()" /></td> 
        <td width="111"><img src="Pictures/reviewsbutton.png" alt="reviewsbutton" name="review" width="92" height="32" id="review" onmouseover="MM_swapImage('review','','Pictures/reviewbutton2.png',1)" onmouseout="MM_swapImgRestore()" /></td> 
      </tr> 
    </table>
  <!-- end #header --></div>
  <div id="sidebar1">
    <h3>Action Games:</h3>
    <ul>
      <li class="Size"> The Heist </li>
      <li class="Size">Parking Perfection 4</li>
      <li class="Size">Double Wire</li>
      <li class="Size">Electricman 2 HS</li>
      <li class="Size">Motorush</li>
      <li class="Size">More coming soon!</li>
    </ul>
  </div>
  <div id="mainContent">
    <h1>R4nd0m Games- Just play</h1>
    <p><img src="Pictures/indenthack.png" width="29" height="9" />In an action game, you normally  control an item or person that will be the main avatar in the game. You must  later get through levels, collect the objects, fight enemies, and avoid  trouble. Most of the time towards the end there is a hard level with a hard boss or  a hard driving level. If you run out of lives, it is GAME OVER, but if you get  past the last level you win and get to see a cut scene or the credits. Many  action games have no ending but instead have an unlimited mode or just never  end. </p>
<p>&nbsp;</p>
    <p>&nbsp;</p>
    <table width="527" height="181" border="1">
      <tr>
        <td width="176" align="center">The Heist</td>
        <td width="159">Parking Perfection 4</td>
        <td width="170">Double wire</td>
      </tr>
      <tr>
        <td height="105"><a href="Theheist.html"><img src="Pictures/theheist.png" alt="theheist" width="117" height="85" border="0" /></a></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="47" align="left">Get back to the safe house, with the stolen money. Get paid, upgrade your car and hire new teammates.</td>
        <td valign="top">Park the car in the parking spot watch out for the cones and other cars.</td>
        <td valign="top">Sling your way across the bricks in a spiderman related game.</td>
      </tr>
    </table>
<p>&nbsp;</p>
<table width="527" height="181" border="1">
  <tr>
    <td width="176" align="center">The Heist</td>
    <td width="159">Parking Perfection 4</td>
    <td width="170">Double wire</td>
  </tr>
  <tr>
    <td height="105">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="47" align="left">Get back to the safe house, with the stolen money. Get paid, upgrade your car and hire new teammates.</td>
    <td valign="top">Park the car in the parking spot watch out for the cones and other cars.</td>
    <td valign="top">Sling your way across the bricks in a spiderman related game.</td>
  </tr>
</table>
<p><br />
</p>
    <!-- end #mainContent --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
   <div id="footer">
    <p>Footer</p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
r4nd0m is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-28-2009, 12:59 PM Re: Chrome to firefox to ie?
Junior Talker

Posts: 2
Name: Josh
Trades: 0
Are bumps allowed?

if not then sorry ill delete
r4nd0m is offline
Reply With Quote
View Public Profile
 
Old 05-28-2009, 02:25 PM Re: Chrome to firefox to ie?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I copied your code and pasted into dreamweaver in code view. The first thing I noticed was that the color coding looked off. I found that you have a single quote mark ( ' ) following the font-size declaration for ".twoColElsLtHdr #mainContent". That was on line 72 for me. It is a small thing, but could be causing you trouble.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-03-2009, 04:54 AM Re: Chrome to firefox to ie?
Average Talker

Posts: 16
Name: Chase Owen
Location: los angeles
Trades: 0
are you still having this problem? angele is right, it's a tad little thing but it could be causing it
chaser_miser is offline
Reply With Quote
View Public Profile
 
Old 07-03-2009, 02:44 PM Re: Chrome to firefox to ie?
Novice Talker

Posts: 7
Name: Amy Connor
Location: New York, New York
Trades: 0
angele is correct. This should fix the problem. Also, you have <hr> within <tr> tag.

One more thing, HTML4 is not A language you should use with XML.
I am referring to XML style closing syntax for an empty element like <br /> or <img>.

Peace!
__________________
"Those who deny freedom to others deserve it not for themselves"
"Look for
Please login or register to view this content. Registration is FREE
or
Please login or register to view this content. Registration is FREE
in divorce courts - hey, you never know."
amyconnor is offline
Reply With Quote
View Public Profile Visit amyconnor's homepage!
 
Old 07-03-2009, 04:56 PM Re: Chrome to firefox to ie?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
HTML4 is not A language you should use with XML.
Why ? Besides the DOCTYPE listed is XHTML, not HTML 4.

Besides that, you're responding a thread that's more than a month old!!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Chrome to firefox to ie?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.54155 seconds with 12 queries