|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
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? |
|
#2
|
|||
|
|||
|
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". |
|
#3
|
||||
|
||||
|
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.
|
|
#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 |
|
#5
|
||||
|
||||
|
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! |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
||||
|
||||
|
Yes, I did thanks Krav!
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Div not working on IE for PC |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|