Home › Forums › Weaver Xtreme Theme › Entry page with centred text
- This topic has 7 replies, 3 voices, and was last updated 8 years ago by
scrambler.
-
AuthorPosts
-
June 1, 2015 at 20:11 UTC - Views: 5 #17833
paulajohnson
ParticipantI am banging my head against a wall trying to find a way to make this work.
My client wants the entry page (index page) of her website to be pain grey with 2 lines of text in the centre of the browser window (on all browsers) that you click on to take you into the main site.
I can get my head around making the text link to the rest of the site and can get the rest of the site to work but have no idea how to centre the 2 lines of text so that they will be centred in all browsers.
Any ideas?
Paula
June 1, 2015 at 21:01 UTC - Views: 5 #22368scrambler
Moderatorplease provide a link to your page…
June 1, 2015 at 22:15 UTC - Views: 5 #22369Weaver
KeymasterI really can’t understand your question. The index page technically means the default blog page – and that has no provision at all for adding text other than the posts displayed.
If you mean just a couple of lines of centered text on a standard page that is serving as the site’s front page, then this would be done simply by using the Page editor – use the formatting buttons.If by centered top to bottom as well, there is no good way to do that short of JavaScript.June 1, 2015 at 23:48 UTC - Views: 5 #22370scrambler
ModeratorVertical centering could be achieved on variable height browsers if you have the “plus” plugin.
Plus has a page option to force the page to be full browser height. Once that is done, you can add the CSS below in the Per page Style box to vertically center the content area
#content {position:absolute;top:50%;left:50%;-webkit-transform: translate(-50%, –50%);
transform: translate(-50%, –50%);}June 2, 2015 at 10:10 UTC - Views: 5 #22371paulajohnson
ParticipantThanks Weaver & Scrambler
Sorry, using the term index page was an overhang from my old html days.
Yes I am looking to make text centre top to bottom in the window on a standard page:
http://www.jessicacooper.co.uk/dev/
I am using the plus version so will try Scrambler’s suggestion and feed back.
June 2, 2015 at 10:58 UTC - Views: 5 #22372paulajohnson
ParticipantYay! Thank you so much.
I have been trying to do this with divs/css/html for a fortnight.
I should have just consulted the oracle to begin with.
(Bows to the superior wisdom)
June 2, 2015 at 15:46 UTC - Views: 5 #22373Weaver
KeymasterI didn’t think of the full browser height option – which does use JavaScript.
So, clever CSS + the full height option gives the result you were looking for.
June 2, 2015 at 16:49 UTC - Views: 5 #22374scrambler
ModeratorActually if your page is that empty, you did not even need the per page full browser height option.
Hide the entire footer and entire header, then use the CSS below in the per page style box to center the wrapper
#wrapper {position:absolute;top:50%;left:50%;-webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}
-
AuthorPosts
- You must be logged in to reply to this topic.