Log In · Register

 
browser div problems, in safari my profile is fine but everything else is off
lbroskee
post Jun 29 2008, 02:17 PM
Post #1


Senior Member
***

Group: Member
Posts: 50
Joined: Aug 2007
Member No: 555,108



in firefox 3 of the areas shift down for some reason


TEST PAGE...ok i fixed this (i think, tell me)


real page, way off, no clue y
must b under 18 to see real due to my mom being nosy. lol


BTW both pages have the same coding

if u want to see the coding and can fix that plz let me know
 
 
Start new topic
Replies
allvanishing
post Jun 30 2008, 09:17 PM
Post #2


simple and clean...
****

Group: Official Designer
Posts: 149
Joined: Nov 2006
Member No: 478,009



CODE
<div style="width: 1024px; height: 768px; left: 50%; margin-left: -512px;">
blah
</div>

To center a div, you move it to the left 50%, which makes the div start in the middle of the screen. Then margin-left is used. A negative number moves it more to the left, and a positive number moves it to the right.
 

Posts in this topic


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