Hi, need help with a Myspace DIV layout



Programming Help Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Hi, need help with a Myspace DIV layout Expand / Collapse
Author
Message
Posted 2/5/2007 7:10:11 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/5/2007 10:53:42 AM
Posts: 2, Visits: 8
Hi, i was looking for some help in creating a myspace DIV layout. I know it uses CSS code, but i was wondering if someone could help me centre my profile.

So far i've come up with this:

.holder
{
width:800px;
height:600px;
align:center;
top:50px;
border:1px solid black;
}

Thats for my main window. Can anyone help me?
Post #183
Posted 2/5/2007 8:31:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/5/2007 9:11:53 AM
Posts: 3, Visits: 5
Well I had a look at your code and its pretty obvious where you're going wrong here.

.holder
{
width:800px;
height:600px;
align:center;
top:50px;
border:1px solid black;
}

is what you have at the moment. I'm taking you're wanting it at 800px wide and 600px high in the centre of the page. This is what it should be like

.holder
{
position:absolute;
width:800px;
height:600px;
left:50%;
margin-left:-400px;
top:50px;
border:1px solid black;
}

The following code should do what you want. To explain it, as you want your box to be 800 px wide, we set the left margin to 50% across the page. We then position the box 400px to the left of the margin (so -400px) so that the centre of your box is in line with the centre of the page.

Hope that clears it up for you :-)

Post #185
Posted 9/13/2007 6:58:12 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/13/2007 6:53:51 PM
Posts: 7, Visits: 1
wow that is a lot of code

lulu raska
Post #1472
Posted 9/13/2007 6:58:38 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/13/2007 6:53:51 PM
Posts: 7, Visits: 1
i hope you figured it out. a lot of people know that stuff

lulu raska
Post #1473
Posted 8/1/2008 9:00:34 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 9/12/2008 3:14:14 PM
Posts: 35, Visits: 22
So is there a way to make a background a rotating .gif that changes every so often?
Post #1809
Posted 8/4/2008 8:32:59 AM
Admin

AdminAdminAdminAdminAdminAdminAdminAdmin

Group: Administrators
Last Login: 10/20/2011 4:56:10 PM
Posts: 143, Visits: 352
You could just use an animated GIF and set it as your background...

(Warning: If you are prone to seizures, do NOT visit the link below)
http://www.lucifer.com/~sasha/anim/ab.html
Post #1818
Posted 4/16/2009 1:44:35 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 4/16/2009 2:08:02 PM
Posts: 11, Visits: 133
why do all these sound so complicated

carman most
Post #3285
Posted 11/28/2009 7:42:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/28/2009 7:55:34 AM
Posts: 8, Visits: 2
HTML is far easier
Post #4683
Posted 11/28/2009 7:43:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/28/2009 7:55:34 AM
Posts: 8, Visits: 2
lots of DIV generators if you google it
Post #4684
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: ProgrammingHelp, Viral Unity, Matt.Hill, DaveL, Alex.D

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 8:21am

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.187. 6 queries. Compression Disabled.