Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS - IE/Firefox problem - element height

Reply
Thread Tools

CSS - IE/Firefox problem - element height

 
 
matt@mailinator.com
Guest
Posts: n/a
 
      01-16-2006
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
 
 
 
 
kaibo
Guest
Posts: n/a
 
      01-17-2006
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
 
 
 
 
David Graham
Guest
Posts: n/a
 
      01-17-2006

<> 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
 
matt@mailinator.com
Guest
Posts: n/a
 
      01-17-2006
> 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't code a css class that makes a span element the same size as a button element Cal Who ASP .Net 5 04-26-2010 05:35 PM
how to Update/insert an xml element's text----> (<element>text</element>) HANM XML 2 01-29-2008 03:31 PM
how to get specific cell height without hard-coding a height value laredotornado@zipmail.com HTML 0 08-19-2006 08:13 PM
CSS Mozilla: Make Mozilla not ignore height style of an inline element Henri HTML 9 02-22-2005 06:08 PM
css element within element.... WindAndWaves HTML 29 02-03-2005 03:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57