DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Design

Reply
 
Thread Tools Display Modes
Old 02-18-2009, 03:56 AM   #1
john_b
Member
 
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
Default CSS positioning - faltering steps...

An initial foray into something I've been putting off for years, but I'm going to have to bite the bullet...;-(

I've skirted around CSS for a while and think I've grasped boxes in terms of content, padding, borders and margins but now need to try to connect them somehow for a page with, say, three columns. Nothing fancy: left for navigation, middle for content and right for perhaps a few small images.

I was wondering if there are any general design principles that are reasonably widely accepted? Might it be possible, for example, to specify the left and right column widths in pixels such that you can be pretty sure that any images won't go outside of them and leave the middle column to fill whatever's left?

And how do you do that? Or is it better to use percentages for all three?

In other words, I'd like it to be as flexible as possible to accommodate different screen widths so I'm trying to avoid specifying column widths as completely fixed - am I whistling in the wind?

I'm sure this issue must be old hat to many here so my apologies for that, and also for the somewhat vague nature of the question - I know what I mean...;-)

John

Last edited by john_b; 02-18-2009 at 04:27 AM. Reason: typo
john_b is offline   Reply With Quote
Old 02-18-2009, 05:30 AM   #2
Bo Aakerstrom
Member
 
Bo Aakerstrom's Avatar
 
Join Date: Mar 2005
Location: Derby,UK
Posts: 1,509
Default

A List Apart has got a lot of stuff to learn from; here is what you're wanting to do, and some other good reads.

   
__________________
www.boaakerstrom.com
Behance Portfolio

Last edited by Bo Aakerstrom; 02-18-2009 at 05:31 AM. Reason: Can't spell
Bo Aakerstrom is offline   Reply With Quote
Old 02-18-2009, 08:04 AM   #3
john_b
Member
 
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
Default

Quote:
Originally Posted by Bo Aakerstrom View Post
A List Apart has got a lot of stuff to learn from; here is what you're wanting to do....
Oh that looks as if it's built for the job - many thanks! (I've duly bookmarked your 2nd reference as well... but not for today!)

As an added bonus, I almost understood the theory. Well I got as far as the negative margins anyway...
...with things like that I find that it's easier to print the thing off and study it at leisure, rather that trying to skip up and down on a screen.

I should add, by the way, that I have attempted to get to grips with all this before but without much success. I tried to work through Eric Meyer's book 'CSS: The Definitive Guide'. OK but heavy going. I got an early copy of Lie and Bos and even took that one on holiday - how sad is that??!!

Tried a few websites as well, of course, but this one looks as if it could hold the key - Holy Grail indeed, and thanks again!
john_b is offline   Reply With Quote
Old 02-18-2009, 08:50 AM   #4
Steve Rindsberg
Staff
 
Join Date: Nov 2004
Posts: 7,650
Default

Someone here, Shane I think it was, put me on to TopStyle. Bless that person, whoever it was.

http://www.bradsoft.com/index.asp

Prior to that I was keeping an editor open on the CSS file, saving changes, refreshing in the browser ad infinitum. TS previews right there in the app, lets you edit CSS and HTML both and ... ah, I'm raving again.

Give it a look.

Another thing that's helped me grok positioning, at least to the limited extent I do, is to fill each box element with a color or give it a distinctive outline temporarily. Makes it much easier to see instantly what's going on.

   
__________________
Steve Rindsberg
====================
www.pptfaq.com
www.pptools.com
and stuff
Steve Rindsberg is offline   Reply With Quote
Old 02-18-2009, 09:17 AM   #5
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,187
Default

Quote:
Originally Posted by Steve Rindsberg View Post
Another thing that's helped me grok positioning, at least to the limited extent I do, is to fill each box element with a color or give it a distinctive outline temporarily. Makes it much easier to see instantly what's going on.
And that is preferable to using a border because the pixel-widths of the borders can screw up the way the page sits if you are using percentages.

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
Old 02-18-2009, 09:56 AM   #6
john_b
Member
 
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
Default

Quote:
Originally Posted by Steve Rindsberg View Post
Prior to that I was keeping an editor open on the CSS file, saving changes, refreshing in the browser ad infinitum. TS previews right there in the app, lets you edit CSS and HTML both and ... ah, I'm raving again.
Funnily enough, one of the very first bits of (serious) software I ever bought was Homesite. Cost me almost $80 all those years ago but it was a top notch piece of kit and worth every cent. I'm not sure whether Top Style (Lite) came with it then, or only appeared later.

And now I have to pause for breath because it's time to confess. Here goes:

"Hello, my name's John and I'm an alcoh... erm... (whispers) I use Homesite!"

There, I feel better now. Yup, still use it, but I looked at your link and maybe Top Style Pro can do the job that (ssshhh) does but also deal with CSS in a seamless way. If that's the case then I could well be shelling out another $80

Quote:
Another thing that's helped me grok positioning, at least to the limited extent I do, is to fill each box element with a color or give it a distinctive outline temporarily.
Yes I'm trying a few approaches at the moment and am starting to get a handle on it. I think cracking this three column thingy could be a major step forward, but I'll need to sort out theory behind the negative margin business first.

Thanks for the help - Top Style could be the way to go. Be sorry to lose Homesite, though, we've been through so much together...;-)
john_b is offline   Reply With Quote
Old 02-18-2009, 02:25 PM   #7
Steve Rindsberg
Staff
 
Join Date: Nov 2004
Posts: 7,650
Default

To tell the truth, I've just played a bit with editing HTML in TopStyle. Old habits are hard to break, old friends are hard to part with ... maybe there's a 12 Step Program people like us? But failing that, I've stuck with a mix of Notepad, UltraEdit and a kind of CMS-like app that I wrote to fit my own needs.

And to which I added a handy "Edit CSS" feature that launches TopStyle. ;-)

TS in no way insists on taking over the HTML editing end of things.

   
__________________
Steve Rindsberg
====================
www.pptfaq.com
www.pptools.com
and stuff
Steve Rindsberg is offline   Reply With Quote
Old 02-18-2009, 03:14 PM   #8
Kelvyn
Staff
 
Kelvyn's Avatar
 
Join Date: Feb 2005
Location: In the Heart of the English Lake District
Posts: 1,381
Default

Quote:
Originally Posted by john_b View Post
Funnily enough, one of the very first bits of (serious) software I ever bought was Homesite. Cost me almost $80 all those years ago but it was a top notch piece of kit and worth every cent.
I cut my HTML teeth on Homesite, graduating from NotePad around 1996, before it was taken into the Allaire fold. Early Topstyle was very good, but I think Nick Bradbury lost his way a bit when he introduced HTML editing into the css editor. I still use HomeSite on occasion, and sometimes TopStyle but my main tool for static sites is now DreamWeaver.

There is an excellent SitePoint book providing a good explaination of CSS and XHTML. This is the second edition. I found the first edition excellent, providing some new ideas and solutions, as well as reinforcing earlier knowledge.

   
__________________
Kelvyn

Web site design, hosting and marketing, Keswick in the UK Lake District

If you are planning a visit to Keswick then try Keswick Tourist Information website

Kelvyn is offline   Reply With Quote
Old 02-19-2009, 01:44 AM   #9
LoisWakeman
Staff
 
LoisWakeman's Avatar
 
Join Date: Jan 2005
Location: Uplyme, Devon, England
Posts: 1,402
Default

It's OK, you can confess freely here - there are several of us recovering Homesite addicts about!

I stopped upgrading Topstyle at version 2.5, as it does all I need and doesn't try to do too much.
LoisWakeman is offline   Reply With Quote
Old 02-19-2009, 01:49 AM   #10
john_b
Member
 
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
Default

Quote:
Originally Posted by ktinkel View Post
And that is preferable to using a border because the pixel-widths of the borders can screw up the way the page sits if you are using percentages.
Soooo true! I thought I'd cracked the three column thing and then put a 1 pixel border around one of them. Of course, the whole thing promptly fell down around my ears...

...back to the drawing board...;-)
john_b is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS positioning problem sooshi Web Site Building & Maintenance 9 02-18-2008 01:36 PM
CSS positioning help dacoyle Web Site Building & Maintenance 23 02-24-2007 12:32 PM
CSS positioning dacoyle Web Design 2 11-14-2005 07:40 PM
DiskWarrior steps for farkled disk ElyseC General Publishing Topics 60 08-26-2005 03:21 PM


All times are GMT -8. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Contents copyright 2004–2019 Desktop Publishing Forum and its members.