Log In · Register

 
div position
xxxlilazngrlxxx
post Apr 29 2004, 12:20 AM
Post #1


lalalala...
****

Group: Member
Posts: 135
Joined: Jan 2004
Member No: 1,294



does anyone know how to position a div box so it`s to the left right etc etc...i juss can`t seem to get it to work...my xanga is
www.xanga.com/sabbyrina
 
 
Start new topic
Replies (1 - 2)
whomps
post Apr 29 2004, 12:25 AM
Post #2


:hammer:
*******

Group: Staff Alumni
Posts: 9,849
Joined: Mar 2004
Member No: 7,700



Insert this in your DIV code:

margin-left: howevermanyPIXELS; margin-top: howevermanypixels;


Change the number of pixels in the code. Use NEGATIVE numbers in the 'margin-top' part to make the div go higher and over the image. The bigger the number, the lower it will go.

Change the number in the 'margin-left' code. Smaller number means more to the left, and larger number means more to the right.
 
lookitskim
post Apr 29 2004, 06:50 AM
Post #3


I HEART NICHOLAS TSE
******

Group: Official Member
Posts: 2,726
Joined: Apr 2004
Member No: 14,116



CODE
<!-- begin code provided by createblog.com -->
<div style="width: 0px;
BACKGROUND-COLOR:none; background-image: url(); background-attachment: fixed; repeat: no-repeat;
border: none;
height: 01%;
padding-left: 300px;
padding-right: 0px;
padding-top: 50px;
position:static; margin-top:-500px">
<!-- end code provided by createblog.com -->

use the padding.... example: padding-left pushes the blog to the right.. padding-top pushes the blog down. just change the pixel of it..

u might want to get rid of the footer links.. add this to your css..
CODE
<!-- begin code provided by createblog.com -->
table.navigation, table.footer {display: none;}
<!-- end code provided by createblog.com -->
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: