User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 363,428 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,159 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting

Taking the plunge into Layers

Join Date: Apr 2007
Location: Birmingham
Posts: 366
Reputation: Fungus1487 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 34
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Whiz

Re: Taking the plunge into Layers

  #7  
May 6th, 2008
well i am almost certain you cant use relative positioning with the technique you are using but i have frequently used the opening div as a placeholder for inner relative elements.

E.g if you move your css into an outer div and wrap what you already have. (without moving the position:relative information) you get.

<div style="float:right;width:20%;">
	<div style="position:relative;background-color:blue;left:0px;top:5px;z-index:4;">
	  <p class="yrs">yyyy - yyyy</p>
	</div>
</div>
<div style="width: auto;margin-right:20%;">
	<div style="position:relative;background-color:blue;left:0px;top:0px;z-index: 4">
	  <p class="c5">Company</p>
	  <p class="c4">Job Title</p>
	  <p class="c4">Description. (This can be quite long and is a key factor for making the height automatic since</p>
	</div>
</div>

im still not 100% sure what your after. Hopefully that helps.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote  
All times are GMT -4. The time now is 1:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC