Log In · Register

 
positioning/alignment
akira66
post Aug 13 2004, 08:53 PM
Post #1


Member
**

Group: Member
Posts: 16
Joined: Mar 2004
Member No: 9,005



I'm trying to position my boxed xanga. I'm using this :
<DIV class="boxed" align="center" valign="middle">

and I added this to my stylesheet:
div.boxed
{overflow: auto;
width: 560px;
height: 385px;
background-color: #ffffff;
background-image: url(PLACE URL HERE);
background-position: bottom left;
background-attachment: fixed;
background-repeat: no-repeat;}

...I've tried to change the alignment but nothing happens, am i doing something wrong?
 
 
Start new topic
Replies
Phischie
post Aug 13 2004, 09:59 PM
Post #2


The Phisch
****

Group: Member
Posts: 195
Joined: Aug 2004
Member No: 38,433



Div's aren't alignable that way... I don't think. I mean you can't just say "center" and it will center itself... the best thing to do is to add margin-top: pixels; and margin-left: pixels; and center it the best that you can.

There IS a way that you can center a DIV using the <center> tags... but I don't remember what the position was...

PS: Valign is a table thing... it doesn't work for DIV's.

OT: Dude, you're makin me look dumb here by editing your posts... ><
 

Posts in this topic


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