Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - CSS - IE/Firefox problem - element height

 
Thread Tools Search this Thread
Old 01-16-2006, 11:30 PM   #1
Default CSS - IE/Firefox problem - element height


hello,

i am experiencing a little problem w/ regards to IE & Firefox
compatibility (works as expected in firefox, doesnt in IE).

i have a container-div element, which contains 1 image, and 2 nested
div elements. the problem is, in IE the height of the container-div is
extended -- it makes itself as high as *all* elements w/i in, rather
than the fixed-height i have assigned in px.

easier to show. here is a dummied-down demo of the problem:

http://www.semi-suave.com/temp/temp.html
http://www.semi-suave.com/temp/css/profile.css


and here is an image of what IE is doing to my height:

http://www.semi-suave.com/temp/the_problem.jpg


.....can anyone help me figure this out? i want the container-div (the
baby-blue box) to be only "130px", as its defined in mh "profile.css"
file. how do i stop it from auto-sizing itself to the height of all its
nested content!??


thanks!
matt



matt@mailinator.com
  Reply With Quote
Old 01-17-2006, 02:24 PM   #2
kaibo
 
Posts: n/a
Default Re: CSS - IE/Firefox problem - element height

change the css for your pictures as follows

#Profile img {
display:inline;
}

You won't need the positioning any more.

Same for #Basics & #Ratings...if you still need them.

<> wrote in message
news: oups.com...
> hello,
>
> i am experiencing a little problem w/ regards to IE & Firefox
> compatibility (works as expected in firefox, doesnt in IE).
>
> i have a container-div element, which contains 1 image, and 2 nested
> div elements. the problem is, in IE the height of the container-div is
> extended -- it makes itself as high as *all* elements w/i in, rather
> than the fixed-height i have assigned in px.
>
> easier to show. here is a dummied-down demo of the problem:
>
> http://www.semi-suave.com/temp/temp.html
> http://www.semi-suave.com/temp/css/profile.css
>
>
> and here is an image of what IE is doing to my height:
>
> http://www.semi-suave.com/temp/the_problem.jpg
>
>
> ....can anyone help me figure this out? i want the container-div (the
> baby-blue box) to be only "130px", as its defined in mh "profile.css"
> file. how do i stop it from auto-sizing itself to the height of all its
> nested content!??
>
>
> thanks!
> matt
>



  Reply With Quote
Old 01-17-2006, 06:48 PM   #3
David Graham
 
Posts: n/a
Default Re: CSS - IE/Firefox problem - element height


<> wrote in message
news: oups.com...
> hello,
>
> i am experiencing a little problem w/ regards to IE & Firefox
> compatibility (works as expected in firefox, doesnt in IE).
>
> i have a container-div element, which contains 1 image, and 2 nested
> div elements. the problem is, in IE the height of the container-div is
> extended -- it makes itself as high as *all* elements w/i in, rather
> than the fixed-height i have assigned in px.
>
> easier to show. here is a dummied-down demo of the problem:
>
> http://www.semi-suave.com/temp/temp.html
> http://www.semi-suave.com/temp/css/profile.css
>
>
> and here is an image of what IE is doing to my height:
>
> http://www.semi-suave.com/temp/the_problem.jpg
>
>
> ....can anyone help me figure this out? i want the container-div (the
> baby-blue box) to be only "130px", as its defined in mh "profile.css"
> file. how do i stop it from auto-sizing itself to the height of all its
> nested content!??
>
>
> thanks!
> matt
>

I came up against this and was told IE has a broken overflow behaviour - a
div in IE extends itself to encompass the contents of the div, it shouldn't
do this!
David


  Reply With Quote
Old 01-17-2006, 07:20 PM   #4
matt@mailinator.com
 
Posts: n/a
Default Re: CSS - IE/Firefox problem - element height

> change the css for your pictures as follows
> ...
> You won't need the positioning any more.


ah...excellent! thank you. also, setting the parent element's
"overflow:hidden;" helps tighten things up as well.

one step closer to eliminating tables.

the more you know.


thanks,
matt

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump