Jump to content
Sign in to follow this  
adesouza

Type Is Not Resizing Responsively

Recommended Posts

adesouza    0
adesouza

I have a section of a site that is set up to have a 6 column grid using the span2 class.

When I resize the browser window, the span2's respond and resize, but the h2's within them stay the same font size, which eventually forces them to overlap.

Why isn't the font resizing with the columns/ How can I make the text resize?

 

The h2 styling is currently being applied via a .less file with the following code:

 

h2: @baseFontSize * 1.9;

@baseFontSize: 20px;

 

 

You can check it out at:

http://varsity.wpengine.com/what-we-do/

 

It's the numbered section at the top of the page.

 

Thanks in advance!

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Ade, since we spoke in live I've set up a replicate of your set up on my test site. I know you said you were using one of the Pagelines premium plugins - LESS Developer so I'm not sure if that add's any additional functionality and that's what you're trying to get to work or not.

 

In the Standard Framework, the font size isn't responsive for the paragraph text or headings in general. Resizing the browser window will resize the text container and wrap the text inside, but the text size doesn't actually scale down. Which is why the header text is then overlapping when you reduce the screensize, as they are all single words they can't wrap down onto another line. 

 

Two ways round this, first would be to resize the header text so its was smaller and the overlapping wouldn't occur. Or use some css with @media enquiries to scale the text down depending on the size of the browser window, like the example below.

.hentry h3  {
  font-size: x-large;
}
@media (max-width: 1000px) {
.hentry h3  { font-size: large; }
}
@media (max-width: 500px) {
.hentry h3  { font-size: medium; }
}

I've tested the above on my test site, if you want to see it in action visit - http://client1.surreydiscountwebsites.co.uk/image-page-2/


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • DonRicardoRVM
      By DonRicardoRVM+
        First of all, sorry for my bad English.  I am developing an ecommeece with wp, woocommerce, PL5 and quickshop, and I need to do some changes in the simple product grid. I want to change the classes of some divs, but I can't find the templates. 
      Also, I change the grid of the category products pages, but I didn't make it correctly.
      This is the cat archive's: http://globosdemar.com/wp/categoria-producto/camisetas-para-ninos-y-ninas/
      Can you help me?
    • lionel1
      By lionel1
      Hi,
      I use on my home page " impulse module " but when i look on my iPhone the image is cut and not responsive .
      i only have this problem with this module not with the other one .
      thanks for ur help
      website / www.elonakane.com 
      Lionel 
       
    • kwaoru
      By kwaoru
      Hi,
       
      I have been using DMS and pagelines.
      I am facing to a huge trouble with the appearance of one of my page on mobile (smart phones) built with pagelines.
      However I haven’t come to any solutions to organise either edit the appearance of mobile view to look neat or deactivate the responsive function. 
      Now it looks totally messy on the phone...
       
      1. Is there any way to edit the appearance of the mobile version (responsive theme)?
      2. Is there any way to deactivate responsive function?
       
      If I could receive support from you to go thorough this process I would be happy to be a pro member. 
       
      Looking forward to hearing from you.
    • Paul
      By Paul+
      I have woocommerce store, product shows title and price fine until reduce screen with on a tablet/mobile phone the price and title gets removed?  Any ideas? 
      Here's an example page: https://thelaptopfixers.com/product/operating-system-re-install/
      Try it on both desktop PC browser then resize to mobile/cell phone size!  
      Thanks
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×