Current location: Hot Scripts Forums » General Web Coding » CSS » CSS help needed, float in IE


CSS help needed, float in IE

Reply
  #1 (permalink)  
Old 08-09-06, 11:22 AM
nassau nassau is offline
Wannabe Coder
 
Join Date: May 2004
Posts: 211
Thanks: 0
Thanked 0 Times in 0 Posts
CSS help needed, float in IE

i'm helping a friend with his website and it currently looks 100% perfect in safari/OSX. however, in IE on WinXP it looks... (drumroll) not quite as perfect.

well, i'm almost there, a few small things are left, but also a few big ones i just can't seem to fix. the biggest problem is the ipod pictures that won't "float" downwards over other fields directly below it. it's easier to understand if you see it live. compare the URL below on safari/OSX and IE/WinXP and you'll see the difference.

the other big problem is the shades in the bottom of the page, they don't "terminate". instead the keep going about 20px. again, easier to understand if you see it live

link: http://camo.biz/test/

if someone has any clues as how to make the CSS work in IE/WinXP and all the others, please let me know.

thanks
Reply With Quote
  #2 (permalink)  
Old 08-09-06, 12:46 PM
20/20 Applications Tech 20/20 Applications Tech is offline
Newbie Coder
 
Join Date: Apr 2006
Location: Canada
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
As far as I can tell, the iPod image is doing exactly as you've instructed it to do with CSS. There are four elements that are at play here (of course there are others but they aren't as relevant):

Inside the "resource_DeviceItem" DIV I see:
- a DIV (id=top)
- a DIV (id=head)
- a DIV (id=select)
- a DIV (id=image)
- and last a DIV (id=bottom)

Your FIRST problem is that these divs are classified by their 'ID' attribute and there are many DIVs on the page which have the same 'ID'. 'ID's are supposed to be unique, so it would be better to change these ID attributes to 'CLASS' names. <div class="top">, class="head", class="select", etc.

Your SECOND problem is that all these elements float (except the 'resource_DeviceItem' DIV). This isn't a problem per say, but it means you have to be careful about how floating elements react when surrounded by other floating elements.

Frankly, I don't know how this looks in Safari (and I don't understand how it can possibly work in Safari considering the way these elements are currently floated).

I'd suggest you try:
1. ADD "text-align:right;" to the "top" DIV.
2. REMOVE "float:right;" from the "select" DIV.
3. REMOVE "float:right;" from the "image" DIV.

(At that point, your iPod image will be displayed directly under the "Select" buttons.)

3. Perhaps you'd want the iPod image to be centered? Change to "text-align:center;" in the "top" DIV.

This advice works in MSIE and FireFox.

Regarding your "mainBorderBottom" background...I'm not sure how it's supposed to look so I'm sorry that I can't give any advice in that regard.

Regards.
www.2020applications.com

Last edited by 20/20 Applications Tech; 08-09-06 at 12:59 PM.
Reply With Quote
  #3 (permalink)  
Old 08-15-06, 12:49 AM
nassau nassau is offline
Wannabe Coder
 
Join Date: May 2004
Posts: 211
Thanks: 0
Thanked 0 Times in 0 Posts
thanks, i'll give it a shot! btw, the attatched file is what it's supposed to look like, and what it does look like in safari, firefox, netscape (OSX).

Attached Files
File Type: pdf Picture 3.pdf (85.5 KB, 60 views)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS and Flash Guru's needed!! OmegaLord Job Offers & Assistance 0 07-18-06 12:28 PM
CSS Guru needed splanters Job Offers & Assistance 2 03-27-06 02:39 PM
counting a float Markone C/C++ 1 01-04-06 03:32 PM
PHP and CSS Expert NEEDED!!!! eFutureMedia Job Offers & Assistance 1 09-11-04 01:53 PM
PHP and CSS Expert NEEDED!!!! eFutureMedia PHP 4 09-11-04 08:34 AM


All times are GMT -5. The time now is 01:52 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.