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.

CSS Forum


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



Reply
Site not appearing correctly in FF
Old 09-08-2007, 05:45 PM Site not appearing correctly in FF
Skilled Talker

Posts: 58
Trades: 0
Hi,

I am trying to convert a page to XHTML Strict, and it all validates, but it doesn't appear correctly in Firefox. It works correctly in IE though, and works correctly when it is transitional, and not strict.

This is how it is appearing in FF: http://www.alphaberrydesign.com/imag...errystrict.jpg

And this is how it should appear: http://www.alphaberrydesign.com/imag...ictcorrect.jpg

I've messed around with the codes, but I can't see why it is doing this when it validates as strict, and why it is doing this when it's strict and not when it's transitional.

My CSS code:

Code:
/* CSS Document */

body  {background-color:#A1554B;
      font-family:Arial, Helvetica, sans-serif;
      color:#624318;
      font-size:12px;
      margin:0px;
      }
      
#page-container {width:790px;
                 margin:auto;
                 }

#header {margin:auto;
         width:790px;
         }
         
#title-top {width:790px;
            margin:auto;
              }
              
#contact-sidebara {width:175px;
                   float:left;
                   margin:0px 0px 0px 96px;
                   height:184px;
                   }
                   
#contact-sidebarb {width:175px;
                   float:right;
                   margin:0px 96px 0px 0px;
                   height:184px;
                   }                             
         
#contentcontainer-contact {background-image:url(images/berrymiddle.gif);
                           width:790px;
                           padding-top:20px;
                           }
                  
#content-contact {width:403px;
                  margin-right:175px;
                  padding-top:20px;
                  margin:0px 280px 0px 105px;
                  }          

#contentcontainer-faq {background-image:url(images/berrymiddle.gif); 
                       width:790px;
                       padding-top:20px;
                       height:735px;
                       margin:auto;
                       }
                       
#content-faq {width:450px;
              margin-right:122px;
              padding-top:20px;
              margin:0px 122px 0px 105px;
              }
              
#sidebar-faq {width:122px;
              float:right;
              margin:0px 96px 0px 0px;
              display: inline;
              }                                     

#container-index {background-image:url(images/berrymiddle.gif); 
                  width:790px;
                  }
              
#content-index {width:455px;
                margin-right:112px;
                padding-top:20px;
                margin:0px 122px 0px 105px;
                }
                
#sidebar-index {
                width:112px;
                float:right;
                margin:0px 96px 0px 0px;
                display: inline;
                }


#container-portfolio {background-image:url(images/berrymiddle.gif); 
                      width:790px;
                      }    
                
#content-portfolio {width:570px;
                    padding-top:20px;
                    margin-right:110px;
                    margin-left:110px;
                    }
                    
#container-price {background-image:url(images/berrymiddle.gif); 
                  width:790px;        
                  }    
                  
#content-price {width:570px;
                padding-top:20px;
                margin-left:110px;
                }                                            
                
#container-sevices {background-image:url(images/berrymiddle.gif); 
                  width:790px;        
                  }    
                  
#content-services {width:450px;
                   margin-right:122px;
                   padding-top:20px;
                   margin:0px 122px 0px 105px;
                   }
                
#sidebar-services {width:122px;
                  float:right;
                  margin:0px 96px 0px 0px;
                  display: inline;
                  }                                                    
                
#services-sidea {width:130px;
                 float:left;
                 }

#services-sideb {width:130px;
                 float:right;
                 }        
                 
#servicea1 {width:450px;
            margin:0px 122px 0px 105px;
            }                                          
                
#servicesa2 {width:130px;
             margin:0px 0px 0px 110px;
             }
                
#footer {margin:0px;
         }        
                    
h1 {padding:0px;
    margin:0px;
    }
    
h2 {margin:0px;
    padding:0px;
    }             

h3 {margin:0px;
    padding:0px;
    font-weight:bold;
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    }

.centeralign {text-align:center;
              }

img {border: none;}

.title-indexwidth {width:50px;
                   }

.table-indexwidth {width:435px;
                   }
                   
table.center {margin-left:auto; margin-right:auto;}            

.indextext-width {width:385px;
                  margin-left:60px;
                  }    
                  
.indexa-padding {padding-left:18px;
                 }
                 
.indexa1-padding {padding-left:25px;
                 }    
                 
.indexa2-padding {padding-left:15px;
                 }                                  
                 
.indexb-padding {padding-left:60px;
                 }                 
                                                          
.indexpadding {padding-left:25px;
               }

A:link{color:#DA8D83;text-decoration:none}
A:visited{color:#DA8D83;text-decoration:none}
A:active{color:#DA8D83;text-decoration:none}
A:hover{color:#000000;text-decoration:none}    


form {width:380px;
      margin:0px;
      padding:0px;
      margin:auto;
      font-family:Arial, Helvetica, sans-serif;
      color:#624318;
      }

form fieldset {border-color:#624318;
               border-width:1px;
               border-style:solid;
               padding-top:0px;
               padding-left:10px;
               padding-right:10px;
               padding-bottom:0px;
               margin:0px;
               }

textarea {overflow:auto;
          }
          
form label { 
    display: block;
    float: left; 
    width: 135px;
    margin: 5px 0 0 0;
    color:#624318;
}      

form legend {color:#624318;
             }

.padding-form {padding-top:10px;
               }
          
               
.sentpage {font-size:16px;
           color:#F3EBE2;
           text-align:center;
           font-weight:bold;
           font-weight:bolder;
           margin-top:40px;
           }
Any help is always appreciated! Thank you!
lilycup is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-09-2007, 08:29 AM Re: Site not appearing correctly in FF
Webmaster Talker

Posts: 626
Trades: 0
This is just a guess at this point but I'm betting it has something to do with the difference between IE and FF and how they use the margin/padding differently.

add:

* {
margin: 0;
padding: 0:
}

To the beginning of the css file and then take out all the padding:0px and margin:0px that you have.

You also might have to define a couple of elements with padding and margin after, but it looks like you have already done it for the most part.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 09-09-2007, 11:06 AM Re: Site not appearing correctly in FF
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Have you got the site up where we can see ALL the code, including your images ?

Just a word to the wise - if it 'looks right' in IE and not in FF, then IE is usually doing it WRONG. Better to make it work right in FF FIRST, then kick IE until it's right.
__________________
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
 
Old 09-09-2007, 12:18 PM Re: Site not appearing correctly in FF
Skilled Talker

Posts: 58
Trades: 0
Thank you for the responses!

Quote:
Originally Posted by LadynRed View Post
Have you got the site up where we can see ALL the code, including your images ?

Just a word to the wise - if it 'looks right' in IE and not in FF, then IE is usually doing it WRONG. Better to make it work right in FF FIRST, then kick IE until it's right.
Yes, the website is here: www.alphaberrydesign.com

And you're very right, it is best to make it work in FF first but I have no idea why it wouldn't be working.
lilycup is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Site not appearing correctly in FF
 

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 0.23025 seconds with 12 queries