Its a really bad idea to mix absolute (pixels) and relative (em's and
percentages) values.  Use one or the other, (you can use em's and percentages 
together, because 1 em = 100% of the user's base font size). Also if you are 
using absolute positioning to bring your div#defList to an offset of 50% top 
and left, why are you then using negative margins? Use the offsets only.  
Negative margins are not always consistent across browsers when using 
positioning or floating.

Set all items to a margin:0, padding:0 first to make sure you are consistent 
across browsers, then add padding and postive margins to your elements as 
needed.

Also change your overflow:scroll to overflow:auto. the scroll value will ALWAYS 
place both vertical and horizontal scroll bars on an item. auto will only place 
the ones necessary to scroll your content.

Sandra Clark

Why is it to mix, it does exactly what I want it to do.  Now this may not work 
very widely but this is an Intranet application where I have knowledge of what 
browsers I am working with.  My logic is that by placing the container top: 50% 
and left: 50%, this places the div layer in the middle of the browser, but it 
places the top left corner of the div in the middle.  With the negative margins 
each 1/2 of the width and height move the middle of the div layer to the middle 
of the browser.  How would I do that with positive values?

I'll check out the scroll: auto, but I currently have only one vertical scroll 
bar, albeit in the limited set of browsers I am concerned with; again the 
advantage of a strictly controlled intranet environment of a small company.



--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245558
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to