ASP.NET - CSS confusing - Asked By waseem kaleem on 12-May-11 04:49 AM

why combination of absolute and relative position is used?

e.g

#menu li

{

position:relative;

}

#menu ul ul ul

{

position:absolute;
{
top:0;
.........
}

Ravi S replied to waseem kaleem on 12-May-11 04:54 AM
HI

  • <div style="position:relative;"> </div> tags to force all absolute positions contained within to be calculated relative to the current location instead of the top left corner of the page.
  • Each entry that is to appear in this location has style="position:absolute;top:0px;left:0px;" defined to position it at the top left corner of the previously defined position.
Mihir Soni replied to waseem kaleem on 12-May-11 05:27 AM
Hello,

Here us simple description of absoulte and relative positions 

absolute generates an absolutely positioned element, positioned relative to the first parent element that has a position other than static. The element's position is specified with the "left", "top", "right", and "bottom" properties

relative generates a relatively positioned element, positioned relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position

Hope this helps you

Thank you 
waseem kaleem replied to Ravi S on 12-May-11 10:35 AM
Thanks of all you.
I want to create web page border in css/photoshop for asp.net page.Can you provide me an step by step article?
again thanks 
Ravi S replied to waseem kaleem on 12-May-11 11:48 AM
HI

here are examples for your requirement

refer the links
http://msdn.microsoft.com/en-us/library/h4kete56.aspx#Y323
http://www.4guysfromrolla.com/articles/112906-1.aspx#postadlink

hope it helps you...