I want to create a modern looking and functional website based on a 2 column layout with header/footer. The rightmost column will contain an accordion for navigation while the other will have all the contents (something like this basic layout) Hopefully using Ajax to dynamically reload the contents of each page without reloading the navigation accordion, menu etc.
So the question is which solution should I go for? fluid, fixed, elastic etc? There's also something called grids which I don't quite understand but I believe solves the cross-platform issues.
I know basic HTML and a little CSS, but am by no means an expert and hope for lots of copy/paste solutions with tweaking and editing for my taste and use.
What do you suggest I start out with?
Hi pyxxel. Welcome to the forums.
That's a noble aim, and is to be commended. So the first thing to do it forget about accordion menus. They are, for the most part, inaccessible junk—meant to impress, but sure instead to frustrate and confuse many users.
So the question is which solution should I go for? fluid, fixed, elastic etc?
Fluid or elastic are better, as they are more in keeping with the nature of the web—which is a flexible and changeable medium.
There's also something called grids which ...
... which is best avoided! ... Others will disagree, but with anything like this—where a framework has been set up for you—the learning curve can be steeper, and the code a whole lot messier, than just building a layout from scratch, tailored to the exact needs of the site.
What do you suggest I start out with?
Learn how CSS works by getting a good book, so that you don't have to depend on crummy CSS frameworks and grids etc.
So the first thing to do it forget about accordion menus.
I agree completely with Ralph on this point. What you need is a simple, intuitive navigation system that your visitors can use without having to think about. Accordions - and other fancy devices - merely show how clever the designer is.
As for fluid vs fixed, you won't get a consensus on this. There are valid arguments on both sides.
Personaly, I favour fixed. I fact, I usually go for a similar layout to the template in your example. I can't really give you any convincing reasons for this. But whenever I've used a fixed layout, I'm always reasonably happy with the result. On the couple of times I used a fluid layout, I found myself wishing I hand't.
Either way, good luck with the project.
Thanks to both of you for your comments
I see what you're both saying about ditching accordions, but I really like the appearance as well as finding them practical and space saving.
Actually I've spent considerable time on an accordion which, after a lot of tweaking, now looks like this. However, it doesn't do nested items, so I'm giving that one up although I want to keep the same appearance.
In addition to navigating the site I have a large FAQ page (lots of text/image content) where I want to use another accordion for dividing tings up into sections. It seems the best solution when there's lots of contents on one page. Perhaps I could I even use Ajax to dynamically load the contents of each accordion section instead of the whole page at once (saves the visitor waiting).
I'm still confused about where to start as there are so many 2 column options to choose from. I actually even found some online "layout generators" which look very tempting, but I want to make sure they'll be compatible with all major browsers/platforms as I don't want to start all over again if they don't. I'm trying to understand how a website can be made to work with both computers and mobile devices. From what I've picked up so far a certain device (say an iPad) outputs information from its browser header about it being an iPad, and because of that it can pick a certain CSS style sheet, right?
I'm a novice when it comes to CSS, and if I'm not completely mistaken the whole idea (apart from "styling" a page's/site's appearance) is to split the page into separate square/rectangular "sections"? If I'm right about this, is adapting a site to an iPad for instance all about choosing which "rectangle" section to include and exclude in that particular CSS style sheet? So I could for example exclude a huge image (defined in CSS as a "rectangle") while it's included in the regular (Mac/PC) CSS stylesheet?
Lots of questions and thoughts...
Check out this link for the FAQ accordion-style page. I think it's what you want.
Please don't go with a layout generator. It makes it hard to modify and to change.
It's true that you can define certain stylesheets for certain environments. I'll explain more of how to do that later. Many sites do this. If you view the style sheet on a mobile platform (like Android or iOS), you can see certain sites differently than if you viewed it from your desktop. This is the same for laptops as well. This improves readability and comprehension. For instance, you wouldn't want to display a 2000 x 2000 picture to an iPhone (or to anyone, for that matter - terrible web practice).
Look at this article for how to input what you want.
I'll attempt to explain what CSS is right now:
There are thought to be many layers to a web page. There is the content/structural layer, which is the pure HTML, there is the visual/appearance layer, there is the...well, you can get into that later if you want. What this means is that HTML lays out what you want, whereas the CSS makes it appear like you want. That may be as simple as displaying certain 'rectangles', but that's not all that it can do.
Hope I helped.
Sorry, I meant "boxes" of course
It's been a few years since I first tried to get the hang of CSS and am in need of refreshing my knowledge. I fully understand the (awesome!) idea of how CSS can be used to style HTML tags. I also started to understand "the box model", but I never quite got the hang of how these different boxes were used in combination to map out a complete web page.
However, I just discovered Van SEO Designs' ["pros and cons of 6 CSS layout patterns" and their step-by-step explanation of their [URL="http://www.vanseodesign.com/css/2-column-layout-code/"]2-column fixed and centered layout](http://www.vanseodesign.com/css/css-layout-patterns-part-1/).
So I decided to go with that instead of a template or generator, hopefully learning a thing or two in the process
Can this basic layout be used for a variety of devices using a variety of CSS stylesheets? From what I've read so far it seems that "grid" type sites are the way to go, but as ralph.m pointed out they're best avoided -the idea seems very complicated. I found a demo of a semi-liquid/centered layout which looks very different when the browser window is made smaller, but I don't understand how it's done and if it's something I can use. What do you advise I go for if I want to make the site work in a similar way?
Any idea which accordion is used on the BBC site? I found the HTML source very complex to figure out.
I realize I'm switching between a lot of ideas here, but it probably just means I'm trying to think creatively in order to find a solution
Accordions for navigation:
Ralph.m: as much as I hate to admit it, I think you're right about accordion menus, for the most part....
I want my new site to have some "wow factor", but in the end designing a website should be more about keeping it simple, functional and deliver the contents in the best possible way.
However, the Mootools Slide-effect accordion is another story as it has practial use for the FAQ page(s) in addition to looking cool, so I've got both covered
For the site navigation I'm starting to look into simple tabs of some sort, realizing that I don't really need navigation with sub-menus with the exception perhaps of the 3-part FAQ as my site is of limited size and complexity).
A horizontal row of tabs right underneath the header could work fine ([example), but given the lengthy FAQ (lots of scrolling to get back to the top) it might be a better idea with a static DIV with those navigation tabs, in the rightmost column -[URL="http://www.devthought.com/"]here's an example](http://www.webdesignserved.com/) (scroll the page down and see the navigation stay in place).
3-section FAQ page:
Without the ability to sub-section navigation to the FAQ (an accordion would allow for that), and feeling that 3 site-navigation tabs would make it look complicated and messy I'm thinking that a single FAQ page would be neater and tidier (just a single "FAQ" navigation button).
Once on that FAQ page the user will be presented with a horizontal row of 3 tabs, such as seen here (scroll down the page).
Will the above ideas work well, or are there better solutions I should look into?
And will those navigation solutions adapt well for mobile viewing devices as well?
This topic is now closed. New replies are no longer allowed.