This is a discussion on "Floating over text" within the Web Page Design section. This forum, and the thread "Floating over text are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Floating over text
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Floating over text
I have a main container that is set as 600px in height in IE if the page content is over the 600 it resizes the container for me., However IE 7 and FF floats the text over the top.
tried using percentages with no joy. I have tried using the overflow settings but the best I can get is it to use scroll bars, which i'm trying to avoid. any advice would be appreciated...ta |
|
|
|
||||
|
Re: Floating over text
So I'm guessing you want it to resize?
IE6 incorrectly interprets height as min-height. However, IE6 does not understand min-height, but you can use a known CSS parsing error in IE6 in order to 'hack' your way around.
HTH
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Floating over text
thanks for that but this is not an IE issue ... this is only happening in FF and Safari. i need the container to automatically expand larger than 600 pixels automatically. if i change the container to auto it resizes to about 50 pixels in height
|
|
||||
|
Re: Floating over text
can you post a link please. (sorry being lazy)
thanks,
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
|
|
||||
|
Re: Floating over text
@ihateasp - min-height does exactly that; sets a minimum height for an element but allows for expansion when necessary (which will work in FF, IE7, Opera etc)
IE6 does not understand min-height, so we specifically tell IE6 a height (using the * html hack) which IE6 then incorrectly understands as min-height. EDIT: On a side note, do you have floated elements within this container? This will affect the expansion of the container in FF (and possibly Opera and Safari) but not IE6 or IE7 (which incorrectly expand the container)
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Last edited by Aso; Dec 17th, 2007 at 14:58. |
|
|||
|
Re: Floating over text
|
|
||||
|
Re: Floating over text
Ok, I know what everyone's going to scream, so I'll do it this time
Validate your markup! (25 Errors) And why have you got table elements in there? I can't see any need for them. Ok, for your container you've got
Get rid of height: auto and min-height: 600px, then add this somewhere else
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Floating over text
thanks for all the help guys.. it must have something to do with the fact that I'm pulling in dynamic data. I'm goiing to go back to the drawing board withthis one.
Thanks again for all the help and advice. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Headings floating left and right | jonnymorris | Starting Out | 5 | Jul 21st, 2007 22:27 |
| Floating a SWF file?? | iStylus | Web Page Design | 6 | Apr 17th, 2007 11:59 |
| Text floating out of the container in FF | Sporky | Web Page Design | 3 | Dec 8th, 2006 12:07 |
| floating problems... | gogogadgetearl | Web Page Design | 0 | Jul 16th, 2005 04:25 |
| Floating Without tables | jcschott | Web Page Design | 3 | Apr 19th, 2005 16:22 |