Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-11 13:32:33

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

3 column layout madness

No excuses here. I am tired of trying to find these bugs and I just need help.
IE problems here.

see http://testbed.artiswork.org

The columns aren’t floating properly.
The footer should be clearing them, but doesn’t.

I have column widths set by percentage, and thought that would keep the width’s friendly, but I guess not?

Also, what’s the frickin deal with the spacing on the menu? I can’t figure that one out.
Must be an ancestor in there I can’t find?

One of these days the DOM inspector is gonna make more sense to me, until then, let me know what you find.
Thank you o great community of peeps,

Matthew


Offline

#2 2006-04-11 15:32:49

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: 3 column layout madness

Hi ma_smith.

First, validate your CSS! there is an error somewhere with a non-closed bracket “}” (at the very beginning)

I’m far away to be a CSS gurú, but in my experience, I have lernt this axioms:

  1. never apply (or try to avoid) margins and paddings in main layout elements (in your html: #main, #sidebar, and #sidebar_left). I have seen that #main has some big margins.
  2. in that case, it wil be better to apply margin to inside elements. Example: inside #main, you have an div class="article" and you apply margins and paddings to it.
  3. if you use a fixed width layout (you have a #wrap fixed to 825px) you would like also to fix the inner elements (main, sidebar, sidebar_left in this case).

Some of this tips can be read here (excellent article): CSS is not hard to learn – if you recognize it for what it is

Finally, for a three column layout, I recommend this one: Site in an hour by Andrew Krespanis

Last edited by maniqui (2006-04-11 15:33:33)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2006-04-11 16:15:57

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: 3 column layout madness

Manaqui,
Ha. In my exhaustion, I forgot some of the main tenants I have learned! Thank you for reminding me. I’ll have another go at it today. I’ve been reading Dan Cedarholm’s book on “Bulletproof Web Design” and it is proving to be an excellent resource. I think I just needed a good butt kicking! Thanks a ton.

Matthew


Offline

#4 2006-04-11 16:21:56

whatbrick
Member
From: Texas
Registered: 2006-03-13
Posts: 100

Re: 3 column layout madness

ma_smith wrote:

<blockquote>
Also, what’s the frickin deal with the spacing on the menu? I can’t figure that one out.
Must be an ancestor in there I can’t find?

<p>One of these days the DOM inspector is gonna make more sense to me, until then, let me know what you find.
Thank you o great community of peeps,</p>

Matthew
</blockquote>

The IE spacing in the menu is caused by having the a elements set as a block element (display: block;) while they are inside another block element (li). A cheap, but utterly ridiculous, fix is to get rid of all white-space between every element. So when you look at the source, the entire menu appears on one line (if you have word-wrap turned off). Or you could float the li elements…I think that would work.

What about the DOM inspector do you not understand? A better tool to use for markup/CSS issues is the web-developers extension (for FF obviously). I’ve solved lots of problems with that little gem.

Last edited by whatbrick (2006-04-11 16:22:25)


Do not taunt the Markup Monkey!

Offline

#5 2006-04-11 16:47:08

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: 3 column layout madness

I use web developer all of the time BUT,

A better one than that for hand coding a live site with a ie pane and a ff pane at the same time…… Still a little buggy at times but once you are down to isolating ie problems it is a life saver.

CSSVista

And it’s FREE too :-)

What could be better?

Last edited by soulship (2006-04-11 16:49:39)

Offline

#6 2006-04-11 18:25:53

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: 3 column layout madness

ma_smith, nice design, lovely, don't get desparated, even with all the tools at hands, this CSS stuff is hard anyway, I allso have Dans book, but I prefer "this":http://www.amazon.com/gp/product/0764588338/103-3621653-9656645?v=glance&n=283155 maniqui, nice tutorial , hadn’t seen that before, the script implementation for the input focus is quite usefull.
I believe rob sable had implemented it in his live search plugin, but I can’t remember.

Good luck with the layout,

regards, marios

Last edited by marios (2006-04-11 18:28:15)


⌃ ⇧ < ⌃ ⇧ >

Offline

#7 2006-04-11 19:06:59

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: 3 column layout madness

Marios,
thanks for the encouragement man.

Matthew


Offline

#8 2006-04-11 19:15:23

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: 3 column layout madness

In my experience percent based widths in IE always add up to more the 100%. Maybe it’s the 3 pixel jog bugs or something but I find I always have to have it add up to less the 100% to work.

One thing I do a lot when I’m trying to troubleshoot is to through background colors on everything. That way I can see exactly where everything is going and it makes it easier to find the troublemakers. Oh and Firebug for Firefox is awesome. It lets you inspect any element on the page and then it will show you which styles in which stylesheets apply to it. Makes it great to figure out what in the cascade is giving you grief.

Also remember that sometimes all that causes the differences is the default browser interpretations. So if you get more padding in IE try just specifying teh padding all around stuff like that. I can’t see any padding rules for you LI’s so maybe just applying a padding :0 to them to fix it.

Last edited by hakjoon (2006-04-11 19:24:12)


Shoving is the answer – pusher robot

Offline

#9 2006-04-11 19:15:44

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: 3 column layout madness

ma_smith wrote:

Also, what’s the frickin deal with the spacing on the menu? I can’t figure that one out.

Add a trailing space to all <li>item</li> like that <li>item </li>. Then start laughing madly and shake your fists, direction Redmond.

Offline

#10 2006-04-11 19:19:38

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: 3 column layout madness

Hak,
Thanks for the tip. I’ll check that stuff out.

Wet, you’re crazy. I’ll tyr that one too. Weird. This really is like language: i before e except after c… neighbor, weigh, …. …. …

:)

Matthew


Offline

#11 2006-04-11 19:34:03

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: 3 column layout madness

ma_smith wrote:

Wet, you’re crazy.

Thanks, I’m doing my best…

Alas, it looks like excess white space wasn’t the real cause. I’ve tried this now and succeeded:

.menu ul li {
	list-style-type: none;
	display: block; /* !!! */
	}

HTH,

Robert

Last edited by wet (2006-04-11 19:35:14)

Offline

Board footer

Powered by FluxBB