Quick question about making a site

  • Wanna Join? New users you can now register lightning fast using your Facebook or Twitter accounts.

Toro

Sicc OG
Apr 25, 2006
10,812
46
0
44
www.myspace.com
#1
I'm pretty sure it's possible but I can't remember the way, but can you center a AP Div so that it stays center aligned on the page no matter how big the window is?
 

Toro

Sicc OG
Apr 25, 2006
10,812
46
0
44
www.myspace.com
#6
I tried that and it didn't work, I think I'm doing it wrong tho. Are you able to put AP Divs inside the wrapper div? I feel hella stupid, I haven't done shit with websites in hella long ha.
 
Oct 8, 2005
1,544
40
0
45
www.myspace.com
#7
what you mean with AP divs? but yea you can place what you want inside your wrapper.. the wrapper div should be like this..

css:

#wrapper
{
width: your with;
margin: auto;
text-align: center;
}
 

Toro

Sicc OG
Apr 25, 2006
10,812
46
0
44
www.myspace.com
#8
What I'm saying is like, I got 4 things in 4 separate AP divs like so:

(theres one more below that)
But the problem is with AP divs (I think) is that they don't automatically center with the page when you change the browser window's size larger. So I tried putting the AP Divs into the wrapper div but that still ain't working. I know there's a way to do this not with AP divs and still get the same effect but I'm not the best with making sites.
 
Jun 4, 2004
3,183
7
0
#13
I don't build much sites anymore but I know you can center CSS using a container.

Place all your other divs inside the container making the alignment/positioning relative then in your CSS make the container center aligned. I think if you add those it should center everything up. Thats what I have done in the past with CSS Layouts.

You got a live site we can look at?
 
Jan 27, 2006
906
199
43
39
#16
* {
padding:0;
margin:0;
}
#wrapper{
margin:0 auto;
}

i dont know what AP is..

if you have a dev area for me to inspec it would be e z r but the above code will center the main div that is if your main div id = wrapper.