Wrapper/outer div to keep inner div top right regardless of resolution:

January 13th, 2010 by admin
3

Wrapper/outer div to keep inner div top right regardless of resolution:

<html><head>
<style type=”text/css”>
#divnamewrap{
height:140px;
width:100%;
position:absolute;
left:0px;
top:0px;
}
#divname{
height:140px;
width:185px;
position:relative;
z-index:0;
float:right;
}
</style>
</head>

<body>
<div id=”divnamewrap”>
<div id=”divname”>div content here </div> <!– top right this div will appear that’s why we used wrapper so that change of resolution should keep it on right –>
</div>
</body>
</html>

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in CSS Techniques, Computer Programming, Tutorial, User Interface Egnineering, Web Programming, XHTML Techniques

3 Responses to “Wrapper/outer div to keep inner div top right regardless of resolution:”

  1. Helo
    awesome post – i’m creating video about it and i will post it to youtube !
    if you wana to help or just need a link send me email !

  2. PEDRO says:


    PillSpot.org. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. Low price drugs. Order drugs online

    Buy:VPXL.Viagra.Viagra Super Active+.Soma.Cialis Professional.Cialis.Viagra Super Force.Zithromax.Levitra.Maxaman.Cialis Soft Tabs.Cialis Super Active+.Super Active ED Pack.Tramadol.Propecia.Viagra Professional.Viagra Soft Tabs….

Leave a Reply