Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 19th, 2008, 02:17 AM
Registered User
 
Join Date: Sep 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sandeepbhutani304 Send a message via Yahoo to sandeepbhutani304
Default Position Div with CSS

Hi,

I am want to position my div blocks on page. I am using below code

Code:
<body>

<div style="position:absolute; width:90%;">

<div style="position:relative; float:top; border:solid 1px black;">

Below Top with full width

</div>

<form id="form1" runat="server">


<div style="position:relative; float:top; border:solid 1px black;">

Top full width

</div>

<div style="position:relative; float:right; border:solid 1px black;">

right bottom

</div>

<div style="position:relative; float:left; border:solid 1px black;">

left bottom

</div>


<div style="position:relative; float:center; border:solid 1px black;">

in the center

</div>

</form>


</div>


</body>
which gives me this output:

Below Top with full width
Top full width
left bottom in the center right bottom




Now my problem is I want div containing "Below Top with full width" under "Top full width " div. I actually want to place some contents that should not be under <form> tag.

Please suggest me changes in the css to be applied.



--
Sandeep Bhutani
http://net4techies.somee.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar Control Title Doesn't Position with CSS.. kevorkian ASP.NET 2.0 Basics 5 June 19th, 2008 11:33 AM
CSS 100% Height DIV Problem kwilliams CSS Cascading Style Sheets 2 August 22nd, 2007 09:55 PM
div within a div and inherting the height brettdavis4 CSS Cascading Style Sheets 1 January 23rd, 2007 09:59 AM
<div> with a absolute position crmpicco Javascript How-To 0 August 30th, 2005 05:42 AM
position 2 relative <div> in switched order Kabe CSS Cascading Style Sheets 4 November 24th, 2004 12:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.