JavaScript
  Home arrow JavaScript arrow Page 3 - Building the User Interface for a Web Site...
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? 
JAVASCRIPT

Building the User Interface for a Web Site Indexing Application with Prototype
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-02-20

    Table of Contents:
  • Building the User Interface for a Web Site Indexing Application with Prototype
  • Getting started: defining the layout of the elements that integrate the front-end
  • Defining the look and feel of the web site indexing application: creating a few simple CSS styles
  • Completing the front-end of the application: Putting the CSS styles and structural markup together

  • 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


    Building the User Interface for a Web Site Indexing Application with Prototype - Defining the look and feel of the web site indexing application: creating a few simple CSS styles


    (Page 3 of 4 )

    In order to achieve the visual appearance that was shown in the two screen shots in the previous section, I'm going to define some straightforward CSS styles. As you may guess, these styles will be attached later on to the corresponding structural markup that integrates this web site indexing application.

    Since this topic bears little discussion, please have a look at the following set of CSS rules, which logically are aimed at defining the look and feel of the program in question. Here they are:

    <style type="text/css">
    body{
     
    padding: 0;
     
    margin: 0;
     
    background: #fff;
    }

    h1{
      width: 550px;
      padding: 10px;
      background: #ccf;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 10px;
      font: bold 22px Arial, Helvetica, sans-serif;
      color: #000;
      text-align: center;
      border: 1px solid #999;
    }

    #sitecontainer{
      width: 550px;
      height: 400px;
      background: #ccf;
      padding: 10px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 10px;
      border: 1px solid #999;
      overflow: auto;
    }

    #sitecontainer p{
      font: normal 11px Verdana, Arial, Helvetica, sans-serif;
      color: #000;
    }

    #sitecontainer a:link,#sitecontainer a:visited{
      font: bold 11px Verdana, Arial, Helvetica, sans-serif;
      color: #00f;
      text-decoration: underline;
    }

    #sitecontainer a:hover{
      color: #c30;
    }

    #formcontainer{
      width: 550px;
      height: 300px;
      background: #ccf;
      padding: 10px;
      margin-left: auto;
      margin-right: auto;
      border: 1px solid #999;
    }

    #formcontainer p{
      text-align: right;
      margin-right: 100px;
      font: bold 11px Verdana, Arial, Helvetica, sans-serif;
      color: #000;
    }

    .inputbox{
      width: 300px;
      padding: 2px;
      background: #eee;
      font: normal 11px Verdana, Arial, Helvetica, sans-serif;
      color: #000;
      border: 1px solid #999;
    }

    .submitbox{
      font: normal 11px Verdana, Arial, Helvetica, sans-serif;
      color: #000;
      padding: 2px;
    }

    textarea{
      width: 300px;
      height: 150px;
      padding: 2px;
      background: #eee;
      font: normal 11px Verdana, Arial, Helvetica, sans- serif;
      color: #000;
      border: 1px solid #999;
    }

    </style>

    As shown above, I defined a few simple CSS styles to improve the visual appearance of each element that composes the front-end of this web site indexing application. In particular, I created not only the layout for the all the containing DIVs that are part of the user interface, but also styled some additional elements, such as text areas and form buttons, paragraphs and links, and <h1> headers.

    Logically, at this point you shouldn't have major problems understanding how the previous CSS styles were created, since they're very easy to follow. Therefore, and keeping in mind that defining the look and feel that corresponds to this application is a straightforward process that can be performed with minor efforts,  let's move forward and see how all the CSS rules that were created previously can be annexed to the pertinent structural markup. Sounds pretty logical, right?

    To learn how this will be done, please click on the link that appears below and keep reading.

    More JavaScript Articles
    More By Alejandro Gervasio


       · If you're a strong advocate of using the Prototype JavaScript framework, hopefully...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






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