Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What's wrong with me!? [ centering question w/ XHTML]

Featured Replies

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!

ziblretieredwarriorchicpc7.jpg

[ 87 Combat ] [ 1240 Total ] [ Ex-RSC Professional Merchant ]

12.20.01 - 10.5.05 || Status: Retired

Total losses in 5 years = just over 630 million gp (BILLIONS in today's prices)

Try adding right: 50%?

Trying to get visitor hits I see..

10postchm2105.png

8,180

WONGTONG IS THE BEST AND IS MORE SUPERIOR THAN ME

#1 Wongtong stalker.

Im looking for some No Limit soldiers!

Trying to get visitor hits I see..

 

I was thinking the exact same thing! I just didn't say anything.

  • Author
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!

ziblretieredwarriorchicpc7.jpg

[ 87 Combat ] [ 1240 Total ] [ Ex-RSC Professional Merchant ]

12.20.01 - 10.5.05 || Status: Retired

Total losses in 5 years = just over 630 million gp (BILLIONS in today's prices)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.