HTML5 and CSS3 layout is wrong

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tpgames
    Contributor
    • Jan 2007
    • 783

    HTML5 and CSS3 layout is wrong

    Okay, I admit I was lousy at DIV tags before HTML5. However, 4.01 is leaving us, and I'm making a new site, and wanted to do it right in HTML5/CSS3. Nothing fancy, just wanted...

    THIS content
    Code:
    THIS DOES NOT WORK!
    
     
    Recipe:
    
    About this recipe, and the lovely blurbage that makes people want to know more. I see it as rattling garbage`.
    
    Serves: No. Prep time: No.
    
    Ingredients:
    
    1/2 tsp. whatever
    1/2 blurbage
    etc.
    Free of:
    How to Make:
    
       1.
    To appear to be inside the book. Horizontally speaking, the middle of the book is to repeat along the Y axis. And the footer should be at the footer.

    The Html Code:
    Code:
    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="utf-8" />
    <title> Allergic Vegetarian: Recipes for all Allergies </title>
    <link rel="stylesheet" href="http://www.allergicvegetarian.com/css/AVav.css" />
    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk
    /html5.js"></script>
    <![endif]-->
    </head>
    <body>
    
    
    
    <header>
    	<hgroup>
    		<h1>  Allergic Vegetarian  </h1>
    		<h2> Better Healthy Living for Life </h2>
    	</hgroup> 
    </header>
    <nav>
    	<ul>
    <li><a href="http://www.allergicvegetarian.com/recipe/vegan/vegan.html"> Vegan </a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/vegetarian/vegetarian.html"> Vegetarian </a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/dairy/dairyfree.html"> Dairy & Egg Free </a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/fish/fishfree.html"> Seafood & Seaweed Free</a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/corn/cornfree.html"> Gluten & Corn Free </a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/garlic/garlicfree.html"> Garlic & Onion Free</a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/nut/nutfree.html"> Nuts & Peanut Free</a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/8/8free.html"> "top 8" free </a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/9/9free.html"> "top 8" + onion & garlic free</a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/kyt/kytf.html"> Kyt Friendly </a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/notes/notes.html"> Notes & Warnings </a></li>
    <li><a href="http://www.allergicvegetarian.com/recipe/notes/aboutus.html"> About Us </a></li>
    	</ul>
    </nav>
    
    <!-- ABOVE SHOULD BE FINE -->
    
    
    
    <article>
    <div class="topbk"> <br>&nbsp;<br> THIS DOES NOT WORK! </div>
    
    <div class="middlebk"> <br>&nbsp;<br> 
    	<section class="leftfirst">
    		<header>
    			<hgroup>
    			<h2>  Recipe: </h2>
    			<h3>   </h3>
    			</hgroup>
    		</header>
    	<p>
    About this recipe, and the lovely blurbage that makes people want to know more. 
    I see it as rattling garbage`. 
    	</p>
    	
    	</section>	
    	
    	<section class="leftsecond">
    		<header>
    			<hgroup>
    			<h3> Serves: No.  Prep time:  No.  </h3>
    			<h3> Ingredients: </h3>
    			</hgroup>
    			</header>		
    	<p>
    1/2 tsp. whatever <br>
    1/2 blurbage <br>
    etc.
    	</p>
    	</section>
    
    	
    	
    	<section class="rightfirst">
    		<header>
    			<hgroup>
    			<h2> Free of:   </h2>
    			<h3> How to Make:  </h3>
    			</hgroup>
    		</header>
    		
    	<p>
    <!-- 20 of, by default -->
    <ol>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    <li> </li>
    </ol>
    
    
    	</p>
    	</section>
    
    </div>
    
    <div class="bottombk"> <br>&nbsp;<br> <br>&nbsp;<br> </div>
    </article>
    
    <aside>
    Try my...<br>
    <a href="http://www.allergicvegetarian.com/build/build.html"> "Build Your Own Recipe TM" </a>
    
    </aside>
    
    <footer>
    <p> &copy;  2010 by Kytriya. All rights reserved. </p>
    </footer>
    
    </body>
    </html>

    The Css Code:

    Code:
    * {
    font-family: Lucida Sans, Arial, Helvetica, sans-serif;
    }
    body {
    width: 980px; margin: 0px auto;
    background-color: #337711;
    }
    
    header h1 {
    font-size: 28px; margin: 0px; color: #cc99ee; text-shadow: 2px 2px 5px #000;
    }
    header h2 {
    font-size: 20px; padding: 4px; margin: 0px; color: #cc99ee;
    font-style: italic;
    }
    header h3 {
    font-size: 18px; padding: 4px; margin: 0px; color: #cc99ee;
    font-style: italic;
    }
    
    
    /* HERE IS PART OF THE PROBLEM: Book Image Coding */
    
    .leftfirst  {padding: 10px; float: left; background-color: #cc99ee}
    .leftsecond {padding: 8px; float: left;}
    .rightfirst {padding: 10px; float: right;}
    
    .topbk { background: url(/css/img/topbk.gif) no-repeat; width="960px" height="40px"; margin:0; padding:0; position: relative;}
    .middlebk { background: url("/css/img/middlebk.gif") repeat-y; position: relative;}
    .bottombk { background: url("/css/img/bottombk.gif") no-repeat; position: relative;}
    
    /* END OF BOOK IMAGE CODING */
    
    nav ul {
    list-style: none; padding: 2px; display: table-row-group;
    clear: right; background-color: #000;
    padding-left: 4px; height: 24px;
    }
    
    nav ul li {
    display: inline-table; padding: 2px 20px 5px 10px;
    border-left: thin solid #bdb76b;
    border-top: thin solid #bdb76b;
    border-right: thin solid #bdb76b;
    border-bottom: thin solid #bdb76b;
    height: 24px; border-right: 1px solid #bdb76b; 
    }
    
    nav ul li a {
    color: #bdb76b; text-decoration: none;
    font-size: 16px; font-weight: bold;
    }
    
    nav ul li a:hover {
    color: #fff;
    }
    
    article > header time {
    font-size: 14px; display: block; width: 26px;
    padding: 2px; text-align: center; background-color: #999955;
    color: #fff; font-weight: bold; -moz-border-radius: 6px;
    -webkit-border-radius: 6px; border-radius: 6px; float: left;
    margin-bottom: 10px;
    }
    article > header time span {
    font-size: 10px; font-weight: normal;
    text-transform: uppercase;
    }
    article > header h3 {
    font-size: 20px; float: left;
    margin-left: 14px; 
    }
    article > header h3 a {
    color: #993333;
    }
    article > section header h3 {
    font-size: 16px;
    }
    article p {
    clear: both; background-color: #e3e293; padding: 6px;
    }
    
    /* kingsthingsitalic may need TT changed to whatever it really is. */ 
    
    aside{margin-top: 10px; float: right; display: inline; width: 430px; /* 430px */margin-right: -850px;position: relative;}
    aside h2{padding: 5px 30px; margin-top: -8px;}
    aside h3{font-family: 'kingsthingsitalic TT', arial, serif; margin-top: 10px; margin-left: 30px; margin-right: 125px; margin-bottom: 0px; font-size: 16px; 
    line-height: 21px; font-weight: bold; text-decoration:underline;
    -webkit-transition: color .1s ease-out; -moz-transition: color .3s ease-out; -o-transition: color .3s ease-out; transition: color .3s ease-out;}
    aside p{ margin: 20px 30px; }
    
    /* OBVIOUSLY WRONG */
    footer p {
    float: bottom;
    text-align: center; font-size: 12px;
    color: #888; margin-top: 24px;
    }
    
    /* e7e6ac! e3e293 =2  */
    Image of Error:



    I am trying to figure out what else to do as "float bottom" I know is wrong.
    Last edited by tpgames; Oct 20 '10, 12:31 AM. Reason: Adding Image
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    1. You should set both the margin and padding properties to zero in your universal rule. You will have to edit a few things after, but it will help your page play with other browsers well.

    Code:
    * {
        margin: 0;
        padding: 0;
    }
    2. On my Mac the navigation is going down to a third row. It's a width issue caused by the font - maybe the weight specifically.

    3. Floating elements remove them from the normal flow of the page. Remove the float left from any of your three sections and you will see your image display correctly.


    After making these changes you should just have to edit the content to fit. Let me know how it goes.


    Thanks, Death

    Comment

    • tpgames
      Contributor
      • Jan 2007
      • 783

      #3
      1) The Navigation:
      Yes, the font size does make the nav expand onto more rows, depending on how wide the user's window is. However, the font size is for readability for me and other users.

      2) Content:
      I thought that max-width would work, but apparently, it isn't. I really want it to be dynamic without it getting outside of the book image, but confused on that. Currently, reading more tutorials, and trying different things.

      Comment

      • tpgames
        Contributor
        • Jan 2007
        • 783

        #4
        okay, how come when I play around with 'Position' in the "leftfirst" , etc. tags, the only thing that moves is the
        Code:
         <p> recipe blurbage </p>
        ?

        I've noticed something else too...
        Code:
        <article>
        <div class="topbk">  </div>
        
        <div class="middlebk"> <br>
        	<section class="leftfirst">
        		<header>
        			<hgroup>
        			<h2>  Recipe: </h2>  <--- HERE  -->
        			<h3>   </h3>
        			</hgroup>
        		</header>
        ...I can't get to show where I want it at all. I can only get it LEFT if, I float it. :P And, I don't care how my site looks in IE. IE is backwards anyways. I just want it to show up properly in Firefox, and eventually, Chrome.
        Last edited by tpgames; Oct 20 '10, 04:16 AM. Reason: Found another issue.

        Comment

        • tpgames
          Contributor
          • Jan 2007
          • 783

          #5
          :P I just realized my dyslexia was kicking in. I was using "right" instead of "left". So, of course it was going to send the silly thing to the far right, when I used absolute positioning. ROFL



          Okay, latest. Neither "max-width" nor "width" is having any effect what so ever. I want the left page stuff to stay only on left page. And, the right stuff to stay right and on the book.

          UPDATE: Needed 'max-width' to be in BOTH "leftfirst' and 'leftsecond' in order for it too have any effect. :P Right side is still all wrong, but...give me time. I might get it yet. LOL

          Thanks! :D

          Code:
          * { margin: 0px; padding: 0px;
          font-family: Lucida Sans, Arial, Helvetica, sans-serif;
          }
          body {
          width: 980px; margin: 0px auto;
          background-color: #337711;
          }
          
          header, h1 {
          font-size: 28px; margin: 0px; color: #cc99ee; text-shadow: 2px 2px 5px #000;
          }
          header, h2 {
          font-size: 20px; padding: 4px; margin: 0px; color: #cc99ee;
          font-style: italic;
          }
          header, h3 {
          font-size: 18px; padding: 4px; margin: 0px; color: #cc99ee;
          font-style: italic;
          }
          
          .leftfirst  {position: relative; left: 70px; padding: 10px; max-width: 450px; background-color: #cc99ee}
          .leftsecond {position: relative; left: 70px; padding: 8px; width: 450px; }
          .rightfirst {position: relative; right: 70px; padding: 10px; width: 450px; }
          
          .topbk { background: url(/css/img/topbk.gif) no-repeat; height: 40px; position: relative;}
          .middlebk { background: url("/css/img/middlebk.gif") repeat-y; position: relative;}
          .bottombk { background: url("/css/img/bottombk.gif") no-repeat; position: relative;}
          
          nav ul {
          list-style: none; padding: 2px; display: table-row-group;
          clear: right; background-color: #000;
          padding-left: 4px; height: 24px;
          }
          
          nav ul li {
          display: inline-table; padding: 2px 20px 5px 10px;
          border-left: thin solid #bdb76b;
          border-top: thin solid #bdb76b;
          border-right: thin solid #bdb76b;
          border-bottom: thin solid #bdb76b;
          height: 24px; border-right: 1px solid #bdb76b; 
          }
          
          nav ul li a {
          color: #bdb76b; text-decoration: none;
          font-size: 16px; font-weight: bold;
          }
          
          nav ul li a:hover {
          color: #fff;
          }
          
          article > header time {
          font-size: 14px; display: block; width: 26px;
          padding: 2px; text-align: center; background-color: #999955;
          color: #fff; font-weight: bold; -moz-border-radius: 6px;
          -webkit-border-radius: 6px; border-radius: 6px; float: left;
          margin-bottom: 10px;
          }
          article > header time span {
          font-size: 10px; font-weight: normal;
          text-transform: uppercase;
          }
          article > header h3 {
          font-size: 20px; float: left;
          margin-left: 14px; 
          }
          article > header h3 a {
          color: #993333;
          }
          article > section header h3 {
          font-size: 16px;
          }
          article p {
          clear: both; background-color: #e3e293; padding: 6px;
          }
          
          /* kingsthingsitalic may need TT changed to whatever it really is. */ 
          
          aside{margin-top: 10px; float: right; display: inline; width: 430px; /* 430px */margin-right: -850px;position: relative;}
          aside h2{padding: 5px 30px; margin-top: -8px;}
          aside h3{font-family: 'kingsthingsitalic TT', arial, serif; margin-top: 10px; margin-left: 30px; margin-right: 125px; margin-bottom: 0px; font-size: 16px; 
          line-height: 21px; font-weight: bold; text-decoration:underline;
          -webkit-transition: color .1s ease-out; -moz-transition: color .3s ease-out; -o-transition: color .3s ease-out; transition: color .3s ease-out;}
          aside p{ margin: 20px 30px; }
          
          
          footer p {
          float: bottom;
          text-align: center; font-size: 12px;
          color: #888; margin-top: 24px;
          }
          Last edited by tpgames; Oct 20 '10, 04:59 AM. Reason: figured out the left side.

          Comment

          • tpgames
            Contributor
            • Jan 2007
            • 783

            #6
            Got it!

            I post the code in full, in case anyone else needs to look at it for learning purposes. :D

            BOTH codes Validate!

            Code:
            <!doctype html>
            <html lang="en">
            <head>
            <meta charset="utf-8" />
            <title> Allergic Vegetarian: Recipes for all Allergies </title>
            <link rel="stylesheet" href="http://www.allergicvegetarian.com/css/AVav.css" />
            <!--[if IE]>
            <script src="http://html5shiv.googlecode.com/svn/trunk
            /html5.js"></script>
            <![endif]-->
            </head>
            <body>
            
            
            
            <header>
            	<hgroup>
            		<h1>  Allergic Vegetarian  </h1>
            		<h2> Better Healthy Living for Life </h2>
            	</hgroup> 
            </header>
            <nav>
            	<ul>
            <li><a href="http://www.allergicvegetarian.com/recipe/vegan/vegan.html"> Vegan </a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/vegetarian/vegetarian.html"> Vegetarian </a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/dairy/dairyfree.html"> Dairy & Egg Free </a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/fish/fishfree.html"> Seafood & Seaweed Free</a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/corn/cornfree.html"> Gluten & Corn Free </a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/garlic/garlicfree.html"> Garlic & Onion Free</a></li>
            </ul>
             <br>
            <ul>
            <li><a href="http://www.allergicvegetarian.com/recipe/nut/nutfree.html"> Nuts & Peanut Free</a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/8/8free.html"> "top 8" free </a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/9/9free.html"> "top 8" + onion & garlic free</a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/kyt/kytf.html"> Kyt Friendly </a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/notes/notes.html"> Notes & Warnings </a></li>
            <li><a href="http://www.allergicvegetarian.com/recipe/notes/aboutus.html"> About Us </a></li>
            	</ul>
            </nav>
            
            
            <article>
            <div class="topbk">  </div>
            
            <div class="middlebk"> <br>
            	<section class="leftfirst">
            		<header>
            			<hgroup>
            			<h2>  Recipe: </h2>
            			<h3>   </h3>
            			</hgroup>
            		</header>
            	<p>
            About this recipe, and the lovely blurbage that makes people want to know more. 
            I see it as rattling garbage`. 
            	</p>
            	
            	</section>	
            	
            	<section class="leftsecond">
            		<header>
            			<hgroup>
            			<h3> Serves: No.  Prep time:  No.  </h3>
            			<h3> Ingredients: </h3>
            			</hgroup>
            			</header>		
            	
            <ul>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            </ul>
            	
            	</section>
            
            	
            	
            	<section class="rightfirst">
            		<header>
            			<hgroup>
            			<h4> Free of:   </h4>
            			<h3> How to Make:  </h3>
            			</hgroup>
            		</header>
            		
            	
            <!-- 20 of, by default -->
            <ol>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            <li> </li>
            </ol>
            
            
            	</section>
            <aside>
            Try my...<br>
            <a href="http://www.allergicvegetarian.com/build/build.html"> "Build Your Own Recipe TM" </a>
            
            </aside>
            
            </div>
            
            
            
            <div class="bottombk"> <br>&nbsp;<br> <br>&nbsp;<br> </div>
            </article>
            
            
            
            <footer>
            <p> &copy;  2010 by Kytriya. All rights reserved. </p>
            </footer>
            
            </body>
            </html>

            Code:
            /* Code Copyright by Kytriya, 2010 */
            
            * { margin: 0px; padding: 0px;
            font-family: Lucida Sans, Arial, Helvetica, sans-serif;
            }
            body {
            width: 1160px; margin: 0px auto;
            background-color: #337711;
            }
            
            header, h1 {
            font-size: 28px; margin: 0px; color: #cc99ee; text-shadow: 2px 2px 5px #000;
            }
            header, h2 {
            font-size: 20px; padding: 4px; margin: 0px; color: #cc99ee;
            font-style: italic;
            }
            header, h3 {
            font-size: 18px; padding: 4px; margin: 0px; color: #6300A4;;
            font-style: italic;
            }
            header, h4 {
            font-size: 20px; padding: 4px; margin: 0px; color: #0000ff;
            font-style: italic;
            }
            
            .leftfirst  {display: block; position: relative; left: 70px; padding: 10px; max-width: 400px; background-color: #6300A4;}
            .leftsecond {display: block; position: relative; left: 70px; padding: 8px; max-width: 400px;}
            .rightfirst {position: absolute; right: 470px; top: 20px; float: right; padding: 10px; max-width: 400px;}
            
            .topbk { background: url(/css/img/topbk.gif) no-repeat; height: 40px; position: relative;}
            .middlebk { background: url("/css/img/middlebk.gif") repeat-y; position: relative;}
            .bottombk { background: url("/css/img/bottombk.gif") no-repeat; position: relative;}
            
            nav ul {
            list-style: none; padding: 2px; display: table-row-group;
            clear: right; background-color: #000;
            padding-left: 4px; height: 24px;
            }
            
            nav ul li {
             float: left; padding: 2px 20px 5px 10px;
            border-left: thin solid #bdb76b;
            border-top: thin solid #bdb76b;
            border-right: thin solid #bdb76b;
            border-bottom: thin solid #bdb76b;
            height: 24px; border-right: 1px solid #bdb76b; 
            }
            
            nav ul li a {
            color: #bdb76b; text-decoration: none;
            font-size: 16px; font-weight: bold;
            }
            
            nav ul li a:hover {
            color: #fff;
            }
            
            article > header time {
            font-size: 14px; display: block; width: 26px;
            padding: 2px; text-align: center; background-color: #999955;
            color: #fff; font-weight: bold; 
            border-radius: 6px; float: left;
            margin-bottom: 10px;
            }
            article > header time span {
            font-size: 10px; font-weight: normal;
            text-transform: uppercase;
            }
            article > header h3 {
            font-size: 20px; float: left;
            margin-left: 14px; 
            }
            article > header h3 a {
            color: #993333;
            }
            article > section header h3 {
            font-size: 16px;
            }
            article p {
            clear: both; background-color: #e3e293; padding: 6px;
            }
            
            
            
            /* kingsthingsitalic may need TT changed to whatever it really is. */ 
            
            aside {position: absolute; left: 1000px; top: 20px; float: right; padding: 10px; min-width: 150px; max-width: 150px;}
            
            
            
            
            aside h2{padding: 5px 30px; margin-top: -8px;}
            aside h3{font-family: 'kingsthingsitalic TT', arial, serif; margin-top: 10px; margin-left: 30px; margin-right: 125px; margin-bottom: 0px; font-size: 16px; 
            line-height: 21px; font-weight: bold; text-decoration:underline;}
            aside p{ margin: 20px 30px; }
            
            
            footer p {
            float: bottom;
            text-align: center; font-size: 12px;
            color: #888; margin-top: 24px;
            }
            
            /* e7e6ac! e3e293 =2  */
            Last edited by Niheel; Oct 21 '10, 01:11 AM. Reason: Changed code to code that Validates.

            Comment

            • Death Slaught
              Top Contributor
              • Aug 2007
              • 1137

              #7
              Awesome, it displays great in Chrome and Safari on my Mac. For some reason it never crossed my mind that you wanted the content to be separated into both parts of the "book" haha. There are still a few things though.

              1. Firefox puts space between each link in your navigation - technically your list elements. Removing display: inline-table and changing it to float: left should fix it.

              2. Opera isn't being quite so friendly, but I'm sure it's something fairly simple. The navigation is off just like Firefox. The content is where it's supposed to be but the list aren't being displayed.

              Let me know how it goes, or if you can't figure something. I'll be on and off for the next 3 - 4 hours.

              Thanks, Death

              Comment

              • tpgames
                Contributor
                • Jan 2007
                • 783

                #8
                I fixed it, and both codes now validate. I won't guarantee Opera liking this code, but the W3 validates it and FF like it. :D

                I should really download Opera, but as its wonky with Linux, wants you to pay to use the 'better' features, I quit programming for it. lol I oft wondered if the free version of Opera supports all HTML5 and CSS3 options that Chrome supports, or if some of those options are paid features only?

                Comment

                • Death Slaught
                  Top Contributor
                  • Aug 2007
                  • 1137

                  #9
                  It looks fine now in Chrome, Firefox, and Safari. Opera still doesn't like it though. I'll try messing with it a little later.

                  I wasn't aware that you had to pay for Opera features. I'll run it through a few test and get back to you.


                  Regards, Death

                  Comment

                  • drhowarddrfine
                    Recognized Expert Expert
                    • Sep 2006
                    • 7434

                    #10
                    Haven't a clue what you mean by having to pay for features. Opera's free version supports all the same features as their paid version and it does just as well as all the others.

                    Comment

                    • tpgames
                      Contributor
                      • Jan 2007
                      • 783

                      #11
                      Opera must have finally stopped trying to charge for you to use Opera. They used to have the 'paid' version and the 'free' version. I went over to the Opera site to get the full scoop. Here's what they said about how they make money, which means, that they are no longer trying to charge the user.

                      QUOTE:
                      Code:
                      How does Opera make money?
                      
                      Opera has two basic revenue models:
                      
                      For enterprise products, such as Opera preinstalled 
                      on a mobile phone or a set-top box, Opera receives 
                      revenue as a mix of engineering fees, maintenance fees 
                      and shares of sales income. The balance varies from contract 
                      to contract. This model accounts for the majority of Opera’s income.
                      
                      Opera also derives revenue from its free products through 
                      revenue sharing with partners. For example, several search 
                      engines make usage payments to Opera for searches made by 
                      Opera users. This is the major source of income for Opera’s 
                      desktop browser, with revenue shares also in place on a variety 
                      of mobile products.
                      As far as programming is concerned, Opera probably demands a few hacks to get my site to show up properly. LOL I don't know the various hacks yet. All I know is that my site validates completely...bo th the HTML and the CSS. :D


                      I'll gladly take a look at what you did. :D Thanks!

                      Comment

                      • drhowarddrfine
                        Recognized Expert Expert
                        • Sep 2006
                        • 7434

                        #12
                        Opera has not charged users since the late '90s, iirc. Only companies that use their product as you outline above.

                        Comment

                        • tpgames
                          Contributor
                          • Jan 2007
                          • 783

                          #13
                          HTML 5 and CSS3 Validated, Fixed Code...(forget the previous one)

                          FIXED CODE: Validates, and shows properly in Opera, Firefox, Safari and Chrome. The final code so that everyone who references my question, will have the final answer. Notice, I don't care how it looks in IE, as IE doesn't validate properly anyways.
                          It is NOT meant for any other purpose.

                          Code:
                          <!doctype html>
                          <html lang="en">
                          <head>
                          <meta charset="utf-8" />
                          <title> Allergic Vegetarian: Recipes for all Allergies </title>
                          <link rel="stylesheet" href="http://www.allergicvegetarian.com/css/av.css" />
                          <!--[if IE]>
                          <script src="http://html5shiv.googlecode.com/svn/trunk
                          /html5.js"></script>
                          <![endif]-->
                          </head>
                          <body>
                          
                          <header>
                          	<hgroup>
                          		<h1>  Allergic Vegetarian  </h1>
                          		<h2> Better Healthy Living for Life </h2>
                          	</hgroup> 
                          </header>
                          <nav>
                          	<ul>
                          <li><a href="http://www.allergicvegetarian.com/recipe/vegan/vegan.html"> Vegan </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/vegetarian/vegetarian.html"> Vegetarian </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/dairy/dairyfree.html"> Dairy & Egg Free </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/fish/fishfree.html"> Seafood & Seaweed Free</a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/corn/cornfree.html"> Gluten & Corn Free </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/garlic/garlicfree.html"> Garlic & Onion Free</a></li>
                          </ul>
                           <br>
                          <ul>
                          <li><a href="http://www.allergicvegetarian.com/recipe/nut/nutfree.html"> Nuts & Peanut Free</a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/soy/soyfree.html"> Soy Free </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/8/8free.html"> "top 8" free </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/9/9free.html"> "top 8" + onion & garlic free</a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/kyt/kytf.html"> Kyt Friendly </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/notes/notes.html"> Notes </a></li>
                          <li><a href="http://www.allergicvegetarian.com/recipe/notes/aboutus.html"> About Us </a></li>
                          	</ul>
                          </nav>
                          
                          <article>
                          <div class="topbk">  </div>
                          
                          <div class="middlebk"> <br>
                          	<section class="leftfirst">
                          		<header>
                          			<hgroup>
                          			<h2> Why yet another Recipe Site for those with Allergies? </h2>
                                      
                          			</hgroup>
                          		</header>	
                          <p>
                          When I went searching for recipes that catered to my many food sensitivities, I came up empty handed.
                          The peanut gallery would say, "Just leave out what you can't eat." Have you ever tried making Chili
                          without the green pepper, kidney beans, hamburger, onion, mustard, most chili's, and celery?
                          What you have left is tomato sauce and perhaps mushrooms. This does not a chili make. Most
                          recipes were devoid of flavor. Most recipes featured pro-roadkill (TM). I can't eat road kill...Allergy.
                          Being on disability enabled me to have the time to work on recipes and relearn how to cook.
                          The results of those efforts is this site and a Hamburger that tastes like hamburger that even I can eat. 
                          Ultimately, I hope to get off of disability, with the aid of this site in the next few years or less. 
                          <br>&nbsp;<br>
                          </p>
                                  </section>
                          
                          <br>&nbsp;<br>
                          
                          	<section class="leftseconde">
                          		<header>
                          			<hgroup>
                          			<h4>  Vegan wanna be's and GF, Onion Free and IBS? </h4>
                          			
                          			</hgroup>
                          			</header>	
                          <p>
                          "Kyt Friendly" recipes will be "IBS friendly" in that the most common foods that aggravate IBS won't be found there. 
                          I shall make a list of "IBS friendly" recipes, found in the other categories, at a later date. 
                          Many recipes will be cross-linked in more than one category, so that those with various allergies, can find them more easily.  	
                          </p>
                          	</section>
                          	
                          	<section class="rightindex">
                          
                          		<header>
                          			<hgroup>
                          			<h3> Future Plans:  </h3>
                          			</hgroup>
                          		</header>
                          		
                          <p>
                          1) A Master Recipe List that contains every recipe, and all the common allergies each recipe does not contain. 
                          <br>&nbsp;<br>
                          2) A Food Substitution list that will include Spices, and many foods that can be used in place of other spices or foods. 
                          <br>&nbsp;<br>
                          3) Free! "My Diet and Exercise Journal" Sheets for printing.
                          <br>&nbsp;<br>
                          4) A google search engine will be added to this site in the near future, to make it easier for you to find what you need. 
                          </p>
                          
                          <br>&nbsp;<br>
                          <br>&nbsp;<br>
                          
                          <p>
                          
                          Kyt Friendly: 
                          <br>&nbsp;<br>
                          Yes, everything in this category I can eat! *Grin* <br>
                          If you were to read what I can't eat, you would 
                          understand why I'm a short order cook in my own kitchen. 
                          <br>&nbsp;<br>
                          These recipes will suitable for "IBS Diets"! <br>
                          These recipes will also be GF, Vegan, Alcohol Free, Cinnamon Free. They may contain
                          Soy, Cashews Pecans, or Sesame. 
                          <br>&nbsp;<br>
                          For a complete list of what these recipes won't have, please click on the link above, 
                          as there are many foods that I've had mild to severe reactions too. 
                          </p>
                          	</section>
                          <aside>
                          Try my...<br>
                          <a href="http://www.allergicvegetarian.com/build/build.html"> "Build Your Own Recipe TM" </a> 
                          <br>&nbsp;<br>
                          Coming soon! 
                          <br>&nbsp;<br>
                          Just pick what you want from each category, and you have a recipe that can't be beat! <br>
                          
                          </aside>
                          </div>
                          
                          <div class="bottombk"> <br>&nbsp;<br> <br>&nbsp;<br> </div>
                          </article>
                          
                          <footer>
                          <p> &copy;  2010 by Kytriya. All rights reserved. <br>
                          This page validates and uses HTML5 and CSS3.</p>
                          </footer>
                          
                          </body>
                          </html>

                          Code:
                          /* Code Copyright by Kytriya, 2010 */
                          
                          * { margin: 0px; padding: 0px;
                          font-family: Lucida Sans, Arial, Helvetica, sans-serif;
                          }
                          body {
                          width: 1160px; margin: 0px auto;
                          background-color: #337711;
                          }
                          
                          header, h1 a {
                          font-size: 28px; margin: 0px; padding: 4px 20px 20px 0px; color: #cc99ee; text-shadow: 2px 2px 5px #000;
                          }
                          header, h1 {
                          font-size: 28px; margin: 0px; padding: 4px 20px 20px 30px; color: #cc99ee; text-shadow: 2px 2px 5px #000;
                          }
                          header, h2 {
                          font-size: 20px; padding: 4px 20px 20px 44px; margin: 0px; color: #cc99ee;
                          font-style: italic;
                          }
                          header, h3 {
                          font-size: 18px; padding: 4px; margin: 0px; color: #6300A4;;
                          font-style: italic;
                          }
                          header, h4 {
                          font-size: 20px; padding: 4px; margin: 0px; color: #96f;
                          font-style: italic;
                          }
                          
                          .leftfirst  {display: block; position: relative; left: 70px; padding: 10px; max-width: 400px; background-color: #6300A4;}
                          .leftseconde {display: block; position: relative; left: 70px; padding: 8px; max-width: 400px; background-color: #6300A4;}
                          .leftsecond {display: block; position: relative; left: 70px; padding: 8px; max-width: 400px;}
                          .rightindex {position: absolute; left: 520px; top: 20px; float: right; padding: 10px; max-width: 400px;}
                          .rightfirst {position: absolute; left: 550px; top: 20px; float: right; padding: 10px; max-width: 400px;}
                          
                          .topbk { background: url(/css/img/topbk.gif) no-repeat; height: 40px; position: relative;}
                          .middlebk { background: url("/css/img/middlebk.gif") repeat-y; position: relative;}
                          .bottombk { background: url("/css/img/bottombk.gif") no-repeat; position: relative;}
                          
                          nav ul {
                          list-style: none; padding: 2px; display: table-row-group;
                          clear: right; background-color: #000;
                          padding-left: 4px; height: 24px;
                          }
                          
                          nav ul li {
                           float: left; padding: 2px 20px 5px 10px;
                          border-left: thin solid #bdb76b;
                          border-top: thin solid #bdb76b;
                          border-right: thin solid #bdb76b;
                          border-bottom: thin solid #bdb76b;
                          height: 24px; border-right: 1px solid #bdb76b; 
                          }
                          
                          nav ul li a {
                          color: #bdb76b; text-decoration: none;
                          font-size: 16px; font-weight: bold;
                          }
                          
                          nav ul li a:hover {
                          color: #fff;
                          }
                          
                          article > header time {
                          font-size: 14px; display: block; width: 26px;
                          padding: 2px; text-align: center; background-color: #999955;
                          color: #fff; font-weight: bold; 
                          border-radius: 6px; float: left;
                          margin-bottom: 10px;
                          }
                          article > header time span {
                          font-size: 10px; font-weight: normal;
                          text-transform: uppercase;
                          }
                          article > header h3 {
                          font-size: 20px; float: left;
                          margin-left: 14px; 
                          }
                          article > header h3 a {
                          color: #cc99ee;
                          }
                          article > section header h3 {
                          font-size: 16px;
                          }
                          article p {
                          clear: both; padding: 6px; background: #cc99ee;
                          }
                          
                          
                          
                          /* kingsthingsitalic may need TT changed to whatever it really is. */ 
                          
                          
                          aside {position: absolute; left: 1000px; top: 20px; float: right; padding: 10px; min-width: 150px; max-width: 150px;}
                          
                          
                          
                          
                          aside h2{padding: 5px 30px; margin-top: -8px;}
                          aside h3{font-family: 'kingsthingsitalic TT', arial, serif; margin-top: 10px; margin-left: 30px; margin-right: 125px; margin-bottom: 0px; font-size: 16px; 
                          line-height: 21px; font-weight: bold; text-decoration:underline;
                          }
                          
                          aside p{ margin: 20px 30px; }
                          
                          footer p {
                          float: bottom;
                          text-align: center; font-size: 14px;
                          color: #ccc; margin-top: 24px;
                          }
                          
                          /* e7e6ac! e3e293 =2  */
                          Last edited by tpgames; Oct 21 '10, 03:42 PM. Reason: IE note.

                          Comment

                          Working...