Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Aug 2015
    Posts
    8
    Member #
    51534

    Chrome and Firefox behaving differently

    Hello, Chrome displays my humble code (very basic one) with everything where I expect it should be, but Firefox strangely displays stuff in the wrong place and sometimes doesn't even display at all. Stuff like borders, boxes, text etc.

    My HTML5/CSS code doesn't have anything complex, actually is very basic structural stuff.

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Upload your page somewhere and show us a link, please. It can be just about anything, but we'd need to see it.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Senior Member Vapr_Arts's Avatar
    Join Date
    Oct 2013
    Location
    California
    Posts
    1,930
    Member #
    37412
    Liked
    544 times
    You may need to use prefixes to certain css for different browser compatibility . Things like FlexBox require prefixes for older browsers.

    Like Game said, could be anything and the best way for us to help you is by seeing the code.


    Sent from my iPhone using Tapatalk

  5. #4
    Junior Member
    Join Date
    Aug 2015
    Posts
    8
    Member #
    51534
    The HML5 code:


    HTML Code:
    <!doctype html>
    
    <html lang="pt-br">
    <head><title>LOL</title>
    <link rel="stylesheet" href="bunitu.css">
    <meta charset="utf-8">
    </head>
    
    <body>
    
    <div id="bigwrapper">
    	<div id="topheader">
    	 <h1>Welcome!</h1>
    	</div>
    <div id="nav">
    	<ul>
    		<li>Home</li>
    		<li>Projetos</li>
    		<li>Contato</li>
    		<li>Sobre</li>
    	</ul>
    	</div>
    <section id="sessoes">
    		<article class="artigos"><header>
    			<hgroup>	
    			<h2>5 Motivos de seu website não estar recebendo visitantes</h2>
    			<h3>E é mais simples do que você imagina</h3>
    			</hgroup>
    			</header>
    		</article>
    		<article class="artigos"><header>
    			<hgroup>	
    			<h2>A verdade por trás do Google Adsense</h2>
    			<h3>Depois da revolução do crazyegg, ainda há mais por vir</h3>
    			</hgroup>
    			</header>
    		</article>
    	</section>
    	</div>
    
      
    </body>
    
    </html>

    The CSS code:

    Code:
    body {
    	width: 100%;
    	}
    	
    #bigwrapper {
    width: 1000px;
    border: 1px solid black;
    margin: 15px auto;
    }
    
    
    #topheader {
    height: 80px;
    background-color: #4DB84D;
    padding:12px;
    }
    
    #topheader h1 {
    font-family:Tahoma;
    }
    
    #nav {
    	border-bottom: 1.5px solid black;
    	border-top: 1px solid black;
    	}
    
    #nav li{
    font-family:Tahoma;
    display: inline-block;
    padding: 0px 10px;
    list-style: none;
    }
    
    #nav ul {
    	margin-left: -33px;
    }
    
    #sessoes{
    	float:left;
    	width: 660px;
    	margin: 20px 20px 20px;
    	}
    
    	
    .artigos {
    	border: 1px solid black;
    	border-radius: 8px;
    	padding: 20px;
    	margin-bottom: 20px;
    	
    }


    As you can see, it's pretty primitive stuff cuz imma n3wb. But should be working perfectly, ignore my language or the content itself lol, just for practicing.

    How it looks on chrome: http://i.imgur.com/kGsSlPm.jpg
    How it looks on Firefox: http://s7.postimg.org/xa0jvclez/firefox.jpg

  6. #5
    Senior Member breno's Avatar
    Join Date
    Feb 2015
    Location
    Australia
    Posts
    138
    Member #
    41574
    Liked
    29 times
    Take out float: left in #sessoes, that should fix it

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    breno's right. It's not really needed there.

    Either that, or add this in somewhere:
    Code:
    #sesoes:after {clear: left;}
    Remember TheGAME1264's Immutable Law of Floats: When You Float, You Must Clear.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  8. #7
    Junior Member
    Join Date
    Aug 2015
    Posts
    8
    Member #
    51534
    it worked! thanks a lot guys


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:36 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com