The Dimensions plugin might help:

http://plugins.jquery.com/project/dimensions

Regards
G

On Aug 5, 6:47 pm, ZedroS <zedros.schwa...@gmail.com> wrote:
> hi
>
> we have just found out the issue.
>
> Let's say you have
> <div id="div">
>   <p>bla</p>
> </div>
>
> Like this, $('#div').outerHeigth(true) won't care about the <p>
> margin. In fact, in just care about the row content
>
> If you switch to
> <div id="div" style="display: visible">
>   <p>bla</p>
> </div>
> then $('#div').outerHeigth(true) will include the margin of the div
>
> I can just guess the corresponding rules...
>
> ++
>
> On Aug 5, 5:39 pm, "Cesar Sanz" <the.email.tr...@gmail.com> wrote:
>
>
>
> > $("div").height() ???
>
> > ----- Original Message -----
> > From: "ZedroS" <zedros.schwa...@gmail.com>
> > To: "jQuery (English)" <jquery-en@googlegroups.com>
> > Sent: Wednesday, August 05, 2009 5:02 AM
> > Subject: [jQuery] getting the height of some div (which contains p having
>
> > some margin defined)
>
> > > Hi
>
> > > I would like to get the height of a div. This div contains other
> > > markups tag like some paragraph.
>
> > > However, I don't manage to get the height of this div if some
> > > paragraphs inside of it have some margin defined, even when using
> > > outerHeight(true)...
>
> > > It looks like I'm missing something, can someone help me ?
>
> > > thanks in advance
>
> > > ++
> > > zedros
>
> > > ps : a test case (simpel html file wit the required javascript) can be
> > > found there :
> > >http://www.2shared.com/file/7008972/8565e522/test2.html
> > >http://www.megafileupload.com/en/file/124239/test2-html.html- Hide quoted 
> > >text -
>
> - Show quoted text -

Reply via email to