View Full Version : Prototype and help!
David
18th Nov 2005, 09:26 am
After much hacking and tweaking, I now have a prototype page for the new CADTutor design. The page layout is based on Skidoo Too with some additions and quite a few omissions. It looks identical in Firefox and Opera and is only marginally different (can you spot it?) in IE. The original Skidoo Too included some non-compliant CSS hacks, which I've removed as I thought compliance was more important than pixel perfection.
Any comments on the layout, colour scheme, navigation function etc. would be greatly received.
Help! because I have a nice border-bottom for <h1> that displays in Firefox and Opera but doesn't display in IE. I just can't work out why because I've used the exact same code on other projects and it's worked fine. There must be some weird interaction going on - but what is it? :(
http://www.watest.co.uk/cadtutor/links/
francis
20th Nov 2005, 06:51 pm
Did you get this sorted? Have you tried removing the word medium from the style declaration and replacing it with a numerical value? 'Medium' is valid CSS (http://www.w3.org/TR/CSS21/box.html#border-properties) but maybe it's an IE thing - I must admit that I've never seen it before, so maybe it's not used because doesn't work. If it's not that, I'll have another go.
I'm liking the colour scheme and layout which also works in Safari.
David
20th Nov 2005, 08:57 pm
Thanks for that Francis, I don't have a Mac so I hadn't tested on Safari.
The underline thing is weird. Makes no difference whether I use "medium" or "3px". I used exactly the same CSS on the Websitearchitecture site and it worked fine. There must be some interaction with something else going on. The problem is only with IE. Opera and Firefox render as expected.
David
21st Nov 2005, 03:12 pm
Even more weird. I just added another <h1> tag to the same page, same container. The second one renders correctly (as per the CSS) but the first one does not. Font-family and font-color are being rendered but the colours are not being applead to the background or the border although the border does create the space. :(
David
21st Nov 2005, 03:54 pm
:D OK - I have a solution.
The problem is the result of a render bug in IE6 and happens when a spacer div with a clear attribute is used below floating divs (as in the Skidoo Too layout). The solution is to add position: relative; to the declaration for headings and all is well.
See this evolt article (http://www.evolt.org/article/MSIE6_bug_with_floating_divs_and_spacers/17/23899/) for details.
francis
21st Nov 2005, 09:31 pm
Spacer/clearing divs - so old fashioned! Seriously, have a look at this article on PIE (http://www.positioniseverything.net/easyclearing.html) about clearing without using structural markup - it's rather fine and works well.
David
21st Nov 2005, 10:30 pm
All very clever but it seems to me that this sort of workaround (and the required hack) are built on sand. What happens when render engines are updated and become more compliant? The whole house of cards falls down. I want a site that will be as future-proof as possible, not one that demonstrates how clever I am with current browsers. OK, the structural markup is wrong (theoretically) but it's a massive improvement over tables etc.
I think I'll be sticking with those clearing divs for now. I do sometimes wonder whether those CSS geeks oughtn't just pull their head out of their arses and get pragmatic for a change. Oh, did I really say that? :o
More importantly, I want code that I will understand when I come back to it in 2 years time.
francis
22nd Nov 2005, 08:41 pm
The standards compliant way (using CSS generated content to force a block level clearing element onto the page) will stand you in good stead for years as IE7 apparently won't have CSS generated content (ggrr). So, that'll be IE7.5/8, then - another 2/3/4/5 years along... The IE fixes will be fine - if you're worried about them, just use Conditional Comments (http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx), which is what MS want as all to do as of now as a way of filtering out IE hacks. Just set the comment to [lteIE 6] and pull in the CSS.
As for code you can understand - I just comment it with stuff like:
/* IE double margin hack, see PIE */ - I know what the hack is, and on what site the fix is listed on.
David
22nd Nov 2005, 10:08 pm
Of course, I know you are right Francis but it seems to me that pointing the finger at clearing divs is a bit weird when, in fact there are lots of divs in most layouts whose only function is to keep other divs in place. In many layouts, content is often nested 3 divs deep. Bottom line: CSS2 does not adequately allow the composition of page layouts. In a perfect world, there would be one div per content area, just like (dare I say it) table cells.
David
28th Nov 2005, 02:46 pm
OK, that's it! I've now spent much too long tweaking and sculpting this (http://www.watest.co.uk/cadtutor/links/). So, I'd be very grateful for any final comments before I deploy it.
It's almost pixel perfect between IE and Firefox. I can't work out why FF has more space above the topnav than IE and I can't work out why IE has more space below the search button than FF but I'm prepared to put up with that.
Thanks
James
29th Nov 2005, 01:22 pm
I really like it David. When you first started this topic I didn't like the new site (which might have been just down to lack of "real" content), but as it's developed it's now looking much more pleasing.
My only slight niggle is the behaviour of the text when you try and highlight it. In both IE and Firefox it "shimmers" but it's not exactly a major problem.
When do you plan to launch?
It will be interesting to see if your SEO improves as a direct result of the valid code. Certainly the content DIV being read first by the spider should help.
David
29th Nov 2005, 02:45 pm
Weird! I hadn't noticed that until you pointed it out. I have no idea why it does that. It seems to highlight the entire content when the cursor runs in the space between lines.
Oh, danm - that's going to haunt me now. Bound to be a simple CSS fix (I guess).
I don't have a launch date yet but now that I've frozen the design I should be able to crack on with the conversion. I have a lot of work to do because the existing site has over 100 static pages. I then need to skin the magazine and the forum and provide some magazine content to get it going. I also need to organise all my links and download material...
My guess is sometime in January 2006 if all goes well. That would be quite nice because 2006 is the 10th annaversary of my first AutoCAD tutorials on the web. Most likely I'll phase in the changes, starting with a conversion of all the static content. It all seems a bit daunting at the moment. :(
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.