HighDots Forums  

Re: Liquid design: Horizontal centering + overflow: hidden = problem in IE6

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Liquid design: Horizontal centering + overflow: hidden = problem in IE6 in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Graham
 
Posts: n/a

Default Re: Liquid design: Horizontal centering + overflow: hidden = problem in IE6 - 10-29-2003 , 04:21 AM







and it solved
Quote:
the problem.

![if lt IE 5.5000]
DIV ID="navigation"
![endif]

!--[if IE 5.5000]
div id="navigation" style="left: -220px;"
![endif]--

!--[if IE 6]
div id="navigation" style="left: -205px;"
![endif]--

Watch out for spaces in the above i.e the must be a space between each
seperate bit inside the square brakets. I'm basically saying above that if
IE less than version 5 (lt = less than)
woops - meant version 5.5000




Reply With Quote
  #2  
Old   
=?Windows-1252?Q?Charles_Blaqui=E8re?=
 
Posts: n/a

Default Re: Liquid design: Horizontal centering + overflow: hidden = problem in IE6 - 11-05-2003 , 02:14 PM






There seem to be two methods available for cropping images that don't fit
within their container. (e.g. when the browser window is resized way too
small) We can place the image in a div and give the div the "overflow:
hidden" style, or we can define the image as a background for the div.
Background images, having been around much longer than the CSS2 overflow
property, would presumably be more reliable.

My first test [ http://www.blaqzone.com/Temp/Centere...nOverflow.html ]
occasionally gave funky results in IE, so I temporarily set it aside and
tried the background-image route. [
http://www.blaqzone.com/Temp/Centere...ckground).html ]
seems to work better, so I decided to put it to work in a test page using
the layout from the target site:

http://www.kpuc.org/events/90th-anniversary-test.html

The images crop well, making the page much sturdier at narrow browser
widths. However, my ambitious nature gave rise to a desire to find a
generalized technique, one that would allow images to:

- crop from the left
- crop from the right
- crop from both sides

and allow me to place images:

- mostly left-aligned in their container
- centered in their container
- mostly right-aligned in their container

Examples such as http://www.hebig.org/blog/titlepic.php crop a left-aligned
image from its right edge -- but what happens if the important material is
on the right, not the left, of the image? This is why I'm hoping to come up
with a generalized technique allowing maximum design flexibility.

Please have a look at the test page. I've hit a block at this point. Thanks!


Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.