Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old July 2nd, 2006, 11:02 AM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Div not working on IE for PC

I have coded a pages to display results of a SQL query, but to only display 10 results per page and to offer next 10 and if relavent, previous 10. These 2 links, next/prev are at the bottom when the php scripts are done, however, it only knows the total amount of results after the results are displayed and I want to display this info above the results. Therefore I use the div command (div id="div1") to position it in the right place. In the css style type in the head I have used this to make the position
Code:
#div1 {position:fixed; top:0px; left:198px;}

This works great with all browsers for MAC but for PC, NO! it puts it where the php script is on the bottom of the page. I don't use the div command often in my website but I see it discussed as a problem on this forum, have I encountered what many find a difficult thing to do?

Reply With Quote
  #2  
Old July 2nd, 2006, 03:47 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
IE6 does not natively support position:fixed. There are a few work-arounds.

<div> is an element, not a command. HTML and CSS do not have "commands".

Reply With Quote
  #3  
Old July 2nd, 2006, 05:08 PM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Thanks Krav for directing me to google and for the correcting me in element not command. I did try a work-around in one the google results but changing it work on PC made it stop working for MAC! I will have spend alot more time in this I can see.

Reply With Quote
  #4  
Old July 2nd, 2006, 05:11 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
You could use conditional comments to give the work-around to IE5+/Win only.

Just remember that only IE5+/Win supports them.
About Conditional Comments
Some more information on conditional comments can be found on this page.
QuirksMode.org : Conditional comments
http://www.google.com/search?q=IE+conditional+comment

Reply With Quote
  #5  
Old July 2nd, 2006, 05:17 PM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Yes it was I believe, conditional
they used
<!--[if lte IE 6]>
<style type="text/css">
/*<![CDATA[*/
html {overflow-x:auto; overflow-y:hidden;}
/*]]>*/
</style>
They were seeming to exploit another bug in IE6 to trick it was fixed!

Reply With Quote
  #6  
Old July 2nd, 2006, 10:59 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
LOL

It's ironic that you put a CDATA marker inside the conditional comment. IE6 doesn't support XHTML (it only supports HTML with errors that happens to look exactly like XHTML), so using that is pointless.

P.S. I hope you just forgot to copy and paste the end tag for the conditional comment.

Reply With Quote
  #7  
Old July 3rd, 2006, 08:32 AM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Yes, I did thanks Krav!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Div not working on IE for PC


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 | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway