Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Change Layout MIN width if width is lower than X pixels?

Old Oct 12, 2013, 04:05 PM
Factorfiction's Avatar
24 posts · Jan 2011

I have a website with 70% fluid width, minimum 640 pixels and maximum 950 pixels, which looks great on laptops, tablets and big screens.

But, when using an iPhone I wish to lower the minimum width to fit the screen better.

Is it somehow possible to override the theme settings so that minimum width is 640 pixels down to 321 pixels and when the size of the website measures 320 pixels the minimum width changes to 320 pixels?

Edit: Whops, wrote "pixels" four times in one sentance

Last edited by Factorfiction; Oct 12, 2013 at 04:07 PM. Reason: Embarrassment
Old Oct 13, 2013, 03:54 AM
Factorfiction's Avatar
24 posts · Jan 2011
No one answered yesterday, so I played along myself and I think I kinda solved.


HTML Code:
@media (min-width:1px) and (max-width:320px) {
            div#wrapper {min-width:320px;}
            h1 {font-size: 24px;}

Now when I bring down the width of my browser down to 320, it gets resized!

Problem: Looks great on http://iphone5simulator.com but I just tested the website on a real iPhone 5 and there it dosen't get resized.

Anyone got a clue about what's the problem?
Old Oct 13, 2013, 05:06 AM
juggledad's Avatar
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
google found this http://stackoverflow.com/questions/1...non-responsive

you will want to put it in the ato->add HTML/CSS Inserts->HTML Inserts: Header
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Pages won't center, nor will Layout Width change anything willwork Center area post/pages 3 Feb 16, 2011 02:15 PM
LAYOUT: 100% width & (Middle + sidebar) centered width 960px => how to do? bender57 Sidebars & Widgets 2 Jan 27, 2011 01:50 AM
[SOLVED] Layout width being ignored! sjedwardz Center area post/pages 1 May 31, 2010 01:56 PM
[SOLVED] Layout WIDTH vs. Layout Container Olivier Header configuration & styling 2 Jul 13, 2009 06:18 PM

All times are GMT -6. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.