jordiee Member Mar 20, 2017 #1 Hello, I was wondering how I would center a background in Xenforo? Like whats the center of the page in px?
Hello, I was wondering how I would center a background in Xenforo? Like whats the center of the page in px?
P Paul B XenForo moderator Staff member Mar 20, 2017 #2 Typically you don't need to know the page width or center - you would just use something like: https://css-tricks.com/snippets/css/absolute-center-vertical-horizontal-an-image/ Upvote 0 Downvote
Typically you don't need to know the page width or center - you would just use something like: https://css-tricks.com/snippets/css/absolute-center-vertical-horizontal-an-image/
jordiee Member Mar 20, 2017 #3 Brogan said: Typically you don't need to know the page width or center - you would just use something like: https://css-tricks.com/snippets/css/absolute-center-vertical-horizontal-an-image/ Click to expand... Were would I put this code? Upvote 0 Downvote
Brogan said: Typically you don't need to know the page width or center - you would just use something like: https://css-tricks.com/snippets/css/absolute-center-vertical-horizontal-an-image/ Click to expand... Were would I put this code?
P Paul B XenForo moderator Staff member Mar 20, 2017 #4 It depends - where and how are you adding the background? Upvote 0 Downvote
jordiee Member Mar 23, 2017 #5 Style Properties > General > Body This is were i'm adding it too Upvote 0 Downvote