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 4 of 4
Like Tree1Likes
  • 1 Post By Ronald Roe

Thread: Why does Rocco work and Jade does not?

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    8
    Member #
    55666

    Question Why does Rocco work and Jade does not?

    In my website I have <h4> for Rocco text which will be DarkGolden and <h5> for Jade text which will be mediumseagreen. I copy and pasted the Rocco CSS code to create the Jade CSS code. Why does Rocco show up formatted and Jade is not?

    Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Rocco&Jade</title>
    <link href="stylesheet.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <!--Banner-->
    <div id="banner">
    <img src="images/intensify-banner.jpg" width="817" height="252" alt="Rocco & Jade Teach You How to Intensify Your Sex Life">
    </div>
    <div id="container">
    <h1>Limited Time Offer!</h1>
    <h2>Get all modules half price!</h2>
    <h2>Let us show you how to get them for free!</h2>
    <h3>This will be the main copy text</h3>
    <h4>Rocco</h4>
    <h5>Jade</h5>
    <h6>test</h6>
    </div>
    </body>
    </html>
    Code:
    @charset "UTF-8";
    /* CSS Document */
    
    #banner {
    text-align: center;
    }
    body {
        font-family: Verdana, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "sans-serif"";
    }
    
    container {
    	width:300; margin:auto; background: #fff;
    }
    
    h1 {
        font-family: Cambria;
    letter-spacing: 1px; 
    	}
    
    h2 {
        font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", "sans-serif";
        letter-spacing: 5px;
    	font-size: 30px;
    	color:#000000;
    }
    
    
    
    h3 {
        font-family: baskerville,serif;
        letter-spacing: 0px;
    	font-size: 24px;
    }
    
    h4  {
        font-family: Verdana, "sans-serif";
        letter-spacing: 0px;
    	font-size: 30px;
    	color: darkgoldenrod;
    	font-weight: 900;
    }
    
    <!--Rocco (h4) is color DarkGoldenRod which is color code:#B8860B-->
    
    
    h5 {
        font-family: Verdana, "sans-serif";
        letter-spacing: 0px;
    	font-size: 30px;
    	color: mediumseagreen;
    	font-weight: 900;
    }
    
    <!--Jade (h5) is color MediumSeaGreen which is color code #3CB371-->
    
    h6 {
        font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", "sans-serif";
        letter-spacing: 5px;
    }

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    You had some errors in your CSS that were causing the color to not be parsed properly. Don't put quotes around sans-serif.
    Code:
    #banner {
    text-align: center;
    }
    body {
        font-family: Verdana, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", sans-serif;
    }
    
    container {
    	width:300; margin:auto; background: #fff;
    }
    
    h1 {
        font-family: Cambria;
    letter-spacing: 1px; 
    	}
    
    h2 {
        font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", sans-serif;
        letter-spacing: 5px;
    	font-size: 30px;
    	color:#000000;
    }
    
    
    
    h3 {
        font-family: baskerville,serif;
        letter-spacing: 0px;
    	font-size: 24px;
    }
    
    h4  {
        font-family: Verdana, sans-serif;
        letter-spacing: 0px;
    	font-size: 30px;
    	color: darkgoldenrod;
    	font-weight: 900;
    }
    h5 {
        font-family: Verdana, sans-serif;
        letter-spacing: 0px;
    	font-size: 30px;
    	color: mediumseagreen;
    	font-weight: 900;
    }
    
    h6 {
        font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", sans-serif;
        letter-spacing: 5px;
    }
    rocco likes this.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    8
    Member #
    55666
    Thanks, Ronald,

    When I made the changes by copying your version into my CSS, and viewed the page online, It showed correctly for a second, then switched back. Any other corrections?

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Clear your cache on your browser and try again. Everything displayed fine for me using that code.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


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 06:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com