Zibl Posted December 24, 2008 Share Posted December 24, 2008 I've coded a javascript for my website. It's a message popup automatically generated when you first visit the website. The only problem is I can't get the thing centered both vertically and horizontally. Here's the current part of the code that positions the box: Now obviously, that is not correct. I realize this. In that current setup my popup box is appearing in between the very right and center. I don't know if I'm just having a brain fart or if I've just never centered something both vertically [b]AND[/b] horizontally :? . Either way.... help anyone? [color=#FF0000]EDIT #2: Website link removed. I wasn't trying to get hits, just showing you people what exactly was wrong :roll: .[/color] RS Name: Zibl || Click Signature for my RS Life Story![ 87 Combat ] [ 1240 Total ] [ Ex-RSC Professional Merchant ]12.20.01 - 10.5.05 || Status: RetiredTotal losses in 5 years = just over 630 million gp (BILLIONS in today's prices) Link to comment Share on other sites More sharing options...
sloter Posted December 24, 2008 Share Posted December 24, 2008 Try adding right: 50%? Link to comment Share on other sites More sharing options...
Wongtong Posted December 24, 2008 Share Posted December 24, 2008 Trying to get visitor hits I see.. 8,180WONGTONG IS THE BEST AND IS MORE SUPERIOR THAN ME#1 Wongtong stalker.Im looking for some No Limit soldiers! Link to comment Share on other sites More sharing options...
sloter Posted December 24, 2008 Share Posted December 24, 2008 Trying to get visitor hits I see.. I was thinking the exact same thing! I just didn't say anything. Link to comment Share on other sites More sharing options...
Zibl Posted December 24, 2008 Author Share Posted December 24, 2008 Trying to get visitor hits I see.. Not in the slightest. At first I didn't even have the link in my post, but I went back and added it just to show what exactly the box looked like. I'll gladly remove it if you'd like :roll: . On topic: I've tried right: 50% but it doesn't even do anything. I've also tried veritcally-align:center (I believe that's what I used :-# ) and that did nothing either. It's also possible that I've used the correct code but another code (i.e. width: 200px) interferred making the code not work. RS Name: Zibl || Click Signature for my RS Life Story![ 87 Combat ] [ 1240 Total ] [ Ex-RSC Professional Merchant ]12.20.01 - 10.5.05 || Status: RetiredTotal losses in 5 years = just over 630 million gp (BILLIONS in today's prices) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now