Forum Moderators: not2easy

Message Too Old, No Replies

pure css layout - is it worth it?

or not? :)

         

pabloz

12:19 pm on Jun 28, 2005 (gmt 0)

10+ Year Member



Hi all. i am new here. i am a begginer learning css now, read a lot of tutorials, seen a lot fo examples. i am trying to make my own layouts, it's difficult, i hate the browsers support :) also learning how to make some web graphics. Anyway, is this the right way to go?, is pure css the right choice, even though the browser support is so lame and it's hard to make a webpage look the same on all popular browsers. thanks for advice.

oddsod

12:29 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, welcome to WW.

There are some who swear by CSS and standards and will advise you to take the time and trouble to learn CSS as it will stand you in good stead in the future.

I listened to them, ended up spending several days learning CSS (perhaps I should have spent a month or two), and gave up in frustration. Yes, you've got to work out hacks for IE5, workarounds for the mac, and pull your hair out to get even the more basic design. If webdesign is your business then maybe you should take the time to learn CSS. If your sites are your business it's easier (and cheaper) to outsource the design. If you want to do it yourself the best compromise is to control your fonts/colours/headings etc via CSS and use tables for your design. Even some CSS advocates agree that there's nothing like the old table for ease of layout. If it's quick loading times and the caching of the CSS file that you're after you can still use tables and create divs with appropriate background images for various locations in your table/s.

HelenDev

2:08 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hard to make a webpage look the same on all popular browsers

Yes, that would be almost impossible. Instead, just concentrate on making the site usable in all the popular browsers (and the 'unpopular' ones too). It is more important that your site is usable cross platform than whether it is pixel perfect design in ie. There's no reason why it can't still be attractive though.

tomda

2:17 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is what I did one month ago. And it is great! It is true it is a pain at the beginning (everytime checking fro cross-browser problem when you modify the style sheet) but it's worth it.

My advice, DO NOT try to make a design similar to the design you currently have using HTML.

You rather start from scrap and decide with layout you want (2 or 3 three-columns layout).

And MAKE IT SIMPLE! Just like Yahoo home page, 2 columns and lot of small boxes.

collymellon

2:19 pm on Jun 28, 2005 (gmt 0)

10+ Year Member



When I start a site now I build using full CSS. You can replicate any table layout with CSS allthough it can be a hassle your knowledge will grow while creating these kind of pages. Go to my profile - if you follow the link to my website this was built 100% CSS (allthough it looks like a table layout) the loading speeds are just super and organisation of the code works so much better.

This is only compliant in I.E at the minute - 99% of visitors over the last year are I.E users, this is why I haven't bothered to get it cross-browser.

Research your log files find out which is the most popular 3 browsers and build to be compliant in them - that way 1 out of a 1000 visitors may have trouble but the rest will be fine.

I totally agree that browser support is so lame - pure hassle but CSS will be around for sometime and idealy you would want to get started now rather than fall behind with such a big subject. One of the best resources is HERE!

Stooshie

2:48 pm on Jun 28, 2005 (gmt 0)

10+ Year Member



It is more important that your site is usable cross platform than whether it is pixel perfect design in ie

You obviously don't work with graphic designers whi insist on pixel perfect in every browser. ;-)

oddsod

2:51 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



99% of visitors over the last year are I.E users, this is why I haven't bothered to get it cross-browser.

And some of your pages do have problems in Firefox. I'm surprised your logs show 99% of visitors using IE, that doesn't reflect IE's general market share which is much lower than 99% ... and dropping.

buckworks

3:00 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



workarounds for the mac

Heh heh, depends where you're coming from. I design on a Mac with no problems, and I need workarounds for PC / IE.

I recommend checking your CSS with the validator at W3C.org. I've had more than one incident where the problem wasn't that I needed a workaround, it was that I had made some sort of error in the CSS. Some browsers are better than others at adapting to our glitches, so we blame the other browsers for not looking right instead of realizing what the real problem is. Make sure your CSS is valid before you tear your hair out over cross-browser workarounds.

Hang in there, and take it a step at a time. CSS is something you can grow into; you don't have to learn everything overnight.

[edited by: buckworks at 3:02 pm (utc) on June 28, 2005]

tomda

3:00 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't follow CollyMellon advice. You better use Firefox or Mozilla for making your pages and when they are OK in FF, then you can hack IE.

take it a step at a time. CSS is something you can grow into; you don't have to learn everything overnight.
This is why you first design should be very simple.

pabloz

3:30 pm on Jun 28, 2005 (gmt 0)

10+ Year Member



thx for all replies...so far i see that it is worth it :). i am making very very simple designs right now. i see that all the cool css layouts have very nice graphics and color-shemes - i think this is also very important in creating good webpages.For the record i am testing my projects under FF and ie 6 (in this order! :) ).

abbeyvet

3:43 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you've got to work out hacks for IE5, workarounds for the mac

Not necessarily. I use CSS all the time and have never used a single hack. It just means using what is compatible, which means knowing the limitations and then working within them. It is quite possible.

You can replicate any table layout with CSS

I believe the biggest problem people have when they move to CSS first is just that. You have to stop thinking in tables, which is hard when you are used to them.

I taught a class recently in HTML for beginners to a group of primary (grade school) teachers. After doing the very basics I started them off laying out a page with CSS, made no mention of laying out with tables at all. The ones who had some experience and had used tables had tremendous difficulty with this - the one who had done nothing at all before had no problems whatsoever.

checking your CSS with the validator at W3C.org

Vital but equally important is not to become obsessed with validating for its own sake. It isn't a holy grail.

tomda

3:53 pm on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Valid HTML is even more vital...
I learned this the day someone informed me (on WW, thanks to him) that my DOCTYPE was incorrect and that IE6 was working in Quirk Mode!

I agree Abbeyvet, use strict CSS1 and I am sure you will not need hack.

Stooshie

8:07 am on Jun 29, 2005 (gmt 0)

10+ Year Member



I tend to write for standards rather than browsers. So, if you declare the document as xhtml1.0 transitional, then it must conform to those standards.

The advantages of this are:

1. You know exactly what you need to do. Although it can mean a little more work, you are not trying to experiment with various versions to work in different browsers.

2. The client apps have to play catch up rather than you.

3. There are various sites that will validate your code for different types of compliance.

4. If your sites complies with the standards (particularly xhtml and css2) then you are about 80% of the way to having an accessible site (nothing can make up for lack of planning and common sense).

5. It will probably look OK in most browsers. If it doesn't, and you have an external css file it is much easier to write a second css for another browser than to try and make the same code work on many browsers.

Best regards,

Andrew.

collymellon

8:59 am on Jun 30, 2005 (gmt 0)

10+ Year Member



*dont follow collymellons advice*

I by no means stated you should build the site in I.E forgetting other browsers. I totally agree on building in FF then correcting any rendering problems with I.E.

But, unfortunatly in the real world / at work I for sure haven't got spare time to sit down and make a site cross browser, I was recommending if your following tight deadlines to research the most used browsers in order to ensure the majority of visitors have no viewing problems.

HelenDev

4:03 pm on Jun 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just finished creating a stylesheet for browsing our site with a handheld device.

This was pretty easy and only took an hour or so to create. Boss was happy :)

I hate to think how much more complicated it could have been if our site wasn't using pure css, and was a complicated tabular layout like it used to be in the bad old days.

This is the kind of reason why I'd say it's worth it :)

ikkyu

4:22 pm on Jun 30, 2005 (gmt 0)

10+ Year Member



Has anyone ever tried to design a semi-complex form using CSS only and lived to tell about it? I've looked around and have not found much in the way of CSS forms other than simple name, address type ones. I had no other choice but to use tables.

zackattack

5:26 pm on Jun 30, 2005 (gmt 0)

10+ Year Member



My penny'sworth...

I will never go back to table layout, not no way not never, CSS is SO flexible and friendly, it just takes some learning, certainly you cannot expect immediate results - but when it starts to drop into place it really makes so much sense, for so many reasons. You need to understand much of the way of using CSS for layout is very different, you have to adjust your thinking

I have to say without Web Master World, I would be up the creek without a paddle.... and a boat...!

********FORMS STYLING********

Hi ikkyu

Yes I have done some form styling, and without tables,
You have some great hooks to style using CSS, such as:

<fieldset>
<legend></legend>
<label></label>
</fieldset>

no need to use tables, and can get some nice results..

ZA

stever

5:27 pm on Jun 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, what were you trying to do with the form?

This [webmasterworld.com] is quite a nice start into the subject of CSS forms...