Website Auto Adjust For Screen Resolution

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
scadooshbag
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Apr 09, 2009 3:33 pm

Website Auto Adjust For Screen Resolution

Post by scadooshbag » Wed Oct 07, 2009 5:23 pm

What is the easiest way to have web pages automatically adjust per the users screen resolution?

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Sat Oct 17, 2009 4:53 am

The rhuk_milkyway template uses a mix/max width and auto left and right margins to get the template to resize dynamically with the browser (or screen resolution).

Let me know if you need help doing this.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

glopez
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Oct 22, 2009 3:31 pm
Location: Colombia
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by glopez » Thu Oct 22, 2009 3:38 pm

i need help with the auto adjust in the ja_purity template, see when i get to my site in a different resolution or change the explorer size my images go everywhere if you can help ill apreciate it

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Thu Oct 22, 2009 4:10 pm

Can you post a link to the site?
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

glopez
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Oct 22, 2009 3:31 pm
Location: Colombia
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by glopez » Thu Oct 22, 2009 7:05 pm

www.sistema-5.com
its in spanish tnx

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Thu Oct 22, 2009 7:22 pm

I would modify this file:
http://www.sistema-5.com/templates/ja_p ... /style.css

It will be found here in your Joomla directory:
.../templates/ja_purity/styles/background/lighter/style.css

And add the following to the #ja-container style:

Code: Select all

min-width:1160px;
So it will look something like this:

Code: Select all

#ja-container {
	background: url(images/c-bg1.gif) repeat-y 18% 0;
	min-width:1160px;
}
Let me know if that works. You can play around with the width to get it to look right on all pages.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

glopez
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Oct 22, 2009 3:31 pm
Location: Colombia
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by glopez » Wed Oct 28, 2009 3:36 pm

hi man it worked tnx alot it was really helpful

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Thu Oct 29, 2009 4:24 pm

No problem. Glad I could help.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

User avatar
Sloger
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Sat Aug 22, 2009 8:46 pm
Location: Canada

Re: Website Auto Adjust For Screen Resolution

Post by Sloger » Tue Mar 02, 2010 11:11 pm

wlrdq wrote:Can you post a link to the site?
Hello wlrdq,

Could you please have a look at mine too:
www.topsite10.com

I have a similar problem. The template is build for 1200px resolution, therefore it does not center on 980px monitor. How can I make it to be centered on both monitors.

Thank you...

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Wed Mar 03, 2010 2:40 pm

The width of your flash object is 978px. Unless you want to make it smaller or resize it, I don't think you can get your page to be 900px wide.

Let me know if you want to investigate other options.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

User avatar
Sloger
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Sat Aug 22, 2009 8:46 pm
Location: Canada

Re: Website Auto Adjust For Screen Resolution

Post by Sloger » Wed Mar 03, 2010 5:30 pm

wlrdq wrote:The width of your flash object is 978px. Unless you want to make it smaller or resize it, I don't think you can get your page to be 900px wide.

Let me know if you want to investigate other options.
Thank you for your reply!

I want my page to be as is. But I don't need the wide spaces of background on both sides of the flash. If I could get read of the space on the left side, the page could center on 980px monitor?

I have managed to do so by placing the following code to the template.css :
#outer {width:980px; margin:auto; margin-left:-8%;}
It does the job for 980px monitor, but on the 1200px monitor, the site sticks to the left side of the screen (looks ugly!) so I commented this code...
I could do the same by modifying the other part of the same CSS:
.header-wrapper{width:1200px; /*background:url(../images/header_wrapper.jpg) 0 0 no-repeat;*/ height:100%; margin-left:-8%;}
But it does the same, and when I modify the width to 980px the whole page starts to look messy!?

So I don't really know what could be a solution?
Thank you very much for your consideration...

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Thu Mar 04, 2010 3:30 pm

Take a look at some of your padding values:

Code: Select all

.header-flash {
height:279px;
padding:0 0 0 109px;
}
I think rather than having padding on the left, you want to change your template to have your main content div center in the browser. That way, no matter what width the user has, it will either be completely against the left side or center. The template on our CMS Market site does this if you want an example of a site that does it. I think a lot of templates these days try to do this.



If you aren't using Firebug for Firefox, it makes inspecting and modifying styles on the fly very easy. Let me know if you want help using it.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

User avatar
Sloger
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Sat Aug 22, 2009 8:46 pm
Location: Canada

Re: Website Auto Adjust For Screen Resolution

Post by Sloger » Thu Mar 04, 2010 5:33 pm

wlrdq wrote:Take a look at some of your padding values:

Code: Select all

.header-flash {
height:279px;
padding:0 0 0 109px;
}
I think rather than having padding on the left, you want to change your template to have your main content div center in the browser. That way, no matter what width the user has, it will either be completely against the left side or center. The template on our CMS Market site does this if you want an example of a site that does it. I think a lot of templates these days try to do this...
That's what I want to do! I want the all the content to be "div" centered in the browser.
Could you please be more specific of what I have to add to the code after I clean all the left padding.
I like how your CMS Market site looks on both 980px and 1200px monitors. I want the same!
Your site looks great. Even the header follows the width of the monitor. But I don't have a header like that. My site is simplier. I only need all the content to be centered. Thats all.
I would really appreciate if you could give me some tips of how I have to modify my HTML and what has to be added (or modified) in CSS.

Thanks a lot!

User avatar
Sloger
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Sat Aug 22, 2009 8:46 pm
Location: Canada

Re: Website Auto Adjust For Screen Resolution

Post by Sloger » Thu Mar 04, 2010 10:24 pm

I have started to change it, but there are some elements that I can not locate in the code!

You mentioned Firebug for Firefox. Does it help with that?

Thank you

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Fri Mar 05, 2010 7:14 pm

Firebug for Firefox is the best tool you will ever use. Other browsers have similar Inspect capabilities, but I like Firebug's the best.

Once you have it installed, you can just right click on your page and do Inspect Element and it will show you the HTML for the element along with the associated styles. You can also change things on the fly to do style testing without reloading your page over and over. It's amazing!

Once you get it installed, let me know and I will have a look at your page and suggest changes to get everything centering.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Fri Mar 05, 2010 7:16 pm

I just took a look at your site and it seems like it's centering correctly now. If you still need anything, let me know.

I still highly suggest getting Firebug! You will wonder how you ever lived without it :D
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

User avatar
Sloger
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Sat Aug 22, 2009 8:46 pm
Location: Canada

Re: Website Auto Adjust For Screen Resolution

Post by Sloger » Fri Mar 05, 2010 9:11 pm

wlrdq wrote:I just took a look at your site and it seems like it's centering correctly now. If you still need anything, let me know.

I still highly suggest getting Firebug! You will wonder how you ever lived without it :D
Yes I have centered everything last night... using Firebug! Thank you so much for the advise, specially for the left padding!!
And Firebug is exellent for locating elements in the code!
I tried to get an answer for my problem on 2 Forums and 1 customer support, where I got the template. You are the only person who knew!

Respect!

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Fri Mar 05, 2010 10:29 pm

Glad to help. If you ever need anything again, either hit up our forums or PM me a link to your post on the Joomla! forums and I will try to help.

Happy Joomla-ing!
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

User avatar
Sloger
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Sat Aug 22, 2009 8:46 pm
Location: Canada

Re: Website Auto Adjust For Screen Resolution

Post by Sloger » Sun Mar 07, 2010 4:03 pm

Thanks,
May the Joomla be with you...))

ipo_elena
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Fri May 21, 2010 1:35 pm

Re: Website Auto Adjust For Screen Resolution

Post by ipo_elena » Fri May 21, 2010 1:48 pm

Hello wlrdq,

Could you please have a look at mine too:
http://www.obs-vlfr.fr/cyber/GEOTRACES/

The problem I have is that the column on the right moves over the central column (so the central content cannot be fully read) for some monitors, small one's. Do you know how I can modify my css in order that the site adjust to all screens, this is the column on the right is fixed and looks the same in all monitors?
Thank you very much!

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Fri May 21, 2010 2:58 pm

I would use the min-width property:
http://www.w3schools.com/css/pr_dim_min-width.asp

It will cause the browser to have a horizontal scrollbar if the user's screen isn't wide enough, but I don't think you have a good alternative if your content has to fit.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

ipo_elena
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Fri May 21, 2010 1:35 pm

Re: Website Auto Adjust For Screen Resolution

Post by ipo_elena » Fri May 21, 2010 3:14 pm

thank you!

ipo_elena
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Fri May 21, 2010 1:35 pm

Re: Website Auto Adjust For Screen Resolution

Post by ipo_elena » Fri May 21, 2010 3:31 pm

Hello again wlrdq,

Would you mind to have a look on my site again? Now I have the scrollbar but the right columns still goes over the central column when the window (in any monitor) is minimized/reduced. Any idea of what can I do?
Thank you very much!!!!!

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Fri May 21, 2010 3:50 pm

I'm not sure where you used min-width, but I would use it on the left, middle, and right column divs. Find out what the minimum width in pixels would be where the content is still displayed correctly for each column and set the min-width property for that column to that value.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

themc
Joomla! Intern
Joomla! Intern
Posts: 71
Joined: Tue Jun 03, 2008 7:17 pm

Re: Website Auto Adjust For Screen Resolution

Post by themc » Sat Jun 12, 2010 5:39 pm

This is so close but not enough info. I am having the same problem. each time I enlarge the screen the site goes all over the place. I am using the rhuk_milkyway template.

"The rhuk_milkyway template uses a mix/max width and auto left and right margins to get the template to resize dynamically with the browser (or screen resolution)." but gave no answer to how to make site do just that or where this is located.

look at my site: www.theworldslargestrapcontest.com
Thanks a million

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Sat Jun 12, 2010 6:04 pm

What issue are you trying to address?

Do you want to fix things from overlapping outside of the columns (it looks like only warnings are doing this, so you could just turn off display_error)?
or
Do you want to make your content expand wider than 800px?

It looks like your template is based off of rhuk_solarflare_ii. Is that correct?
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

themc
Joomla! Intern
Joomla! Intern
Posts: 71
Joined: Tue Jun 03, 2008 7:17 pm

Re: Website Auto Adjust For Screen Resolution

Post by themc » Sat Jun 12, 2010 8:48 pm

Man that was fast.... Very fast. Well I have 2 problems 1 is the error massages that you see and the resolution sizing is for only one size. The error masage thing is turn off unless you are talking about a different one I don't know off.

So I need help with both.

User avatar
wlrdq
Joomla! Hero
Joomla! Hero
Posts: 2672
Joined: Thu Jul 24, 2008 12:48 pm
Location: Austin, TX
Contact:

Re: Website Auto Adjust For Screen Resolution

Post by wlrdq » Sun Jun 13, 2010 12:10 am

Try changing Error Reporting to Simple in Global Configuration on the Server tab. I've noticed that None will still show warnings sometimes. If that doesn't work, you may have to set display_errors to off in your php.ini file.

As for the width, it looks like it is hard coded on a few elements in your css. Try removing these settings or increasing the values and see if that works.
Screen shot 2010-06-12 at 7.06.13 PM.jpg
Let me know how it goes.
You do not have the required permissions to view the files attached to this post.
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.

themc
Joomla! Intern
Joomla! Intern
Posts: 71
Joined: Tue Jun 03, 2008 7:17 pm

Re: Website Auto Adjust For Screen Resolution

Post by themc » Sun Jun 13, 2010 12:35 am

CSS???? Where are the files located? Like in the template/ what???

themc
Joomla! Intern
Joomla! Intern
Posts: 71
Joined: Tue Jun 03, 2008 7:17 pm

Re: Website Auto Adjust For Screen Resolution

Post by themc » Sun Jun 13, 2010 12:54 am

I had the error code set to simple at first. After 3 days of reading post, I found on the said set to none. This did not work as you can see. But getting into the php.ini file on the server is out of the question. Any other answer to the code notice?


Locked

Return to “Templates for Joomla! 1.5”