Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2005, 05:11 PM
Authorized User
 
Join Date: Jun 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default IE6 and CSS "right" property?

I haven't been able to find much about this on the web, so I thought I'd ask:

Links:
http://www.kendietz.com/jgarden/japanesegarden.xml
http://www.kendietz.com/css/photos.css

I have my personal website (a photo gallery) done up using XML, XSL and CSS. If the image you are viewing is too large for the browser window, I want a vertical scrollbar to appear, attached to the right edge of the viewport.

Using the "right" property set to 1px does this perfectly in Mozilla, but IE6 seems to want to attach the scrollbar to the image itself (child element) rather than to the containing block, as the CSS specification says.

The relevant section of the CSS file is:

#contentright {
    position: absolute;
    left: 150px;
    right: 1px;
    top: 0em;
    height: 100%;
    background: transparent;
    white-space: normal;
    text-align: center;
    font-size: 1.1em;
    padding-top: 0em;
    margin: 0em;
    overflow: auto;
    z-index: 1;
/* width: 85%;*/
}

The commented "width" property is my temporary solution, but I hate it.

Does anyone have a suggestion?

Thanks for any help.
 
Old January 11th, 2006, 02:18 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Right, Internet Explorer doesn't support setting offset properties in pairs to imply width. A proprietary expression might do it, or Dean Edwards's IE7

http://dean.edwards.name/ie7

I recommend the latter. I know Dean has done some work to make his project work with XML too.

HTH!

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old January 11th, 2006, 02:19 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

BTW, this is where you can learn more about expressions, if that route interests you.

http://msdn.microsoft.com/workshop/a...iew/recalc.asp

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS overflow:hidden issue in IE6 and IE7 kwilliams CSS Cascading Style Sheets 1 May 27th, 2008 05:44 AM
Help With CSS "Align" Property TheSchwa Other Programming Languages 1 October 22nd, 2007 03:38 PM
CSS style issue ok in Firefox but not in IE6 socoolbrewster CSS Cascading Style Sheets 1 September 22nd, 2006 10:01 AM
CSS Dropdown menu error in IE6 socoolbrewster CSS Cascading Style Sheets 1 March 23rd, 2006 04:09 PM
Link Display Prob using CSS in IE6 / Firefox socoolbrewster CSS Cascading Style Sheets 3 September 7th, 2005 11:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.