StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 11-20-2011, 05:04 AM
Danny Maddocks Danny Maddocks is offline
Registered User
Genesis Member
 
Join Date: Oct 2011
Location: Bristol, UK
Posts: 90
Default Fit Text to Screen on Mobile Devices and <center> tags

Hi,

I have used the <centre></center> tags on my main sales page - when I view the sales page on a mobile device it doesn't resize / re-fit the text to fit the screen when you zoom in / double tap - so you have to actually scroll across to read - not ideal!

I am assuming the <center> tags are the reason as all my other pages (without the center tags) are fine.

I'm by no means a web dev so this may be a common problem, I'm hoping someone can shed some light - am I able to keep the content on my sales page centred and have it fit text to screen on mobile devices or is it one or the other?

the page in question is http://babysfirstcalendar.co.uk/buy-...first-calendar and I'm using the Enterprise Child Theme.

Thanks

Danny
  #2  
Old 11-20-2011, 07:58 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

To center text, the best option would be to use a text-align: center; css rule. There are a lot of ways to do that, but if you are new to CSS and HTML, the simplest is to just use the stuff built into WordPress. In the visual editor there is a button that will center your text if you click on it. It will convert the html to use an inline style to center things like this
HTML Code:
<p style="text-align: center;">this text should be centered</p>
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #3  
Old 11-21-2011, 06:48 AM
Danny Maddocks Danny Maddocks is offline
Registered User
Genesis Member
 
Join Date: Oct 2011
Location: Bristol, UK
Posts: 90
Default

Thanks Nick,

Have now used the inbuilt centre button - this to me just seems to add a lot more code to the html - lots of

<p style="text-align: center;">centred text</p>

throughout the document - rather than just a single <center> at the top and a single </center> at the bottom.

As you rightly pointed out I AM new to html and css so will keep it like that for now.

It's not solved the problem however...still when viewing the page on a mobile device and double tap to zoom in it doesn't fit the text to screen like it does on my un centred pages/posts
  #4  
Old 11-21-2011, 06:55 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

Then that will be related to how the device interprets the centering and how it handles it's own "zooming" effect.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #5  
Old 11-21-2011, 08:12 AM
Danny Maddocks Danny Maddocks is offline
Registered User
Genesis Member
 
Join Date: Oct 2011
Location: Bristol, UK
Posts: 90
Default

Ok Nick thanks for your help.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio Player Compatibility for Mobile Devices? seth17 General Discussion 3 07-03-2011 11:21 PM
Agent Theme 3.0 Does Not Center on Screen hometourjay General Discussion 11 07-30-2010 10:42 AM


All times are GMT -5. The time now is 04:19 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.