top
Videos TV & Movies Channels Community

Shishio's Custom Profile Group

body {background: url(http://i29.tinypic.com/20ue9fm.jpg) fixed; color: green;} #veohPage{ background: transparent;} .colRight .users-box:HOVER,.users-mid .users-box:HOVER {background: black; color: white;} .collection-head:HOVER, ul.tabs:HOVER, .tabContainer:HOVER{background:black}

manager:
ShishioKagezuchi 
category:
Groups > Howto
permalink:
videos:
5
members:
6116
discussions:
3666
created:
7/5/08
updated:
9/18/19
« view all topics New Topic
1 - 5 of 5 Replies
added: 11 yrs ago
updated: 11 yrs ago

ShishioKagezuchi manager

#veohPage and the header are always centered in the middle of the screen on all screen-sizes by default, at least thats how it appears to me, so what is it in the HTML or CSS that centers a div for all screens like that?

Reply to this Topic

added: 11 yrs ago

Moronicidiot

I think it's because the #veohPage has a "clear:both" style which doesn't let it float to the left or right of the profile so it has to be centered... but I honestly have no clue if that's the reason. :3 Just wait til chemera replies


added: 11 yrs ago

chemera2008

The 'clear' property only clears effects of earlier 'float' property.


added: 11 yrs ago

chemera2008

If you want to place a box at center position, use 'margin:auto;'. I think FF,Safari,Opera,and the standard mode of IE7 will work. But it might not work in IE6 and the compatibility mode of IE7. It is a known bug of IE6. If it does not work in old IE,add also 'text-align:center;' into the CSS of the box.


added: 11 yrs ago

chemera2008

Accurately, it is 'margin-left:auto; margin-right:auto;',because 'margin:auto' set 'auto' not only margin-left and margin-right also margin-top and margin-bottom.


added: 11 yrs ago

ShishioKagezuchi manager

That makes sense and it was very important to me. Thank you for this answer and all others are good.



People who like this group also like

Copyright © 2008 Veoh Networks, Inc.  |  Terms of Use  |  Copyright  |  Privacy Policy