Vault9 Modding Vault9 Graphics Vault9 Code Vault9 Net Vault9 OS Vault9 Gaming Vault9 ChillZone Vault9 Tech Vault9 Archives       Vault9 Global9       Vault9 Fusion     Vault9 Blog     Vault9 Network          
 

Please Note!

This is a read-only board, no new topics or registrations are allowed. The Code Vault has moved to http://forums.vault9.net - Be sure to find more information there!


 
Reply to this topicStart new topic
> Layers, Need some help
post Aug 1 2005, 04:21 AM
Post #1


proGFXGamer
Group Icon

Group: Regular Member
Posts: 447
Joined: 1-September 03
From: Durban
Member No.: 1,617

Sex: Male



OK.

What the command to specify a layer to snap to corners?
I have a layer which is 220 x 200 (web banner) and I want the layer to autoalign to "top" "right". I dont want to specify exact x y (if u know what i mean)

HELP!!! biggrin.gif


--------------------
user posted image
user posted image
user posted imageuser posted image
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Aug 1 2005, 04:21 AM
Post #


Member


Group: Administration

Joined: Today, 11:05 PM





Quote PostGo to the top of the page
post Aug 1 2005, 12:47 PM
Post #2


d-_-b
Group Icon

Group: Administration
Posts: 924
Joined: 23-October 03
From: Cape Town, SA
Member No.: 2,090

Sex: Male



Try this:

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Top Right Banner Examples</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
</head>
<body>
<h1>Floating Banner using "position:absolute"</h1>

<!-- banner code -->
<div id="topRightBanner" style="position:absolute;top:0px;text-align:right;width:100%;height:200px;">
<img src="http://www.google.com/intl/en/images/logo.gif"/>
</div>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce mauris mauris, feugiat eget, pretium ut, molestie id, erat. Quisque gravida tincidunt justo. Integer facilisis placerat felis. Praesent sit amet diam non tortor convallis bibendum. Curabitur arcu augue, faucibus et, cursus non, consequat nec, nulla. Fusce nec orci eget arcu interdum cursus. Morbi sollicitudin tristique metus. Sed fringilla ante sit amet diam. Maecenas congue dui eu justo. Nunc neque. Duis libero dolor, ultricies non, mattis in, posuere ac, quam. Nulla vitae leo. Nulla suscipit est vel urna. Phasellus volutpat. Sed commodo lacinia ante. Curabitur pretium nulla in tellus varius ultrices.
Vivamus sed quam in ante tristique laoreet. Aliquam et est. In hac habitasse platea dictumst. Sed elit. Praesent tempor purus quis tortor. In elementum metus at ante. Mauris justo ante, porttitor in, elementum sit amet, ornare vel, diam. Praesent condimentum volutpat velit. Nullam ornare, mauris in tempus vehicula, tortor purus pellentesque ante, vitae vestibulum ante neque et turpis. In pharetra lectus eget tellus. Maecenas aliquet. Nulla massa nisl, blandit nec, molestie eu, bibendum sit amet, enim. Curabitur vulputate lorem sit amet magna. Donec lorem erat, facilisis eu, tempor non, scelerisque in, massa. Vestibulum volutpat gravida lorem.
Proin accumsan semper elit. Aenean pede turpis, volutpat in, ultricies sit amet, hendrerit accumsan, mi. Vestibulum dui augue, blandit quis, laoreet dictum, tempus in, velit. Integer porttitor consequat felis. Phasellus fringilla magna sed erat. Praesent tempus. Maecenas consectetuer rhoncus nibh. Morbi at odio. Sed accumsan auctor purus. Nunc lacinia. Nam commodo volutpat libero. Curabitur luctus interdum wisi. Sed tempor ipsum quis augue.
</body>
</html>


Bear in mind that this will float the layer above the basic page, through use of "position:absolute", so any text will continue underneath it.


--------------------
A hand in the bird is worth two on the bush.
user posted image user posted image
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Aug 2 2005, 12:01 AM
Post #3


proGFXGamer
Group Icon

Group: Regular Member
Posts: 447
Joined: 1-September 03
From: Durban
Member No.: 1,617

Sex: Male



ohh i c. u set the width 100% and align right.. thanx alot Standarsh! smile.gif
User is offlineProfile CardPM
+Quote PostGo to the top of the page

Reply to this topicStart new topic

Collapse

> Similar Topics

Topic Title Replies Topic Starter Views Last Action
No entries to display


 



- Lo-Fi Version Time is now: 21st March 2010 - 11:05 PM
Privacy Policy
South Africa's Top Sites Kinetiq