Forums / Templates, Stylesheets, Page Layout / Layout for screen resolutions

Layout for screen resolutions

Locked

Started by billnally on 7 Jul 2010, 7:43 PM · Views: 1,339

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
7 Jul 2010, 7:43 PM
#1
billnally avatar

billnally

Zen Follower

Join Date:
Jan 2006
Posts:
251
Plugin Contributions:
0

Layout for screen resolutions

HI, I’ve been playing with a new template layout and found that on lower screen resolutions the content drops below the left column. On my existing site template I get a scroll bar at the bottom of the page but on this layout I don’t. Is there a no scroll tag can change for this or have I messed up somewhere
Thanks for all your help

12 Jul 2010, 7:14 PM
#2
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Layout for screen resolutions

To keep it simple (and because I have nothing to look at), that behavior is due to HTML/CSS layout decisions made by the designer. You likely won't be able to prevent that without really getting in deep with the template. Further comment would require a URL to look at.

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com

12 Jul 2010, 7:48 PM
#4
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Layout for screen resolutions

First of all, you're including all your stylesheets twice. The designer may have hardcoded them into the template.

Second, remove the two width definitions in includes/templates/dart_template/css/stylesheet.css, around line 778.

#mainColumn {
width:86%;
width:86%;
}

Delete the red lines and the page will display normally.

Firebug is your best friend for CSS/HTML issues.

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com

12 Jul 2010, 8:32 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,701
Plugin Contributions:
0

Re: Layout for screen resolutions

What screen width are you optimizing for? I looked at 1280 wide and the main content still dropped below the left column

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

12 Jul 2010, 9:49 PM
#8
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Layout for screen resolutions

You have to get rid of the double call to the CSS. You removed it from one but the other file overrides it.

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com

13 Jul 2010, 5:51 PM
#9
billnally avatar

billnally

Zen Follower

Join Date:
Jan 2006
Posts:
251
Plugin Contributions:
0

Re: Layout for screen resolutions

BlindSide:

You have to get rid of the double call to the CSS. You removed it from one but the other file overrides it.

Took me a while but I worked out what you were saying and found a bit of code to remove in common/html_header.php and that seems to of removed the double call for css.
Still got the same problem though. Any more advice would be much appreciated.

13 Jul 2010, 6:59 PM
#10
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Layout for screen resolutions

stylesheet .css still has a width definition for #mainColumn at line 779:

#mainColumn {
width:84%;
}

The lines above have to go away. Do that, and the layout will behave itself.

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com

13 Jul 2010, 7:02 PM
#11
billnally avatar

billnally

Zen Follower

Join Date:
Jan 2006
Posts:
251
Plugin Contributions:
0

Re: Layout for screen resolutions

BlindSide:

stylesheet .css still has a width definition for #mainColumn at line 779:

#mainColumn {
width:84%;
}

> The lines above have to go away. Do that, and the layout will behave itself.

When I remove it the page goes mad again so I put it back but I've removed it again to show it
13 Jul 2010, 7:22 PM
#12
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Layout for screen resolutions

Alright, from where it's at now, what do you want the page to do? Center the sidebar and main column in the same fashion as the footer?

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com

13 Jul 2010, 7:44 PM
#14
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: Layout for screen resolutions

Oooooooooh! That would have been good to know from the beginning. :lol: My bad for not asking the right questions.

Now that I know what you're doing, and I've dug enough in your CSS, I can safely tell you that there's no way you're going to do it with your current template, short of completely hacking it up.

The template you're using is fixed width; it's made to be a set width regardless of the browser's winodw size. Your existing site is fluid width, stretching automatically to fill the space. This is a cornerstone solution when building any template. To change from one layout to the other requires completely rebuilding, and is way beyond anyone's ability to support in forum posts.

Had I known what you were really after I would have given you the straight sooner. Sorry about that. :unsure:

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com