WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-09-2004, 03:20 PM
hommealone's Avatar
WebProWorld Pro
 

Join Date: Feb 2004
Location: Kingston, NY USA
Posts: 107
hommealone RepRank 0
Default Page rebuilt using CSS; please check it?

OK. Now that my learning curve for CSS is leveling off a bit, can you please check the page that I've rebuilt? I took my old homepage (see signature below, for comparison) and tried to more or less duplicate it using CSS design, as a learning exercise. It seems, to me, to be working well in IE6, NN7, and firefox.

Can you please check it - especially with Safari, Opera, older browser versions, etc. - and let me know how it's working?

The new version is on line here.

Any suggestions or critisisms about my CSS would be greatly appreciated!

Thanks so much!

p.s. The problem that I posted about earlier (DIVs not scaling well in NN7) seemed to happen when all the elements in the DIV were floated, or had potentially variable heights. I had to make up a nasty work-around to avoid it, but at least it works. Perhaps there is a better way, but I haven't found it yet. This is what I did:

Code:
div.cutoff { clear: both; }
<div class="cutoff">[img]HHimages/pixel.gif[/img]</div>
I know this is a messy cheat, but at least it puts a definite "end" to the divs that were giving me problems so that nothing scales out of them in NN or firefox.
Reply With Quote
  #2 (permalink)  
Old 08-09-2004, 09:40 PM
WebProWorld Member
 

Join Date: Jul 2004
Location: ---| here |---
Posts: 85
vivekar RepRank 0
Default

looks fine in Opera 7.10
__________________
Submit URL - Website Directory Web TemplatesWeb hosting firms list
Reply With Quote
  #3 (permalink)  
Old 08-10-2004, 03:36 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default

Not too good on IE5 or Opera 5.11, on these the page becomes very long with a lot of white space between text blocks, in the white panel area.

On NS 6.1 there is a small gap between the white panel and the panel top and panel bottom graphics.

I think you need to fix it for IE5 but the other 2 is debatable.

The only thing I would say about the CSS is that I would have a single CSS file, and I would avoid having both class= and style= on a div as it makes finding bugs harder.

The use of the clear: both is perfectly acceptable.

Getting the page to display on 3 browsers the same is a fair accomplishment, so don't give up.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #4 (permalink)  
Old 08-10-2004, 06:34 PM
hommealone's Avatar
WebProWorld Pro
 

Join Date: Feb 2004
Location: Kingston, NY USA
Posts: 107
hommealone RepRank 0
Default

Thanks for the comments so far.
Quote:
Getting the page to display on 3 browsers the same is a fair accomplishment, so don't give up.
Oh my gosh, I'm feeling beaten by this right now!

I don't know how I'm going to fix it for IE5; can't put that back on my computer when it already has IE6.

Sometimes I don't know why I'm bothering either. If "old style" HTML pages with tables and spacers read more or less correctly across a spectrum of browsers, and CSS pages show differently, well, I don't get it. I'm despairing over this...
Reply With Quote
  #5 (permalink)  
Old 08-10-2004, 07:48 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Quote:
Originally Posted by hommealone
I don't know how I'm going to fix it for IE5; can't put that back on my computer when it already has IE6.
You can install multiple copies of IE and run them from folders (ask mikmik for more details!)
Personally, I wouldn't get too distressed over not looking perfect in IE5, if you can get your pages looking consistent across the majority of 'modern' browsers, that's still a good job done!

If you've really got a bee in your bonnet about cracking this, and haven't got time to install every IE browser, you might want to check out ieCapture and hopefully you'll get a decent screengrab if their server's not too overloaded! :o)

Paul
Reply With Quote
  #6 (permalink)  
Old 08-11-2004, 04:28 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default

Quote:
Originally Posted by paulhiles
Personally, I wouldn't get too distressed over not looking perfect in IE5
hommealone in its current state I would say that visitors using IE5 would just hit the back button. I would suggest you check your server logs and see how many visitors are using IE5 and then you can decide if it’s a problem.

For me I have enough visitors using IE5 to warrant supporting it.

It should be possible to get your layout working 100% in IE5 and better!
Quote:
Sometimes I don't know why I'm bothering
Reasons to go CSS can be found within WPW, but it should give you smaller simpler (X)HTML, and make it easier to have an accessible site.

Where to go from here, first I’d get down to a single css file, second I’d would move all the style information into the css file ie. No style= in the HTML. It will make it easier for others to follow the code when you ask for help.

The fix for NS6 is to add style="display: block" to the panel top and bottom images, naturally this should become a CSS class.

I did start looking at the CSS but it was too time consuming merging the CSS and style information, sorry.

Don’t give up with this, we all had to start somewhere and you have got off to a great start!
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #7 (permalink)  
Old 08-11-2004, 05:13 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Quote:
Originally Posted by speed
Where to go from here, first I’d get down to a single css file, second I’d would move all the style information into the css file ie. No style= in the HTML. It will make it easier for others to follow the code when you ask for help.
Agreed 100%, importing 3 stylesheets, in addition to the 'main' site stylesheet seems like overkill to me for such an apparently straightforward layout... and removing the inline styles would help in defining that single stylesheet.
Quote:
Originally Posted by speed
For me I have enough visitors using IE5 to warrant supporting it.
I was curious to find out what percentage of your visitors are using IE5. My stats show IE6 users at just below 80%, Firefox, Netscape, account for a further 18% or so.
Reply With Quote
  #8 (permalink)  
Old 08-11-2004, 05:45 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default

Quote:
Originally Posted by paulhiles
I was curious to find out what percentage of your visitors are using IE5
Looking very quickly around 6%.

For me if 1% of visitors a month used IE5 I'd support it, as its usually no more effort.

After all their moneys as good as anyone's!
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #9 (permalink)  
Old 08-11-2004, 11:08 AM
hommealone's Avatar
WebProWorld Pro
 

Join Date: Feb 2004
Location: Kingston, NY USA
Posts: 107
hommealone RepRank 0
Default

Thanks, guys, for your suggestions. I was just feeling especially low the last time I posted. Thanks for your encouragement; I'll keep plugging away at it. Your suggestions will help.

Why do you both recommend using only a singel style sheet? I've read tutorials showing the use of @import sheets, and even ones that say to keep the style sheets as short as possible. My plan was to use one main overarching site style sheet, use @import sheets for sections of the pages that are used for some pages but not others, and when neccesary, an @import sheet for elements that would be specific to that page only. But you're saying that you think that's not the best approach?.
Reply With Quote
  #10 (permalink)  
Old 08-11-2004, 11:46 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default

Quote:
Why do you both recommend using only a singel style sheet?
My main reason is when I'm trying to find a bug I only have to look in 1 file.

It also avoids precedence problems if you use the same class name in 2 different CSS files by accident, or at least makes it easy to spot.

The CSS file is downloaded once and cached by the browser, or at least that's the theory, so you may as well load every thing in one go.

The only reason I would use more than 1 style sheet is if I had an area of the site drastically different from the rest e.g. administration area.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #11 (permalink)  
Old 08-11-2004, 03:14 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

I've used the @import style method myself in the past, for much the same reasons you're now using it. I just think that it's a lot easier to 'debug' your CSS styles if you simply stick to a single file whilst you're in the development stage.

The same logic applies to taking out the inline styles from your page. If you change something in your CSS file, you want to be able to track down 'cause and effect' - this is made all the more difficult if you're chasing down multiple suspects! :o)
Reply With Quote
  #12 (permalink)  
Old 08-15-2004, 11:55 PM
hommealone's Avatar
WebProWorld Pro
 

Join Date: Feb 2004
Location: Kingston, NY USA
Posts: 107
hommealone RepRank 0
Default about that IE5 problem...

So, here's what I've done so far:

Managed to load a copy of IE5 onto my computer along with IE6(!), thanks to Ryan Parman. (Anyone else can too, by visiting his website at http://www.skyzyx.com/downloads/. Just wanted to add that to my post for anyone else who reads this. Thanks, Mikmik, for passing that link along to me.)

Now I see what speed means about IE5 adding big blank areas to the page! Where ever I "fixed" a DIV so that it would expand properly to fully contain floated elements by using the "float clear" fix (note: see http://www.positioniseverything.net/easyclearing.html for info on how to do that.), the "fixed" DIV gets messed up in IE5 only!

Does anyone have any idea of how to fix this???
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: , , , ,



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0