Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2014-07-21 23:27:22

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Centering page content

In CE3 there was an option to center page content. That appears to be missing from CE4.

I cant find any sort of alignment options in Markdown either.

Can I center a Markdown page's content, or do I have to do it all in HTML now?

Offline

#2 2014-07-22 01:33:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Centering page content

Markdown doesn't allow for alignment.
I don't see any alignment options so use styling with html to center alignment. For example
<h1 style="text-align:center;">Your Heading</h1>


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2014-07-22 21:53:54

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Centering page content

Since you can't have markdown inside HTML, I guess I have to just redo everything on the page in HTML.

Offline

#4 2014-07-23 03:04:43

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Centering page content

You can have HTML inside your markdown code. This should work.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2014-07-23 10:30:45

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Centering page content

I just dumped my Markdown into a Markdown editor, copied the generated HTML and wrapped it in a <div align=center> ... </div>.

I can then just maintain the HTML and forget about Markdown.

Offline

#6 2014-07-23 12:22:23

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Centering page content

align=center is deprecated and not supported in HTML5, you should be using css instead:
<div style="text-align:center;">.....</div>

http://www.w3schools.com/tags/att_div_align.asp


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2014-07-23 13:25:50

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Centering page content

The 7.0.5 update will include text-alignment control for each page's content and sidebar.


Matt

The Turning Gate, http://theturninggate.net

Offline

#8 2014-07-24 00:41:42

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Centering page content

rod barbee wrote:

align=center is deprecated and not supported in HTML5, you should be using css instead:
<div style="text-align:center;">.....</div>

http://www.w3schools.com/tags/att_div_align.asp

Thanks for the tip Rod.

I am an old school HTML guy. I know CSS, but I tend to use HTML for "quick & dirty" stuff like this. I will definitely change my code.

(at least I rarely use tables anymore :-) )

Offline

#9 2014-07-24 00:43:19

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Centering page content

rarely?? smile


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB