Style Sheets
  Home arrow Style Sheets arrow Page 3 - SEO Scrolling Frames Problem Solved
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

SEO Scrolling Frames Problem Solved
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-05-27

    Table of Contents:
  • SEO Scrolling Frames Problem Solved
  • The Trial Phase
  • What I Came Up With
  • Final Phase

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    SEO Scrolling Frames Problem Solved - What I Came Up With


    (Page 3 of 4 )

    <html>

    <!-- Banner and Contents -->

    <head>

    <style type="text/css">

    h1 {text-align:center}

    body {background-color:Aqua}

    div#header {width:100%; height:20%; border:1px solid black; padding:0px; margin:0px}

    div#left {width:25%; height:80%; display:inline; border:1px solid black;
    padding:15px; margin:0px}

    div#contents {width:75%; height:80%; display:inline; border:1px solid black;
    padding:0px; margin:0px; overflow:scroll}

    </style>


    </head>


    <body>

    <div id="header">

    <br />

    <h1>The Header</h1>

    </div>

    <div id="left">

    <br />

    <a href="www.one.com">This is Link One</a> <br /><br />

    <a href="www.two.com">This is Link Two</a> <br /><br />

    <a href="www.three.com">This is Link Three</a> <br /><br />

    <a href="www.four.com">This is Link Four</a> <br /><br />

    <a href="www.five.com">This is Link Five</a> <br /><br />

    <a href="www.six.com">This is Link Six</a> <br /><br />

    <a href="www.seven.com">This is Link Seven</a> <br /><br />

    <a href="www.eight.com">This is Link Eight</a> <br /><br />

    <a href="www.nine.com">This is Link Nine</a> <br /><br />

    <a href="www.ten.com">This is Link Ten</a> <br /><br />

    </div>

    <div id="contents">

    </div>


    </body>


    </html>


    If you tried it, you should see the main portion with scroll bars; this is what we want. However, the scroll bar of the browser is still there, and the presence of the browser’s scroll bar defeats the purpose of the scroll bar on our Main portion.

    So which HTML element produces the scroll bar for the browser window? The BODY element! I  took off the scroll-bars for the BODY element by adding the CSS property “overflow: hidden,” to the BODY element. I tried the code again. The window's scroll bars were gone; that is what we want. However, I noticed some background space beyond the edges of my setup (the three portions put together).

    Why was there extra space? Any block level element comes with padding area, which is background space between the element’s content and its borders. Any block level element also comes with borders. Finally, any block level element features a margin, which is the space between the borders and the edges of the element. If you do not give dimensions to the padding, border, and margin areas of an element, the browser does that for you.

    Does the BODY element have these components? Yes! They have to be taken off so that the edges of my setup will align with the edges of the window's client area.

    More Style Sheets Articles
    More By Chrysanthus Forcha


       · I liked it.Cheers,Suresh
       · If the myth that search engines don't index frames was ever true, it hasn't been...
       · Thanks,Chrys(Author)
     

    STYLE SHEETS ARTICLES

    - Improving the Visual Presentation of a CSS D...
    - Fixing Browser Incompatibilities in a CSS Dr...
    - Building Clean Drop-Down Menus with CSS
    - Creating Hybrid Web Page Layouts with Negati...
    - Creating Three-Column Web Page Layous with N...
    - Swapping Column Positions in Web Page Layout...
    - Creating Web Page Layouts with Negative Marg...
    - Creating Gradients for Individual Containers...
    - Creating Gradients for Web Page Headers with...
    - SEO Scrolling Frames Problem Solved
    - Building Cross-Browser Background Effects wi...
    - CSS: Pseudo
    - Using PNG Images to Build Background Effects
    - CSS: Continuing the Clarification of CSS Cla...
    - CSS: Top Secret Classification






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT