Home arrow HTML arrow Page 3 - Working the Pane for HTML Magic Edges
HTML

Working the Pane for HTML Magic Edges


In this part of the series, we effectively carry out a project. The project deals with a web page. The aim of the project is to allow visitors to move their mouse pointer to the edge of the web page to cause a pane with a calculator or some other useful tool to scroll into the page. The visitor can do whatever they want with the tool. Then, when they click on the BODY of the page, outside the pane, the pane scrolls back into the edge. The detailed requirements of the project are in the previous part of the series.

Author Info:
By: Chrysanthus Forcha
Rating: 3 stars3 stars3 stars3 stars3 stars / 2
March 30, 2009
TABLE OF CONTENTS:
  1. · Working the Pane for HTML Magic Edges
  2. · The Mimic Edges
  3. · The Rest of the CSS
  4. · Showing the Pane

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Working the Pane for HTML Magic Edges - The Rest of the CSS
(Page 3 of 4 )

You have some style properties in style attributes. The rest of the CSS properties are in the style sheet. This is the style sheet:


<style type="text/css">

body {background-color:#ff9933;padding:0px; margin:0px; z-index:0}

div#Cont {width:209px; height:200px; overflow:hidden; background-color:transparent; border-width:0px; padding:0px; margin:0px; display:inline; vertical-align:top}

div#Calc {position:relative; width:205; height:196px; background-color:brown; border:2px solid brown; padding:0px; margin:0px}

input#CI1 {margin:3px; width:195px; text-align:right; padding:0px; border-width:1px}

button.CalcBut {width:40px; height:40px; padding:0px; margin:0px; border-width:1px}

</style>


The last two statements are for the calculator Input Text element and the calculator buttons. If you have covered the basics, then the rest of the lines should be self-explanatory.

The border width of the outer DIV is 0px. This border does not need to have any width. The user should not even know that the outer DIV exists.

In the previous parts of the series I used a border-width for the purpose of illustration. The CSS position property for the inner DIV element is "relative." This allows it to move (when its position is changed) within the outer DIV.


blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials