|
|
![]() |
#1 |
Member
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
|
![]()
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 |
![]() |
![]() |
![]() |
#3 | |
Member
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
|
![]() Quote:
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! |
|
![]() |
![]() |
![]() |
#4 |
Staff
Join Date: Nov 2004
Posts: 7,650
|
![]()
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 |
![]() |
![]() |
![]() |
#5 |
Founding Sysop
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,187
|
![]()
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] |
![]() |
![]() |
![]() |
#6 | |
Member
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
|
![]() Quote:
...back to the drawing board...;-) |
|
![]() |
![]() |
![]() |
#7 | ||
Member
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
|
![]() Quote:
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:
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...;-) |
||
![]() |
![]() |
![]() |
#8 |
Staff
Join Date: Nov 2004
Posts: 7,650
|
![]()
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 |
![]() |
![]() |
![]() |
#9 | |
Member
Join Date: May 2006
Location: Scottish Borders, UK
Posts: 208
|
![]() Quote:
Your comment prompted me to open up NoteTab Pro which is a neat and versatile replacement for Notepad. It's something I use all the time but I've just discovered - I don't even know what caused me to look - that one of its several toolbars can be used to edit CSS and that another one integrates with TopStyle (Lite) and actually opens that app. Of course, my version of TS is not new but maybe there's life in the old dog yet... |
|
![]() |
![]() |
![]() |
#10 | |
Staff
Join Date: Feb 2005
Location: In the Heart of the English Lake District
Posts: 1,381
|
![]() Quote:
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 |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |