Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old December 30th, 2002, 03:30 PM
Volitics Volitics is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Knoxville, Tennessee (U.S.A.)
Posts: 58 Volitics User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 15 sec
Reputation Power: 6
How To Get Layer To Move With Page


::Problem::

I have a text advertisement table that I want to place on an HTML page. I want the text to not collapse when I downsize (make smaller) the browser window.

If I place the text advertisement table inside a "Layer" the table and text do not collapse when I make the browser window smaller. The HTML code for the layer is as follows:

<div id="Layer1" style="position:absolute; left:577px; top:145px; width:200px; height:115px; z-index:1">123, etc.</div>


But the problem is the Layer does not move. In other words if I click and grab the right side of the browser window and move the right side to the left the Layer stays in it's current position and does not move with the downsizing of the window.

As an example please look at the little rectangular advertisements at the right side of the page of the Google search engine. If you click and grab the right side of the browser window and move it left the little advertisements move left along with the right window edge. That is what I am trying to accomplish.

Question: Does anyone know how I can get my text ads to move like Google's?

Thank you in advance.

Best Regards;

Volitics


Reply With Quote
  #2  
Old December 30th, 2002, 04:49 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
Code:
<style type="text/css">
.BOX {
	background-color: #006666;
	border: 1px solid #000000;
	position: absolute;
	visibility: visible;
	z-index: 1;
	height: 250px;
	width: 125px;
	top: 100px;
	right: 50px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #FFFFFF;
	padding: 4px;
}
</style>

<div class="box">Your Floating Box</div>
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
  #3  
Old December 30th, 2002, 05:34 PM
Volitics Volitics is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Knoxville, Tennessee (U.S.A.)
Posts: 58 Volitics User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 15 sec
Reputation Power: 6
Thank you for the help.

jpenn;

Thank you for your kind assistance.

Best Regards;

Volitics

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > How To Get Layer To Move With Page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway