CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 8th, 2004, 08:58 AM
hanonman hanonman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 hanonman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Floated Grid Problems

Hi

Please let me know if I am posting what is required for answering my questions as I would like to make things as easy as possible for you.

Here is my first problem:-

I have been trying to move our sitesdesign across to being css based and in the large part have succeeded but I have run into difficulties when it comes to displaying our results.

I am trying to wrap 9 search results on a page using float but the results I am getting are different between mac IE 5.1, opera 5 Mac (not that bothered though) and Windows IE 6.0.

My problem is that on windows the float works as it should and wraps so that I have a grid of 9 images, on a mac the images wrap but jump to the bottom of my left floated navigation and then continue the grid and on opera they just don't wrap.

The URL is

URL

CSS file
URL

Can anybody shed any light on why this might happen as I am a little lost.

TIA

hanonman

Reply With Quote
  #2  
Old June 8th, 2004, 03:37 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
Code:
<div style="float: left; margin: 10px;">
The float is required to have a width defined.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #3  
Old June 9th, 2004, 08:20 AM
hanonman hanonman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 hanonman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Gary,

I was under the impression that I had provided a width for the containing div although I didn't with the floated element (which I have done now...).

Here is what I have done now but it still has the same results, I have placed the following on my template:-

<!-- Top Half -->
<div style="width: 580px; height: 350px; text-align: left;">
<!-- Search Results -->
<div class="resultsFloater">
<a href="#"><img src="/images/imagename.jpg" width="150" height="150" border="0" alt="Product Title" /></a>
</div>
</div>
<!-- End -->

I put the following into my stylesheet so it is no longer inline:-

.resultsFloater {
float: left;
margin: 10px;
width: 170px;
}

Any advice is appreciated.

Alan

Reply With Quote
  #4  
Old June 9th, 2004, 07:44 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
Opera and Moz handled everything OK, but IE had brain-farts on some width:100%; and AP elements. There were also several errors found throughout the html. I cleaned up the HTML and made the CSS more palatable to IE.

I would lose the tables in your banner area. There is no compelling reason to use them and they have no semantic meaning. Also, in the banner area, when using text as image, the alt text should mirror the image text. Consider wrapping the logo image in h1 tags. That is your main header.

Every page should have one, and only one h1 tag. Your headers for the navcol should be h2 or lower. Look at the page sans stylesheet and images. That will show you the apparent structure of the page. As it is, I don't think it's what you mean.

Compare your code to mine (both html and css) line by line. Some of the changes are subtle and easy to miss.

The files will not be left up indefinitely.

cheers,

gary

Last edited by kk5st : June 10th, 2004 at 12:04 AM. Reason: keyboard can't spell

Reply With Quote
  #5  
Old June 10th, 2004, 08:02 AM
hanonman hanonman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 hanonman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

Hi Gary

This is what I did to get it all up and running, I notice you have made some similar changes also. I will be changing the top navigation area to run as pure css / xhtml, I just put it in there as a table for speed to give me a woking model to test the rest of the site. I do like your ideas about <h1>, I have been looking into the Fahrner Image Replacement technique but I read somewhere about using padding for text to nudge it out of the viewable area... I think I am going to maybe try that.

#leftNav {
width: 160px;
/* float: left; */
margin-right: 1px;
position: absolute;
top:73px; /*added, you might need to play with this*/
left:0; /*added*/
}
#leftNav li {
/*width: 100%; commented out*/
text-decoration: none;
border-bottom: 1px solid #FFFFFF;
margin: 0px;
}


#leftNav li a {
display: block;
text-decoration: none;
color: #000000;
padding: 2px 0px 2px 10px;
/*width: 100%; commented out*/
}

Thanks for your help, I really appreciate it

You have helped me overcome a really confusing issue. As you can see I am getting my head around CSS but I still don't understand all the rules to their full extent so and advice whilst troubleshooting always goes a long way.

Cheers
Alan

Reply With Quote
  #6  
Old June 10th, 2004, 01:44 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
Once you well and truly grok the cascade concept, and you get comfortable with the structural semantics of html, it will all come together. After that, it's just detail.
Quote:
I have been looking into the Fahrner Image Replacement technique but I read somewhere about using padding for text to nudge it out of the viewable area... I think I am going to maybe try that.
Nah. Not worth the effort for a simple banner image. If the image is wrapped in <h1></h1> tags, the image will be the semantic h1. If the link is broken or if graphics are not loaded by the user agent, the alt text will be displayed by whatever rules you declare for h1.

cheers,

gary

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Floated Grid Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT