![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
Ok Nick thanks for your help.
|
| Thread Tools | |
| Display Modes | |
|
|
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 |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us